Skip to content

Commit

Permalink
Update Demos
Browse files Browse the repository at this point in the history
  • Loading branch information
dimensionscape committed Jul 10, 2024
1 parent f0a76b1 commit c60b793
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion samples/demo/src/scenes/AnimationScene.hx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import starling.events.Event;
import starling.text.TextField;
import starling.utils.Color;
import starling.utils.MathUtil.deg2rad;
import openfl.Vector;

import utils.MenuButton;

Expand Down
3 changes: 1 addition & 2 deletions samples/demo/src/scenes/MovieScene.hx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package scenes;

import openfl.media.Sound;
import openfl.Vector;

import starling.core.Starling;
import starling.display.MovieClip;
Expand All @@ -15,7 +14,7 @@ import starling.textures.Texture;
public function new()
{
super();
var frames:Vector<Texture> = Game.assets.getTextures("flight");
var frames:Array<Texture> = Game.assets.getTextures("flight");
_movie = new MovieClip(frames, 15);

// add sounds
Expand Down
3 changes: 1 addition & 2 deletions samples/demo/src/scenes/RenderTextureScene.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package scenes;
import openfl.geom.Matrix;
import openfl.geom.Point;
import openfl.utils.Dictionary;
import openfl.Vector;

import starling.display.BlendMode;
import starling.display.Button;
Expand Down Expand Up @@ -65,7 +64,7 @@ import utils.MenuButton;

_renderTexture.drawBundled(function():Void
{
var touches:Vector<Touch> = event.getTouches(_canvas);
var touches:Array<Touch> = event.getTouches(_canvas);

for (touch in touches)
{
Expand Down
3 changes: 1 addition & 2 deletions samples/demo/src/utils/TouchSheet.hx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import starling.display.Sprite;
import starling.events.Touch;
import starling.events.TouchEvent;
import starling.events.TouchPhase;
import openfl.Vector;

class TouchSheet extends Sprite
{
Expand All @@ -27,7 +26,7 @@ class TouchSheet extends Sprite

private function onTouch(event:TouchEvent):Void
{
var touches:Vector<Touch> = event.getTouches(this, TouchPhase.MOVED);
var touches:Array<Touch> = event.getTouches(this, TouchPhase.MOVED);

if (touches.length == 1)
{
Expand Down

0 comments on commit c60b793

Please sign in to comment.