Add music, beach fishing, catching, and selectable creature partners
This commit is contained in:
1 parent
3469f2e6dd
commit
cb77683a87
24 files changed
+1307
-104
No files matched your search
@@ -22,14 +22,20 @@ The game file is **game.gba**. You can also open it directly in mGBA without reb
|
||||
- **X at the house door:** stand on the steps below the door and press X to open it and go inside. Walk to the bottom doorway inside and press X to return outside.
|
||||
- **Leave Greenleaf Village:** follow the central sandy path down through the gap in the bottom fence. Keep walking down to enter **Sunpetal Trail** automatically.
|
||||
- **Return to the village:** on Sunpetal Trail, follow the central path up to the top edge. Press X beside the wooden sign to read the directions.
|
||||
- **Visit Professor Mellon:** follow the village's horizontal sandy path right through the fence opening. His blue-roofed house is in the garden. Press X on its steps to enter, then walk close to the professor and press X to talk. Leave through the bottom doorway, then follow the garden path left to return to town.
|
||||
- **Get your first partner:** talk to Professor Mellon and press X to advance his conversation. He gives you **Sprout**, an original Grass-type partner at level five. This is a one-time gift; later conversations check on Sprout instead.
|
||||
- **Backspace (GBA Select button):** open your team to see Sprout. Press Backspace, X (A), or Z (B) to return. Movement pauses while the team screen is open.
|
||||
- **Sprout follows you:** after receiving Sprout, walk a few steps and it follows your path. It travels through doors and map exits with you.
|
||||
- **Visit Professor Mellon:** follow the village's horizontal sandy path right through the fence opening. Her blue-roofed house is in the garden. Press X on its steps to enter, then walk close to the professor and press X to talk. Leave through the bottom doorway, then follow the garden path left to return to town.
|
||||
- **Visit Seashell Beach:** from Professor Mellon's garden, follow the central sandy path down through the bottom fence gap. Walk up the beach's northern path to return to the garden. Explore the dry sand, palms, umbrella, shells, and starfish; the sea is not walkable. Sprout comes along, and the beach uses the calm trail music.
|
||||
- **Go fishing:** talk to **Fisher Coral**, the red-haired person in turquoise on the right side of Seashell Beach. Press X again to receive a **Poké Rod**, saved permanently in your bag. Bring Sprout, walk to the water's edge, face down toward the sea, and press **X** to hook **Tidefin**, an original Water-type fish. Weaken it and press **Backspace** to throw a Poké Ball. The rod is reusable; catching still requires balls from Ranger Finn and space on your team. Older saves keep their gifts and catches.
|
||||
- **Get your first partner:** talk to Professor Mellon and press X to advance her conversation. She gives you **Sprout**, an original Grass-type partner at level five. This is a one-time gift; later conversations check on Sprout instead.
|
||||
- **Character artwork:** the player and Ranger Finn use boy sprites; Mila and Professor Mellon use distinct long-haired girl sprites. Mellon keeps her white coat and gray hair. Both styles have front, back, and side views.
|
||||
- **Backspace (GBA Select button):** open your team. Use Left/Right to browse Sprout and your caught creatures, then press **X (A)** to choose the displayed creature as your following and battling partner. Backspace or Z (B) returns without changing your choice. Your selection is saved automatically. Movement pauses while the team screen is open.
|
||||
- **Your partner follows you:** Sprout or your selected caught creature follows your path and travels through doors and map exits with you. Each uses its own artwork. Choose Sprout again from the team screen whenever you like.
|
||||
- **Battle the golden creature:** with Sprout on your team, walk close to the golden creature in Greenleaf Village and press X. Use Left/Right to choose **Tackle** or **Leaf Tap**, then X to attack. The golden creature responds with Bump. Press Z (B) to run away. At the result screen, press X or Z to return to the map. Sprout recovers fully after each battle.
|
||||
- **Wild encounters:** with Sprout, walk around either tall-grass patch on Sunpetal Trail. **Fernfox** (Grass), **Emberwing** (Fire), or **Pebblit** (Rock) can appear automatically. Each has its own original 24×24 sprite, palette, health, and attack. Encounters only happen while moving in grass, with a short breather between battles. Leaf Tap is stronger against Pebblit and weaker against Emberwing. Fighting and running use the same keys as the golden-creature battle.
|
||||
- **Get Poké Balls:** talk to **Ranger Finn**, the person in orange just left of Sunpetal Trail's central path. Press X again to receive **five Poké Balls**. This gift is given once. Press Backspace to see the count on the team screen, even if you do not have Sprout yet. Catching creatures is not implemented yet.
|
||||
- **Get Poké Balls:** talk to **Ranger Finn**, the person in orange just left of Sunpetal Trail's central path. Press X again to receive **five Poké Balls**. This gift is given once. Press Backspace to see the count on the team screen, even if you do not have Sprout yet.
|
||||
- **Catch a creature:** press **Backspace during a battle** to throw one Poké Ball. Lower health improves the chance; at one-quarter health or less, the catch is guaranteed. A failed throw still uses the ball and lets the creature attack. You cannot catch a fainted creature. Successful catches join your saved team, with room for Sprout plus five catches (duplicates are allowed). A full team does not waste a ball. The village's golden creature disappears from the map once caught. Press X after the catch result, then Backspace and Left/Right to view your new friend. Press X to make it your partner.
|
||||
- **Battle with caught creatures:** your selected partner fights in both land and fishing battles, using its own maximum health, Tackle, and a second move: Golden's Bump, Fernfox's Leaf Tap, Emberwing's Spark, Pebblit's Roll, or Tidefin's Water Jet. Partners recover fully after battles. Choose partners outside battle, not during a turn.
|
||||
- **Return (GBA Start button):** return to your starting position in the current map.
|
||||
- **S (GBA R shoulder button):** mute or unmute the music, including during battles and menus. This setting lasts until you restart the ROM.
|
||||
|
||||
If those keys do not match your emulator settings, check mGBA's keyboard input settings.
|
||||
|
||||
@@ -49,11 +55,13 @@ Those numbers mean red, green, and blue, each from 0 to 31. Try `RGB(29, 6, 6)`
|
||||
- `source/game.h`: shared game types and module declarations.
|
||||
- `source/video.c`: frame buffer, dirty rows, text, and sprite renderer.
|
||||
- `source/scenery.c`: map artwork and the scenery cache.
|
||||
- `source/beach.c`: Seashell Beach artwork and shared shoreline boundary.
|
||||
- `source/world.c`: movement, collisions, doors, map travel, and following.
|
||||
- `source/actors.c`: character and creature artwork and drawing.
|
||||
- `source/battle.c`: species, battle rules, and the battle screen.
|
||||
- `source/story.c`: conversations, gifts, and cartridge SRAM saves.
|
||||
- `source/hud.c`: map status, scene drawing, and the team screen.
|
||||
- `source/audio.c` and `source/audio.h`: original chiptune scores and the GBA sound-channel sequencer.
|
||||
- `source/wild_creatures.h`: original wild-creature sprites and palettes.
|
||||
- `source/start.s`: code that starts the GBA hardware.
|
||||
- `gba.ld`: tells the compiler where cartridge code and working memory go.
|
||||
@@ -61,7 +69,7 @@ Those numbers mean red, green, and blue, each from 0 to 31. Try `RGB(29, 6, 6)`
|
||||
- `Makefile`: builds the game with the installed ARM compiler.
|
||||
- `tests/`: cartridge header, NPC interaction, drawing, house entry/exit, and room collision tests. `make check` also generates scene previews in `build/`.
|
||||
|
||||
Run `make check-host` to check C game behavior on your Mac using only host clang, generating scene previews in `build/`. It does not need a ROM or the ARM compiler. The C tests are grouped by maps, story, battles, rendering, and movement, with shared helpers in `tests/test_support.c`. `make check` builds the ROM, checks its header, runs the ROM-dependent Python tests, and runs these host checks.
|
||||
Run `make check-host` to check C game behavior on your Mac using only host clang, generating scene previews in `build/`. It does not need a ROM or the ARM compiler. The C tests are grouped by maps, story, battles, rendering, movement, and audio, with shared helpers in `tests/test_support.c`. Audio tests use fake sound registers rather than your Mac's audio device. `make check` builds the ROM, checks its header, runs the ROM-dependent Python tests, and runs these host checks.
|
||||
|
||||
Graphics are drawn into a RAM buffer first. Only the changed spans of each row are copied to the GBA screen during VBlank, so walking does not expose a half-erased character. Full map changes are copied while the display is temporarily blanked.
|
||||
|
||||
@@ -73,7 +81,13 @@ Movement has a separate 60 Hz fixed-step clock using cascaded GBA timers 2 and 3
|
||||
|
||||
## Saving your partner and items
|
||||
|
||||
Receiving Sprout or Finn's Poké Balls automatically writes a small cartridge SRAM save, stored by mGBA alongside the ROM as `game.sav`. Keep that file to retain your partner and item count after reopening the game. Older Sprout-only saves remain compatible. Partner ownership, the ball count, and whether Finn's gift was claimed are saved, but your map and position are not. The golden-creature battle is a repeatable practice battle with two moves, health bars, victory, defeat, and running away. Sprout recovers afterward. Experience and catching creatures are not implemented yet.
|
||||
Receiving gifts, throwing Poké Balls, and choosing partners automatically write a small cartridge SRAM save, stored by mGBA alongside the ROM as `game.sav`. Keep that file to retain your gifts, caught creatures, remaining balls, and selected partner after reopening the game. Older saves remain compatible and default to Sprout as the active partner. Your map and position are not saved. Partners recover after battles. Experience is not implemented yet.
|
||||
|
||||
## Music
|
||||
|
||||
Three original four-bar chiptunes loop automatically: a bright village tune (112 BPM), a calmer trail/indoor tune (94 BPM), and a faster battle tune (160 BPM). Two hardware square-wave channels play melody and bass, with quiet noise-channel percussion in the village and battle tracks. Menus and conversations keep the current tune playing; entering a battle switches themes, and leaving it restores the location's theme.
|
||||
|
||||
The sequencer reads the existing hardware clock without changing the movement timers. It writes sound registers only on note events, uses no PCM audio buffers or audio DMA, and skips missed notes rather than replaying them in a long loop after a stall. These are original melodies, not music copied from Pokémon. In mGBA, make sure emulator audio is unmuted and your Mac's volume is comfortable.
|
||||
|
||||
### Change what Mila says
|
||||
|
||||
@@ -104,6 +118,6 @@ We are making an original game. No existing Pokémon ROM or separate BIOS downlo
|
||||
|
||||
## Project status
|
||||
|
||||
Greenleaf Village connects south to Sunpetal Trail and east to Professor Mellon's garden and house. Both houses have working doors. Mila and the professor have conversations, and Mellon gives you Sprout once. Ranger Finn gives you five Poké Balls once, with a saved inventory count. Sprout is saved to SRAM, appears on your team screen, follows your footsteps, and can battle the village's golden creature. Three wild species appear in the route's tall grass, using distinct shaded sprites rather than recolors. Battles support two moves, species-specific replies, health bars, victory, defeat, running away, and free recovery.
|
||||
Greenleaf Village connects south to Sunpetal Trail and east to Professor Mellon's garden and house. Seashell Beach is south of the garden, with a return path north. Both houses have working doors. Mila and the professor have conversations, and Mellon gives you Sprout once. Ranger Finn gives you five usable Poké Balls. Sprout follows your footsteps and battles the village's golden creature and three wild route species. Battles support two moves, species-specific replies, health bars, catching, victory, defeat, running away, and free recovery. Caught creatures and spent balls are saved, and the team screen lets you browse up to six members.
|
||||
|
||||
All artwork is original; no Pokémon game assets or ROMs are included. Experience, catching creatures, sound, and full progress saving are not implemented yet.
|
||||
All artwork and music are original; no Pokémon game assets or ROMs are included. Experience, mid-battle partner switching, sound effects, and full progress saving are not implemented yet.
|
||||
Reference in new issue
Block a user