Files
kiss-vscode/projects/flixel-rpg-tutorial/source/Coin.kiss

19 lines
393 B
Plaintext

(method new [:Float x :Float y]
(super x y)
(loadGraphic AssetPaths.coin__png false 8 8))
(method &override :Void kill []
(set alive false)
(FlxTween.tween
this
(object
alpha 0
y (- y 16))
0.33
(object
ease FlxEase.circOut
onComplete finishKill)))
(method finishKill [_]
(set exists false))