Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
ships.hpp File Reference

Player ships: steered by their input and kept in the play area. More...

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 &registry, const ecs::Tick &tick)
 Sets the velocity of every player ship from its input.
 
void aegis2d::shmup::clamp_player_ships (ecs::Registry &registry, const ecs::Aabb &area)
 Keeps every player ship inside the play area.
 
ecs::Entity aegis2d::shmup::spawn_player_ship (ecs::Registry &registry, Vec2 position, float speed=PlayerShip{}.speed)
 Creates a player ship ready to be steered.
 

Detailed Description

Player ships: steered by their input and kept in the play area.