|
R-Type
Networked shoot'em up built on Aegis2D
|
Values of an enemy type, as its script gives them to enemy { ... }.
More...
#include <rtype/enemy_scripts.hpp>
Public Attributes | |
| std::string | name |
Name of the type: its file name without .lua, as waves files name it. | |
| aegis2d::Vec2 | size {32.0F, 32.0F} |
Size on screen, also its hit box (width and height, 32 by default). | |
| std::int32_t | health = 1 |
Health points (health, 1 by default). | |
| std::uint32_t | score = 100 |
Points for its killer (score, 100 by default). | |
| float | fire_every = 0.0F |
Seconds between two shots (fire_every), or 0, the default, to never fire. | |
| float | first_shot = 1.0F |
Seconds before its first shot (first_shot, 1 by default). | |
Values of an enemy type, as its script gives them to enemy { ... }.
| float rtype::EnemyType::fire_every = 0.0F |
Seconds between two shots (fire_every), or 0, the default, to never fire.
| float rtype::EnemyType::first_shot = 1.0F |
Seconds before its first shot (first_shot, 1 by default).
| std::int32_t rtype::EnemyType::health = 1 |
Health points (health, 1 by default).
| std::string rtype::EnemyType::name |
Name of the type: its file name without .lua, as waves files name it.
| std::uint32_t rtype::EnemyType::score = 100 |
Points for its killer (score, 100 by default).
| aegis2d::Vec2 rtype::EnemyType::size {32.0F, 32.0F} |
Size on screen, also its hit box (width and height, 32 by default).