ae.demo.pewpew.objects

Game objects and logic

Members

Aliases

COLOR
alias COLOR = L16
Undocumented in source.
SpawnParticles
alias SpawnParticles = ParticleManager!SpawnParticle
Undocumented in source.
StarField
alias StarField = ParticleManager!Star
Undocumented in source.
TorpedoParticles
alias TorpedoParticles = ParticleManager!TorpedoParticle
Undocumented in source.

Classes

Enemy
class Enemy
Undocumented in source.
Explosion
class Explosion
Undocumented in source.
Game
class Game
Undocumented in source.
GameEntity
class GameEntity
Undocumented in source.
GameObject
class GameObject
Undocumented in source.
ParticleManager
class ParticleManager(Particle)
Undocumented in source.
PlasmaOrb
class PlasmaOrb
Undocumented in source.
Ship
class Ship
Undocumented in source.
Splode
class Splode
Undocumented in source.
Thingy
class Thingy
Undocumented in source.
ThingyPart
class ThingyPart
Undocumented in source.
ThingySatellite
class ThingySatellite
Undocumented in source.
Torpedo
class Torpedo
Undocumented in source.

Enums

Plane
enum Plane
Undocumented in source.
Sound
enum Sound
Undocumented in source.

Mixins

__anonymous
mixin FixMath
Undocumented in source.

Static functions

cbound
T cbound(T x)
Undocumented in source. Be warned that the author may not have intended to support it.
cf
float cf(float x)
Undocumented in source. Be warned that the author may not have intended to support it.
ci
int ci(float x)
Undocumented in source. Be warned that the author may not have intended to support it.
frand
float frand()
Undocumented in source. Be warned that the author may not have intended to support it.
frands
float frands()
Undocumented in source. Be warned that the author may not have intended to support it.
frands2
float frands2()
Undocumented in source. Be warned that the author may not have intended to support it.
ssqr
T ssqr(T x)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

BLACK
auto BLACK;
Undocumented in source.
STAR_LAYERS
enum STAR_LAYERS;
Undocumented in source.
WHITE
auto WHITE;
Undocumented in source.
analogX
float analogX;
analogY
float analogY;
Undocumented in source.
canvas
Image!COLOR canvas;
down
bool down;
fire
bool fire;
Undocumented in source.
initializing
bool initializing;
left
bool left;
Undocumented in source.
planes
DListContainer!GameEntity[Plane.Max] planes;
right
bool right;
Undocumented in source.
score
int score;
Undocumented in source.
ship
Ship ship;
Undocumented in source.
sounds
Sound[] sounds;
Undocumented in source.
spawnParticles
SpawnParticles spawnParticles;
Undocumented in source.
starFields
StarField[STAR_LAYERS] starFields;
Undocumented in source.
torpedoParticles
TorpedoParticles torpedoParticles;
Undocumented in source.
up
bool up;
Undocumented in source.
useAnalog
bool useAnalog;
Undocumented in source.

Structs

SpawnParticle
struct SpawnParticle
Undocumented in source.
Star
struct Star
Undocumented in source.
TorpedoParticle
struct TorpedoParticle
Undocumented in source.

Mixed In Members

From mixin FixMath

coordinateBits
enum coordinateBits;
Undocumented in source.
fix
alias fix = SignedBitsType!(COLOR.channelBits + coordinateBits)

Fixed-point type, big enough to hold a coordinate, with fractionary precision corresponding to channel precision.

fix2
alias fix2 = SignedBitsType!(COLOR.channelBits * 2 + coordinateBits)

Type to hold temporary values for multiplication and division

tofix
fix tofix(T x)
Undocumented in source. Be warned that the author may not have intended to support it.
tofix
fix tofix(T x)
Undocumented in source. Be warned that the author may not have intended to support it.
fixto
T fixto(fix x)
Undocumented in source. Be warned that the author may not have intended to support it.
fixsqr
fix fixsqr(fix x)
Undocumented in source. Be warned that the author may not have intended to support it.
fixmul
fix fixmul(fix x, fix y)
Undocumented in source. Be warned that the author may not have intended to support it.
fixdiv
fix fixdiv(fix x, fix y)
Undocumented in source. Be warned that the author may not have intended to support it.
frac
alias frac = COLOR.ChannelType

Type only large enough to hold a fractionary part of a "fix" (i.e. color channel precision). Used for alpha values, etc.

frac2
alias frac2 = UnsignedBitsType!(COLOR.channelBits * 2)

Type to hold temporary values for multiplication and division

tofrac
frac tofrac(T x)
Undocumented in source. Be warned that the author may not have intended to support it.
fixfpart
frac fixfpart(fix x)
Undocumented in source. Be warned that the author may not have intended to support it.
fracsqr
frac fracsqr(frac x)
Undocumented in source. Be warned that the author may not have intended to support it.
fracmul
frac fracmul(frac x, frac y)
Undocumented in source. Be warned that the author may not have intended to support it.
tofracBounded
frac tofracBounded(T x)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <vladimir@thecybershadow.net>