Skip to content

Commit

Permalink
smaller fixes + change FlxSprite to GameSprite
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Nov 27, 2024
1 parent 6ebea25 commit 5d6f223
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion source/states/EditorState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class EditorState extends ExtendableState {
grpOptions.add(optionTxt);
}

daText = new FlxText(5, FlxG.height - 24, 0, "", 12);
daText = new FlxText(5, FlxG.height - 30, 0, "", 12);
daText.setFormat(Paths.font('main.ttf'), 20, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
add(daText);

Expand Down
2 changes: 1 addition & 1 deletion source/states/MenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class MenuState extends ExtendableState {
add(grpSelection);

for (i in 0...selections.length) {
var menuItem:FlxSprite = new FlxSprite(0, (i * 160) + (108 - (Math.max(selections.length, 4) - 4) * 80));
var menuItem:FlxSprite = new GameSprite(0, (i * 160) + (108 - (Math.max(selections.length, 4) - 4) * 80));
menuItem.loadGraphic(Paths.image('menu/mainmenu/' + selections[i]));
menuItem.scale.set(0.4, 0.4);
menuItem.screenCenter(X);
Expand Down
2 changes: 1 addition & 1 deletion source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class PlayState extends ExtendableState {
add(timeBar);
add(scoreTxt);

timeTxt = new FlxText(20, timeBar.y, 0, "[-:--/-:--]", 20);
timeTxt = new FlxText(20, timeBar.y - 5, 0, "[-:--/-:--]", 20);
timeTxt.setFormat(Paths.font('main.ttf'), 20, FlxColor.WHITE, CENTER, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
add(timeTxt);

Expand Down
2 changes: 1 addition & 1 deletion source/states/SongSelectState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ typedef SongArray = {
var diff:Float;
}

class Cover extends FlxSprite {
class Cover extends GameSprite {
public var lerpSpeed:Float = 6;
public var posX:Float = 0;

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,6 +2,7 @@ package states;

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

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

var logo:FlxSprite = new FlxSprite(0, 0).loadGraphic(Paths.image('menu/title/logo'));
logo = 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

0 comments on commit 5d6f223

Please sign in to comment.