|
Aegis2D
Modular C++26 2D game engine for networked games
|
Player ships: steered by their input and kept in the play area. More...
#include <aegis2d/core/math.hpp>#include <aegis2d/ecs/collision.hpp>#include <aegis2d/ecs/components.hpp>#include <aegis2d/ecs/entity.hpp>#include <aegis2d/ecs/movement.hpp>#include <aegis2d/ecs/registry.hpp>#include <aegis2d/ecs/system.hpp>#include <aegis2d/shmup/components.hpp>Go to the source code of this file.
Namespaces | |
| namespace | aegis2d |
| Root namespace of the engine. | |
| namespace | aegis2d::shmup |
| Shoot'em up building blocks on top of the ECS: player ships, their controls, weapons and their shots. A game of another genre leaves the module out. | |
Functions | |
| void | aegis2d::shmup::steer_player_ships (ecs::Registry ®istry, const ecs::Tick &tick) |
| Sets the velocity of every player ship from its input. | |
| void | aegis2d::shmup::clamp_player_ships (ecs::Registry ®istry, const ecs::Aabb &area) |
| Keeps every player ship inside the play area. | |
| ecs::Entity | aegis2d::shmup::spawn_player_ship (ecs::Registry ®istry, Vec2 position, float speed=PlayerShip{}.speed) |
| Creates a player ship ready to be steered. | |
Player ships: steered by their input and kept in the play area.