diff --git a/assets/achievements/achList.txt b/assets/achievements/achList.txt index 96236f8..db0e97b 100644 --- a/assets/achievements/achList.txt +++ b/assets/achievements/achList.txt @@ -1 +1,2 @@ -example \ No newline at end of file +example +full_combo \ No newline at end of file diff --git a/assets/achievements/full_combo.json b/assets/achievements/full_combo.json new file mode 100644 index 0000000..136ca6f --- /dev/null +++ b/assets/achievements/full_combo.json @@ -0,0 +1,5 @@ +{ + "name": "FC", + "desc": "Great job!", + "hint": "Complete a song without missing." +} \ No newline at end of file diff --git a/assets/images/achievements/full_combo.png b/assets/images/achievements/full_combo.png new file mode 100644 index 0000000..fc38cff Binary files /dev/null and b/assets/images/achievements/full_combo.png differ diff --git a/assets/images/menu/backgrounds/achievements_bg.png b/assets/images/menu/backgrounds/achievements_bg.png new file mode 100644 index 0000000..a16693e Binary files /dev/null and b/assets/images/menu/backgrounds/achievements_bg.png differ diff --git a/source/backend/Input.hx b/source/backend/Input.hx index 4595e61..1f677ef 100644 --- a/source/backend/Input.hx +++ b/source/backend/Input.hx @@ -7,7 +7,7 @@ typedef Bind = { class Input { public static var binds:Map = [ - 'left' => {key: [LEFT, D], gamepad: [DPAD_LEFT, LEFT_TRIGGER]}, + 'left' => {key: [LEFT, A], gamepad: [DPAD_LEFT, LEFT_TRIGGER]}, 'down' => {key: [DOWN, S], gamepad: [DPAD_DOWN, LEFT_SHOULDER]}, 'up' => {key: [UP, W], gamepad: [DPAD_UP, RIGHT_SHOULDER]}, 'right' => {key: [RIGHT, D], gamepad: [DPAD_RIGHT, RIGHT_TRIGGER]}, diff --git a/source/states/AchievementsState.hx b/source/states/AchievementsState.hx index 1b117a1..9e8b5d5 100644 --- a/source/states/AchievementsState.hx +++ b/source/states/AchievementsState.hx @@ -19,11 +19,15 @@ class AchievementsState extends ExtendableState { camFollow.screenCenter(X); add(camFollow); - var bg:FlxSprite = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.GRAY); + var bg:FlxSprite = new FlxSprite().loadGraphic(Paths.image('menu/backgrounds/achievements_bg')); bg.scrollFactor.set(); bg.screenCenter(); add(bg); + var grid:FlxBackdrop = new FlxBackdrop(FlxGridOverlay.createGrid(80, 80, 160, 160, true, 0x33FFFFFF, 0x0)); + grid.velocity.set(40, 40); + add(grid); + achievementGrp = new FlxTypedGroup(); add(achievementGrp); diff --git a/source/states/MenuState.hx b/source/states/MenuState.hx index 501b0b0..1e94951 100644 --- a/source/states/MenuState.hx +++ b/source/states/MenuState.hx @@ -156,6 +156,9 @@ class MenuState extends ExtendableState { if (Input.justPressed('u')) ExtendableState.switchState(new UITestState()); #end + + if (Input.justPressed('a')) // placeholder for now + ExtendableState.switchState(new AchievementsState()); } }