Commit Graph
69 Commits
Author SHA1 Message Date
Sterling Archer 5483639141 Play select SFX when moving cursor between starter Pokemon choices 2026-05-27 12:46:02 -07:00
Sterling Archer ad6141bde0 Catch result: show controller, hide continue button, auto-return to map after 3s 2026-05-27 12:00:12 -07:00
Sterling Archer f5ae220da3 Show controller on intro screen, lower Oak position for portrait/landscape visibility 2026-05-27 11:51:22 -07:00
Sterling Archer fa331cb267 Catch screen: remove ball count from throw button, map A=throw and B=run away 2026-05-27 11:37:56 -07:00
Sterling Archer 94d0d8328c Add d-pad and A/B button support to continue, starter, and catch screens via _dpadStart and _pressA/_pressB handlers. 2026-05-27 11:25:05 -07:00
Sterling Archer 13f39fda61 smaller rocks 2026-05-27 10:56:53 -07:00
Sterling Archer 43735bf485 Add pokemon battle noises 2026-05-27 10:49:39 -07:00
Sterling Archer 58ff9cd2f7 add even more grass 2026-05-27 10:46:33 -07:00
Sterling Archer d7b106b49d add more grass 2026-05-27 10:34:34 -07:00
Sterling Archer e03ebffc2f Improve fun factor (added pokemon to game) 2026-05-27 10:23:10 -07:00
justin e30b4810d5 Add NPC Sprites (Created by my amazing daughter) 2026-05-22 01:15:25 -07:00
justin 74bc7e1aa8 Add NPC Sprites (Created by my amazing daughter) 2026-05-21 14:34:54 -07:00
justin 79521db109 Replace NPC emoji with sprite: oak.png 2026-05-21 12:07:29 -07:00
justin c8ce96d0c0 Update to new mo betta code base 2026-05-21 11:09:30 -07:00
justin ef374b0378 Move _generateTrees() to after npcWorldX is set so trees span the full path 2026-05-20 21:05:45 -07:00
justin 450eccc89e Save and restore shuffled question order so continuing a game picks up at the correct question 2026-05-20 20:49:35 -07:00
justin f5c3cb9145 Resume AudioContext on visibilitychange to fix SFX on mobile after tab switch 2026-05-20 20:36:39 -07:00
justin b314882018 Fix diagonal line in top-left — arrow animation now only runs when visible, hidden by default 2026-05-20 12:16:42 -07:00
justin 09e38bb465 Mouse hover sets answer cursor via mouseenter + _renderCursor, matching pokeazure approach 2026-05-20 12:05:10 -07:00
justin eff440d1f2 Shuffle question order on each new game so every run is different 2026-05-20 11:59:12 -07:00
justin 697a303a75 Add '...' chat bubble above player when pressing talk before reaching NPC 2026-05-20 10:08:10 -07:00
justin f0585c30c3 Fix letter replacement regex — only rewrite 'Both X and Y' patterns, not standalone letters in answer text 2026-05-14 16:12:15 -07:00
justin 9676257668 Fix 'Both A and B' answer text — rewrite letter refs to actual shuffled slot numbers at render time 2026-05-14 16:00:12 -07:00
justin be25a43df0 Gamepad D-pad navigates Continue/New Game on continue screen with gold highlight, A confirms 2026-05-14 15:45:37 -07:00
justin 264988d7b6 Fix gamepad A and B buttons to confirm highlighted answer on battle screen 2026-05-14 15:25:24 -07:00
justin 867d35fb57 Add DEL and OK to gamepad keyboard nav — D-pad flows from letters down to DEL/OK, A activates either 2026-05-14 15:19:34 -07:00
justin 0ac24d776e Fix gamepad letter selection on name screen — dispatch pointerdown instead of click 2026-05-14 15:14:15 -07:00
justin 627664594b Gamepad: D-pad navigates name keyboard with gold highlight, A selects letter, B deletes, Start confirms 2026-05-14 15:11:21 -07:00
justin 1723129c24 Fix gamepad on title/continue screens — poll from startup, handle A/Start on all screens 2026-05-14 15:07:19 -07:00
justin 10c4147483 Add Xbox/gamepad support via Gamepad API — left stick and D-pad to walk, A to confirm/talk, B to advance 2026-05-14 15:04:10 -07:00
justin 22b0dc0713 Generate trees per map leg — clear and regrow on each question, pre-generate next leg during result screen 2026-05-14 14:53:05 -07:00
justin b0768841f1 Fix sprite directions — swap Up and Left frame offsets to match actual sheet layout 2026-05-14 13:51:56 -07:00
justin 478944b8b6 Lower player and NPC to centre of dirt path 2026-05-14 13:45:00 -07:00
justin 428f1a2f74 Replace hat emoji with player.png sprite sheet — directional walk animations from 24-frame sheet 2026-05-14 13:16:21 -07:00
justin 72ecda8d46 Lower direction arrow to match player height on the path 2026-05-14 13:07:55 -07:00
justin 25204998db Fix music.mp3 not playing — add preload, canplaythrough retry, unblock on first user interaction 2026-05-14 13:04:44 -07:00
justin 8d5a4d2c0e Add music.mp3 looping BGM on map, pause during questions, 🎵/🔇 mute toggle in header 2026-05-14 12:59:55 -07:00
justin 457b1c3280 Revert "Add looping chiptune BGM — cheerful overworld track and tense battle track, phrase-based seamless loop"
This reverts commit 48a35d381b.
2026-05-14 11:33:16 -07:00
justin 48a35d381b Add looping chiptune BGM — cheerful overworld track and tense battle track, phrase-based seamless loop 2026-05-14 11:27:18 -07:00
justin 1b62cbbc14 Add Web Audio chiptune sound engine — boot jingle, overworld melody, typewriter blips, correct/wrong/streak/levelup/complete fanfares 2026-05-14 11:19:16 -07:00
justin 3ba8f0e437 Add Enter/Space key support on Continue screen 2026-05-14 11:03:48 -07:00
justin bb5c1a7316 Reduce NPC proximity threshold from 120 to 60px so Press E shows only when truly close 2026-05-14 11:02:06 -07:00
justin 43f7e6ef1c Reduce answer result delay from 850ms to 120ms for near-instant feedback 2026-05-14 10:59:19 -07:00
justin 1649b85934 Fix trees disappearing — extend world to 100x screen width, generate 200 trees across full journey 2026-05-14 10:57:24 -07:00
justin 2efb7ffeeb Replace pine trees with round trees only, reduce to 35 for better spacing 2026-05-14 10:53:49 -07:00
justin f17d3f6a76 Generate 60 randomly placed trees across full scrollable world, varying size and sway speed 2026-05-14 10:51:01 -07:00
justin e354ddc224 Move direction arrow inside game on right edge, always points right toward NPC 2026-05-14 10:47:27 -07:00
justin 9802427340 Centre player and NPC vertically on dirt path 2026-05-14 10:44:57 -07:00
justin fd770c973c Nudge player and NPC up to sit visibly on the dirt path 2026-05-14 10:43:41 -07:00
justin 34a9bae50c Fix NPC rendering on top of path — move NPC to viewport layer, convert world-px to screen-px each tick 2026-05-14 10:42:10 -07:00