Skip to main content

PhillyTrain

Kindclass
Packagestages.objects
Full namestages.objects.PhillyTrain
Sourcesource/stages/objects/PhillyTrain.hx
ExtendsBGSprite

Public fields​

NameTypeStaticDefaultNotes
soundFlxSoundno——
movingBoolnofalse—
finishingBoolnofalse—
startedMovingBoolnofalse—
frameTimingFloatno0—
carsIntno8—
cooldownIntno0—

Public methods​

new (constructor)​

function new(x:Float = 0, y:Float = 0, image:String = 'philly/train', sound:String = 'train_passes')
ParameterTypeDefault
x (optional)Float0
y (optional)Float0
image (optional)String'philly/train'
sound (optional)String'train_passes'

View source

beatHit​

function beatHit(curBeat:Int):Void
ParameterTypeDefault
curBeatInt—

View source

start​

function start():Void

View source

restart​

function restart():Void

View source

Internals​

Private / internal members
Method
override function update(elapsed:Float)