mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-01-30 08:27:38 +00:00
swf shit
This commit is contained in:
parent
d882d6568d
commit
fea40412ec
|
@ -128,6 +128,10 @@
|
||||||
<haxelib name="newgrounds"/>
|
<haxelib name="newgrounds"/>
|
||||||
<haxelib name="hxcpp-debug-server" if="desktop debug"/>
|
<haxelib name="hxcpp-debug-server" if="desktop debug"/>
|
||||||
|
|
||||||
|
<!-- swf stufffff -->
|
||||||
|
<haxelib name="swf"/>
|
||||||
|
<library path="assets/tanky.swf" preload="true"/>
|
||||||
|
|
||||||
<!-- <haxelib name="flixel-animate" /> -->
|
<!-- <haxelib name="flixel-animate" /> -->
|
||||||
<!-- <haxelib name="spinehaxe" /> -->
|
<!-- <haxelib name="spinehaxe" /> -->
|
||||||
<!-- https://github.com/ninjamuffin99/Flixel-Animate-Atlas-Player -->
|
<!-- https://github.com/ninjamuffin99/Flixel-Animate-Atlas-Player -->
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package;
|
package;
|
||||||
|
|
||||||
import animate.FlxAnimate;
|
|
||||||
import flixel.FlxG;
|
import flixel.FlxG;
|
||||||
import flixel.FlxSprite;
|
import flixel.FlxSprite;
|
||||||
import flixel.FlxState;
|
import flixel.FlxState;
|
||||||
|
@ -9,10 +8,10 @@ import flixel.group.FlxGroup.FlxTypedGroup;
|
||||||
import flixel.math.FlxPoint;
|
import flixel.math.FlxPoint;
|
||||||
import flixel.text.FlxText;
|
import flixel.text.FlxText;
|
||||||
import flixel.util.FlxColor;
|
import flixel.util.FlxColor;
|
||||||
|
import openfl.Assets;
|
||||||
import openfl.display.BitmapData;
|
import openfl.display.BitmapData;
|
||||||
|
import openfl.display.MovieClip;
|
||||||
|
|
||||||
// import animateAtlasPlayer.assets.AssetManager;
|
|
||||||
// import animateAtlasPlayer.core.Animation;
|
|
||||||
class CutsceneAnimTestState extends FlxState
|
class CutsceneAnimTestState extends FlxState
|
||||||
{
|
{
|
||||||
var cutsceneGroup:CutsceneCharacter;
|
var cutsceneGroup:CutsceneCharacter;
|
||||||
|
@ -20,6 +19,9 @@ class CutsceneAnimTestState extends FlxState
|
||||||
var curSelected:Int = 0;
|
var curSelected:Int = 0;
|
||||||
var debugTxt:FlxText;
|
var debugTxt:FlxText;
|
||||||
|
|
||||||
|
var funnySprite:FlxSprite = new FlxSprite();
|
||||||
|
var clip:MovieClip;
|
||||||
|
|
||||||
public function new()
|
public function new()
|
||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
|
@ -32,50 +34,22 @@ class CutsceneAnimTestState extends FlxState
|
||||||
debugTxt.color = FlxColor.BLUE;
|
debugTxt.color = FlxColor.BLUE;
|
||||||
add(debugTxt);
|
add(debugTxt);
|
||||||
|
|
||||||
var animated:FlxAnimate = new FlxAnimate(600, 200);
|
clip = Assets.getMovieClip("tanky:");
|
||||||
add(animated);
|
clip.x = FlxG.width/2;
|
||||||
|
clip.y = FlxG.height/2;
|
||||||
|
FlxG.stage.addChild(clip);
|
||||||
|
|
||||||
|
funnySprite.x = FlxG.width/2;
|
||||||
|
add(funnySprite);
|
||||||
|
|
||||||
// createCutscene(0);
|
|
||||||
// createCutscene(1);
|
|
||||||
// createCutscene(2);
|
|
||||||
// createCutscene(3);
|
|
||||||
// createCutscene(4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override function update(elapsed:Float)
|
override function update(elapsed:Float)
|
||||||
{
|
{
|
||||||
/* if (FlxG.keys.pressed.SHIFT)
|
|
||||||
{
|
|
||||||
if (FlxG.keys.justPressed.UP)
|
|
||||||
curSelected -= 1;
|
|
||||||
if (FlxG.keys.justPressed.DOWN)
|
|
||||||
curSelected += 1;
|
|
||||||
|
|
||||||
if (curSelected < 0)
|
|
||||||
curSelected = cutsceneGroup.members.length - 1;
|
|
||||||
if (curSelected >= cutsceneGroup.members.length)
|
|
||||||
curSelected = 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
var valueMulti:Float = 1;
|
|
||||||
|
|
||||||
if (FlxG.keys.pressed.SPACE)
|
|
||||||
valueMulti = 10;
|
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.UP)
|
|
||||||
cutsceneGroup.members[curSelected].y -= valueMulti;
|
|
||||||
if (FlxG.keys.justPressed.DOWN)
|
|
||||||
cutsceneGroup.members[curSelected].y += valueMulti;
|
|
||||||
if (FlxG.keys.justPressed.LEFT)
|
|
||||||
cutsceneGroup.members[curSelected].x -= valueMulti;
|
|
||||||
if (FlxG.keys.justPressed.RIGHT)
|
|
||||||
cutsceneGroup.members[curSelected].x += valueMulti;
|
|
||||||
}
|
|
||||||
|
|
||||||
debugTxt.text = curSelected + " : " + cutsceneGroup.members[curSelected].getPosition();
|
|
||||||
*/
|
|
||||||
|
|
||||||
super.update(elapsed);
|
super.update(elapsed);
|
||||||
|
|
||||||
|
var funnyBmp:BitmapData = new BitmapData(FlxG.width, FlxG.height, true, 0x00000000);
|
||||||
|
funnyBmp.draw(clip, clip.transform.matrix, true);
|
||||||
|
funnySprite.loadGraphic(funnyBmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue