Skip to content

Commit

Permalink
replace more instances of FlxSprite lol
Browse files Browse the repository at this point in the history
ngl haxeflixel is weird sometimes
  • Loading branch information
Joalor64GH authored Nov 27, 2024
1 parent 5d6f223 commit 96a7607
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ class PlayState extends ExtendableState {

for (script in scriptArray) {
script?.setVariable('addScript', function(path:String) {
// scriptArray.push(new Hscript('$path.hxs'));
if (path.endsWith('.hxs'))
scriptArray.push(new Hscript('$path.hxs'));
else if (path.endsWith('.hxc'))
Expand Down
4 changes: 2 additions & 2 deletions source/states/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package states;

class TitleState extends ExtendableState {
var lockInputs:Bool = false;
var logo:FlxSprite;

override function create() {
super.create();
Expand Down Expand Up @@ -30,11 +29,12 @@ class TitleState extends ExtendableState {
var audio:AudioDisplay = new AudioDisplay(FlxG.sound.music, 0, FlxG.height, FlxG.width, FlxG.height, 200, FlxColor.LIME);
add(audio);

logo = new GameSprite(0, 0).loadGraphic(Paths.image('menu/title/logo'));
var logo:FlxSprite = new GameSprite(0, 0).loadGraphic(Paths.image('menu/title/logo'));
logo.scale.set(0.7, 0.7);
logo.screenCenter();
logo.angle = -4;
add(logo);

FlxTween.tween(logo, {y: logo.y + 50}, 0.6, {ease: FlxEase.quadInOut, type: PINGPONG});

new FlxTimer().start(0.01, (tmr:FlxTimer) -> {
Expand Down
2 changes: 1 addition & 1 deletion source/substates/PauseSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PauseSubState extends ExtendableSubState {
add(pauseGrp);

for (i in 0...pauseOptions.length) {
var text:FlxText = new FlxText(0, 250 + (i * 65), 0, Localization.get(pauseOptions[i]), 32);
var text:FlxText = new FlxText(0, 245 + (i * 65), 0, Localization.get(pauseOptions[i]), 32);
text.setFormat(Paths.font('main.ttf'), 80, FlxColor.WHITE, FlxTextAlign.CENTER, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
text.screenCenter(X);
text.ID = i;
Expand Down
2 changes: 1 addition & 1 deletion source/substates/ResultsSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ResultsSubState extends ExtendableSubState {
bg.alpha = 0;
add(bg);

rankSpr = new FlxSprite(700, 0).loadGraphic(Paths.image('gameplay/rankings/' + rank.toLowerCase()));
rankSpr = new GameSprite(700, 0).loadGraphic(Paths.image('gameplay/rankings/' + rank.toLowerCase()));
rankSpr.screenCenter(Y);
rankSpr.alpha = 0;
if (rank != "?")
Expand Down

0 comments on commit 96a7607

Please sign in to comment.