NoteSplash
| Kind | class |
| Package | objects |
| Full name | objects.NoteSplash |
| Source | source/objects/NoteSplash.hx |
| Extends | FlxSprite |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
rgbShader | PixelSplashShaderRef | no | — | — |
defaultNoteSplash | String | yes | 'noteSplashes/noteSplashes' | property (default, never) |
Public methods
new (constructor)
function new(x:Float = 0, y:Float = 0, note:Int = 0)
| Parameter | Type | Default |
|---|---|---|
x (optional) | Float | 0 |
y (optional) | Float | 0 |
note (optional) | Int | 0 |
setupNoteSplash
function setupNoteSplash(x:Float, y:Float, direction:Int = 0, note:Note = null)
| Parameter | Type | Default |
|---|---|---|
x | Float | — |
y | Float | — |
direction (optional) | Int | 0 |
note (optional) | Note | null |
getSplashSkinPostfix
static function getSplashSkinPostfix()
kill
override function kill():Void
Returns the splash to PlayState.grpNoteSplashes and counts the return so the
pool hit rate stays measurable. (#88)
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
idleAnim | String | no |
textureLoaded | String | no |
texture | String | no |
maxAnims | Int | no |
config | NoteSplashConfig | no |
aliveTime | Float | yes |
buggedKillTime | Float | yes |
| Method |
|---|
function loadAnims(skin:String) |
override function update(elapsed:Float) |