spasm v0.2.0-beta.8 (2020-09-12T08:27:15Z)
Dub
Repo
Entity
game
entity
Undocumented in source.
nothrow @
safe
struct
Entity {
nothrow
float
x
;
nothrow
float
y
;
nothrow
float
z
;
nothrow
float
vx
;
nothrow
float
vy
;
nothrow
float
vz
;
nothrow
float
ax
;
nothrow
float
ay
;
nothrow
float
az
;
nothrow
float
friction
;
nothrow
int
sprite
;
nothrow
int
health
;
nothrow
bool
dead
;
this
(float x, float y, float z, float friction, int sprite);
void
kill
();
}
Constructors
this
this
(float x, float y, float z, float friction, int sprite)
Undocumented in source.
Members
Functions
kill
void
kill
()
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
ax
float
ax
;
ay
float
ay
;
az
float
az
;
Undocumented in source.
dead
bool
dead
;
Undocumented in source.
friction
float
friction
;
health
int
health
;
Undocumented in source.
sprite
int
sprite
;
Undocumented in source.
vx
float
vx
;
vy
float
vy
;
vz
float
vz
;
Undocumented in source.
x
float
x
;
y
float
y
;
z
float
z
;
Undocumented in source.
Meta
Source
See Implementation
game
entity
functions
render
roundf
truncf
update
manifest constants
PI
structs
Cpu
Entity
Explosion
Health
Particle
ParticleSpawner
Player
PlayerPlasma
Sentry
SentryPlasma
Spider