Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package game; | |
import flixel.FlxG; | |
import flixel.FlxSprite; | |
import flixel.group.FlxSpriteGroup; | |
import flixel.util.FlxMath; | |
import flixel.util.FlxPoint; | |
import flixel.util.FlxSpriteUtil; | |
import flixel.input.touch.FlxTouch; | |
import flash.events.MouseEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scripting: | |
(1) Here is an example script (all one file): | |
#(init) input, sprite -- An "init" event (runs once) that initializes the "input" and "sprite" packages | |
Sprite.AddTrail(-1); -- This function is called from the sprite package (without sprite, it will crash) | |
#(init) controller -- Another "init" event that initializers the "controller" package (so that it can be used in update) | |
#(update) input, controller -- An "update" event that uses the "input" and "controller" packages | |
if (Input.Left()) | |
Controller.Move(-100.0); |