|
R-Type
Networked shoot'em up built on Aegis2D
|
The movement of a player ship for one tick, the same on the server and the client. More...
#include <aegis2d/core/math.hpp>#include <aegis2d/ecs/components.hpp>#include <aegis2d/ecs/registry.hpp>#include <aegis2d/ecs/system.hpp>Go to the source code of this file.
Classes | |
| struct | rtype::ShipMotion |
| Where a player ship is and how it moves, after a step. More... | |
Namespaces | |
| namespace | rtype |
| R-Type game code, built on the Aegis2D engine. | |
Functions | |
| aegis2d::Vec2 | rtype::ship_velocity (aegis2d::ecs::PlayerInput input) noexcept |
| Velocity of a player ship holding an input. | |
| aegis2d::Vec2 | rtype::keep_ship_in_area (aegis2d::Vec2 position) noexcept |
| Keeps a player ship inside the play area. | |
| ShipMotion | rtype::step_ship (aegis2d::Vec2 position, aegis2d::ecs::PlayerInput input, float delta) noexcept |
| Moves a player ship by one tick. | |
| void | rtype::steer_ships (aegis2d::ecs::Registry ®istry, const aegis2d::ecs::Tick &tick) |
| System that sets the velocity of every player ship from its input. | |
| void | rtype::keep_ships_in_area (aegis2d::ecs::Registry ®istry, const aegis2d::ecs::Tick &tick) |
| System that keeps every player ship inside the play area. | |
The movement of a player ship for one tick, the same on the server and the client.