Offered as response to Community inquiry of how AppGameKit Sprite Physics might benefit performance when handling collision (and more) for "thousands of sprites" in a Vampire Survivors-type as prototyped with non-Physics sprites HERE.

The attached Source/Tutorial is Commented with Newcomers to AGK 2D Physics in mind while related 2D Physics and Sprite command sets should be reviewed.

The scaled-down web Demo struggles while WIN Users report stable 60 FPS performance with 750-1,500 Mobs in screen (in addition to hundreds more that are not) on various systems.

Controls (also on screen):

  • [Joy/WASD] = Move Party
  • [M] = Toggle (Party) Melee attacks (Default: Off)
  • [Pg Up/Down] = Spawn/Kill 50 Mobs
  • [TAB] = Toggle Debug Mode
  • [ENTER] = Pause Physics (while pressed)

Notes:

  • Don't overlook #Renderer "Basic" at the top where i've since seen substantial performance increase under OpenGL
  • Developed & Tested with AGK Studio v2025.11.30

The attached Template is FREE;

  • Donation/Credit NOT required
  • You may NOT Sell or Claim as your own work
  • Feel free to Comment and Share anything you might create with it HERE :)

~VN

Published 1 day ago
StatusPrototype
PlatformsHTML5, Windows, macOS, Linux
AuthorVirtual Nomad
GenreSurvival
Made withAppGameKit
Tagsappgamekit, Physics, sourcecode, Tutorial
Average sessionDays or more

Download

Download NowName your own price

Click download now to get access to the following files:

Monster Hell [AGK Tutorial Source].zip 55 kB