Skip to content

Commit

Permalink
ye
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Jul 24, 2024
1 parent 09d9e16 commit 4cca3e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion source/game/Button.hx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Button extends FlxSprite {

this.clickCallback = clickCallback;
loadGraphic(Paths.image(file));
scale.set(0.35, 0.35);
scale.set(0.3, 0.3);
}

override function update(elapsed:Float) {
Expand Down
9 changes: 5 additions & 4 deletions source/states/MenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,24 @@ class MenuState extends FlxState {
add(grid);

logo = new FlxSprite(0, 0).loadGraphic(Paths.image('title/logo'));
logo.screenCenter(X);
logo.x = (FlxG.width - logo.width * logo.scale.x) / 2;
logo.y = 0;
logo.scale.set(0.4, 0.4);
add(logo);

playBtn = new Button(0, logo.y + 100, 'title/play', () -> {
playBtn = new Button(0, logo.y + 120, 'title/play', () -> {
FlxG.switchState(PlayState.new);
});
playBtn.screenCenter(X);
add(playBtn);

optionsBtn = new Button(0, playBtn.y + 100, 'title/options', () -> {
optionsBtn = new Button(0, playBtn.y + 120, 'title/options', () -> {
trace('options menu unfinished sorry');
});
optionsBtn.screenCenter(X);
add(optionsBtn);

exitBtn = new Button(0, optionsBtn.y + 100, 'title/exit', () -> {
exitBtn = new Button(0, optionsBtn.y + 120, 'title/exit', () -> {
Sys.exit(0);
});
exitBtn.screenCenter(X);
Expand Down
3 changes: 2 additions & 1 deletion source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class PlayState extends FlxState {
add(strumline);

for (i in 0...noteDirs.length) {
var note:Note = new Note(i * 150, 50, noteDirs[i], "receptor");
var note:Note = new Note(i * 200, 50, noteDirs[i], "receptor");
note.screenCenter(Y);
strumline.add(note);
}
}
Expand Down

0 comments on commit 4cca3e3

Please sign in to comment.