PhillyTrain
| Kind | class |
| Package | stages.objects |
| Full name | stages.objects.PhillyTrain |
| Source | source/stages/objects/PhillyTrain.hx |
| Extends | BGSprite |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
sound | FlxSound | no | — | — |
moving | Bool | no | false | — |
finishing | Bool | no | false | — |
startedMoving | Bool | no | false | — |
frameTiming | Float | no | 0 | — |
cars | Int | no | 8 | — |
cooldown | Int | no | 0 | — |
Public methods
new (constructor)
function new(x:Float = 0, y:Float = 0, image:String = 'philly/train', sound:String = 'train_passes')
| Parameter | Type | Default |
|---|---|---|
x (optional) | Float | 0 |
y (optional) | Float | 0 |
image (optional) | String | 'philly/train' |
sound (optional) | String | 'train_passes' |
beatHit
function beatHit(curBeat:Int):Void
| Parameter | Type | Default |
|---|---|---|
curBeat | Int | — |
start
function start():Void
restart
function restart():Void
Internals
Private / internal members
| Method |
|---|
override function update(elapsed:Float) |