|
R-Type
Networked shoot'em up built on Aegis2D
|
Lag compensation: a player's missiles meet the enemies where that player saw them. More...
#include <aegis2d/ecs/collision.hpp>#include <aegis2d/ecs/entity.hpp>#include <aegis2d/ecs/registry.hpp>#include <rtype/position_history.hpp>#include <chrono>#include <cstdint>#include <functional>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | rtype |
| R-Type game code, built on the Aegis2D engine. | |
Functions | |
| std::uint32_t | rtype::rewind_ticks (std::chrono::nanoseconds rtt, std::chrono::nanoseconds interpolation) noexcept |
| How many ticks back a player sees the enemies. | |
| void | rtype::find_rewound_contacts (aegis2d::ecs::Registry ®istry, const PositionHistory &history, std::uint64_t tick, const std::function< std::uint32_t(aegis2d::ecs::Entity)> &rewind_of, std::vector< aegis2d::ecs::Contact > &contacts) |
| Finds the contacts of the player missiles with the enemies as their shooters saw them. | |
Lag compensation: a player's missiles meet the enemies where that player saw them.