|
Aegis2D
Modular C++26 2D game engine for networked games
|
Files | |
| animation.hpp | |
| Animation: sprites showing the frames of their clip in turn, and effects that end with their clip. | |
| collision.hpp | |
| Collision detection: a uniform grid finds the entities close enough to collide (broad phase), then box overlap and layer masks keep the real contacts (narrow phase). | |
| components.hpp | |
| Components shared by the client and the server. | |
| damage.hpp | |
| Damage on hit: turns collision contacts into lost health, kills and spent missiles. | |
| despawn.hpp | |
| Despawn: entities that left the play area for good are destroyed. | |
| entity.hpp | |
| Generational entity handle: an index into the component pools plus a generation. | |
| entity_allocator.hpp | |
| Creates and destroys entities, recycling their indices with a new generation. | |
| events.hpp | |
| Gameplay events: explosions and deaths, published on the core event bus. | |
| lives.hpp | |
| Player deaths: lives, respawn and game over. | |
| module.hpp | |
Entry header of the aegis2d::ecs module. | |
| movement.hpp | |
| Movement: the direction of a player's input, velocities applied each tick, sine motions on top of them, and positions kept inside an area. | |
| path_following.hpp | |
| Path following: entities that walk along waypoints at a steady speed, and tell when they reach the end. | |
| pathfinding.hpp | |
| Grid pathfinding: A* over cells with walkable flags and costs, the path given as cell centers. | |
| plugins.hpp | |
| Plugins: shared libraries that add systems and assets to a game when it starts, without recompiling it. | |
| registry.hpp | |
| Registry: owns the entities and one component pool per component type. | |
| score.hpp | |
| Score: credits each kill to the player who made it. | |
| sparse_set.hpp | |
| Sparse-set component pool: components packed in a dense array, found in O(1). | |
| spawner.hpp | |
| Random spawns: entities appear at random times along a line, from a seed. | |
| system.hpp | |
| Systems and the scheduler that updates them in order, once per tick. | |
| targeting.hpp | |
| Targets in range: the entities with a component within a radius of a point, found through the collision grid, nearest or most advanced first. | |
| timers.hpp | |
| Timers: something happens every few seconds, or once after a delay, at any tick rate. | |
| view.hpp | |
| View: iterates the entities that own all the requested components. | |
| waves.hpp | |
| Enemy waves read from a data file: what spawns, where and when. | |
| weapons.hpp | |
Moved to the shmup module (aegis2d/shmup/weapons.hpp); the old names stay until the games use the new ones. | |