|
Aegis2D
Modular C++26 2D game engine for networked games
|
Movement: the direction of a player's input, velocities applied each tick, sine motions on top of them, and positions kept inside an 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/registry.hpp>#include <aegis2d/ecs/system.hpp>#include <algorithm>#include <cmath>#include <numbers>Go to the source code of this file.
Namespaces | |
| namespace | aegis2d |
| Root namespace of the engine. | |
| namespace | aegis2d::ecs |
| Entity-Component-System used by client and server. | |
Functions | |
| Vec2 | aegis2d::ecs::direction_of (const PlayerInput &input) noexcept |
| Direction a player's input points to. | |
| void | aegis2d::ecs::apply_velocity (Registry ®istry, const Tick &tick) |
| Moves every entity by its velocity for one tick. | |
| Vec2 | aegis2d::ecs::sine_offset (const SineMotion &motion, float time) noexcept |
| Offset of a sine motion from its path at a time. | |
| void | aegis2d::ecs::apply_sine_motion (Registry ®istry, const Tick &tick) |
| Moves every entity with a sine motion along its wave for one tick. | |
| Vec2 | aegis2d::ecs::half_extent_of (const Registry ®istry, Entity entity) |
| Half size of what must stay visible of an entity. | |
| Vec2 | aegis2d::ecs::clamp_into (Vec2 position, Vec2 half, const Aabb &area) noexcept |
| Keeps a position inside an area, with a margin on each side. | |
Movement: the direction of a player's input, velocities applied each tick, sine motions on top of them, and positions kept inside an area.