aboutsummaryrefslogtreecommitdiffstats
path: root/ram (follow)
Commit message (Collapse)AuthorAgeFilesLines
* SL0P menu: add SAVER screensaver (autopilot EXPLORE)Ash Ketchum6 days1-1/+5
| | | | | | | | | | | | | | New menu entry that auto-drives the EXPLORE camera across the overworld: - persistent-direction wander (DFS-ish): keep heading, turn only when blocked or occasionally at a junction, never an immediate U-turn. SlopSaverPickDir synthesises a d-pad direction into the normal EXPLORE dispatch, so it inherits smooth scrolling and smooth map-edge crossing. - arrows hidden; player/Pikachu never drawn (clear+freeze OAM right after every LoadMapData, before the first frame renders - also fixes a brief player flash at crossings in manual EXPLORE). - any button wakes it back to the menu. State byte wSlopSaverDir reuses wUnusedCreditsByte (0=off, else current dir).
* explore: pivot to noclip free-roam cameraAsh Ketchum7 days1-1/+1
| | | | | | | | | | | | | | | | | | | | Ground-truth from render_overworld.py showed Kanto is ONE seamless world joined along shared edges with per-connection offsets -- so a map-by-map browser is the wrong model. Replaced it with noclip free-roam that leans on the engine's own player-walk + connection-crossing machinery (which already handles seams/offsets correctly): - wSlopNoclip flag (reused the dead wUnusedObtainedBadges byte at D356, 0 r/w, not unioned, in the saved region -> safe). - CollisionCheckOnLand: 5-byte hook at the top -> when noclip is set, return no-collision. Freed the room in ROM0 by deleting the unreferenced Func_0db5 (dead farcall LoadToggleableObjectData) in LoadMapHeader. - EXPLORE menu entry now just toggles wSlopNoclip and closes the menu, dropping you into the overworld to glide through walls/NPCs/ledges and walk across map connections exactly as the world data defines them. Verified: Pallet -> (walk north through the fences) -> seam-cross into Route 1 at y=35 -> continue north; toggle off restores collision (player blocked).
* fix(nowild): use wUnusedFlag (0xCC5B) instead of wc5d8 for the toggleAsh Ketchum7 days1-1/+1
| | | | | | | | wc5d8 looked unused but the game writes it via computed addresses (observed it change 56->44->35 while walking/warping), so the NOWILD flag got clobbered and encounters still happened. wUnusedFlag is a genuine unused WRAM0 byte (verified stable at 0 through walking + warping, not in the save block so it defaults off each boot). NOWILD flag now persists reliably.
* menu: add NOWILD toggle + REPEL (and repurpose wc5d8 as the flag)Ash Ketchum7 days1-1/+1
| | | | | | | | | NOWILD toggles wild encounters off (hooked in TryDoWildEncounter, a banked file) with an ON indicator drawn on its menu row; the flag lives in the unused wc5d8 WRAM0 byte (renamed wSlopNoWild, always-accessible, defaults 0). REPEL refills repel steps to 255. (A NOCLIP toggle was prototyped but its hook lands in the full home bank - deferred until I free ROM0 budget.) SL0P MENU now: WARP HEAL MONEY BADGES DEX MAXTEAM ITEMS NOWILD REPEL.
* Identify `wPikachuSpawnStateFlags` and `wPikachuMapScriptFlags` bits, and ↵Yoann Fievez2026-06-241-2/+2
| | | | | | | | `PIKAMOVEMENT_*` constants (#158) - Rename `wd471` to` wPikachuSpawnStateFlags`, with `BIT_PIKACHU_SPAWN_*` bits - Rename `wd492` to `wPikachuMapScriptFlags`, with `BIT_PIKACHU_MAP_*` bits - Introduce `PIKAMOVEMENT_*` constants for `ApplyPikachuMovementData` - Refactor `BillsHouse` scripts and Pikachu/Bill movement data
* Rename wd49b to wPikachuEmotionModifier (#156)Yoann Fievez2026-06-141-1/+1
| | | This variable serves as an override for Pikachu's emotion following specific events like refusing a Thunder Stone. It is automatically cleared when its mood normalizes.
* Merge branch 'master' of https://github.com/pret/pokereddannye2026-01-173-27/+34
|\
| * Use macros to enforce "hidden object" constraints, and rename them to ↵Rangi2026-01-072-7/+7
| | | | | | | | "hidden events" (#559)
| * Use macros to enforce "missable/hide/show object" constraints, and rename ↵Rangi2026-01-072-9/+9
| | | | | | | | them to "toggleable objects" (#557)
| * Use more Pokemon data constants, create MOVE_NAME_LENGTH (#543)Narishma-gb2025-11-271-2/+5
| |
| * Avoid magic numbers for most `CopyData` calls (#542)Rangi2025-11-252-6/+10
| |
| * Use more hardware and graphics constants (#532)Narishma-gb2025-11-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | - Use `OBJ_SIZE` and `TILE_SIZE` from hardware.inc. - `SPRITESTATEDATA1_LENGTH`, `NUM_SPRITESTATEDATA_STRUCTS` and `TILE_1BPP_SIZE` are used in some places. - Highlight an oversight in `OakSpeech` where several direct MBC bank switches are requested. - Remove redundant comments in home/overworld.asm. - Add unreferenced `FillBgMap` function to avoid a byte of dead code. - Some constants added in wram.asm. - Correctly separate the commented code in `SaveMainData`.
* | Merge branch 'master' of https://github.com/pret/pokereddannye2025-11-121-5/+7
|\|
| * Revise some RAM buffer constantsRangi2025-09-261-5/+7
| |
* | Misc. naming and cleanup (#139)Narishma-gb2025-09-101-1/+1
| | | | | | | | | | | | | | | | | | * Name some printer/diploma routines * Name `wd434` * Name `NAME_LENGTH_JP` * Rename `callabd`/`calladb` to `farcall`/`callfar`
* | Use hardware.inc constants in places unique to YellowRangi422025-07-021-3/+3
| |
* | Merge branch 'master' of https://github.com/pret/pokereddannye2025-07-022-16/+16
|\|
| * Check limits for warp, bg, and object eventsRangi422025-07-021-6/+6
| |
| * Define `MAX_WARP_EVENTS`Rangi422025-07-021-2/+2
| |
| * Use combined hardware constantsRangi422025-06-302-5/+5
| |
| * Replace hardware_constants.asm with hardware.inc (#511)Rangi2025-06-302-5/+5
| |
* | Merge branch 'master' of https://github.com/pret/pokereddannye2025-01-302-7/+19
|\|
| * Consistently refer to CGB, not GBC (#491)SatoMew2025-01-301-1/+2
| |
| * Comment on size of unionRangi422025-01-281-0/+1
| |
| * Correct wTileMapBackup declared space (#487)Engezerstorung2025-01-281-2/+13
| |
* | Merge branch 'master' of https://github.com/pret/pokereddannye2024-10-091-4/+7
|\|
| * Consistently format WRAM values (#476)Sylvie2024-10-071-3/+6
| | | | | | | | | | * Use `db` instead of `ds 1` * Use a `UNION` for overlapping `db`/`dw`
| * This byte is written to, but not used (#471)Vortyne2024-09-251-1/+1
| | | | | | | | | | | | | | | | | | it's written to in init_player_data.asm ``` ld hl, wObtainedBadges ld [hli], a ld [hl], a ```
* | Rename off-by-one wram labelsdannye2024-09-291-6/+6
| |
* | Merge branch 'master' of https://github.com/pret/pokereddannye2024-09-252-168/+76
|\|
| * Identify `wCurrentMapScriptFlags` bits (#467)Sylvie2024-09-241-1/+4
| |
| * Identify more flag bits (#464)Sylvie2024-09-231-0/+1
| |
| * Identify remaining uses of `wd0b5` and `wd11e` (#463)Sylvie2024-09-181-11/+16
| |
| * Split `hSpriteIndexOrTextID` into `hSpriteIndex` and `hTextID` (#462)Sylvie2024-09-182-1/+2
| | | | | | Also identify `wPPUpCountAndMaxPP`
| * Fix comment about auto text box drawing (#458)Vortyne2024-08-041-1/+1
| | | | | | Actually, setting bit 0 of this byte disables auto text box drawing on calling DisplayTextID. See https://github.com/pret/pokered/blob/6e3ab0a9e97ff14123ac65f56cb4b4ddab45b695/engine/menus/display_text_id_init.asm#L7
| * Identify wcf91 as wCurPartySpecies, wCurItem, and wCurListMenuItem (#457)Sylvie2024-08-041-1/+4
| |
| * Identify wcd6d as wNameBuffer and others (#455)Sylvie2024-07-241-4/+16
| |
| * Identify various flag labels and bit constants (#454)Sylvie2024-07-161-124/+16
| |
| * Identify some unused WRAM variables (#453)Sylvie2024-06-151-20/+16
| |
* | Merge branch 'master' of https://github.com/pret/pokereddannye2024-05-054-5/+13
|\|
| * Use constant in wram for hidden item flags (#445)Vortyne2024-05-051-2/+2
| | | | | | Prevents defining more hidden items than the flag array has room for
| * Update to RGBDS 0.7.0 (#447)Rangi2024-01-034-0/+8
| |
| * Convert a couple ds 2 to dwvulcandth2023-11-222-2/+2
| |
| * Delete a couple EOL whitespace.vulcandth2023-11-221-1/+1
| |
* | Merge branch 'master' of https://github.com/pret/pokereddannye2023-11-212-17/+13
|\|
| * Get rid of wEvosMoves, MAX_EVOLUTIONS, and EVOLUTION_SIZERangi422023-11-211-4/+0
| | | | | | | | Fixes #430
| * Identify `wSavedCoordIndex` and its other usagesRangi422023-11-201-5/+8
| |
| * Identify the unnamed HRAM variables and one WRAM label (#438)Vortyne2023-11-202-9/+6
| |
* | Merge branch 'master' of https://github.com/pret/pokereddannye2023-11-201-27/+18
|\|
| * Add constants for wMapConnections bits and group map header wram labelsLinus Unnebäck2023-11-171-8/+7
| | | | | | | | | | | | | | | | | | * Add constants for wMapConnections bits * Apply Vulcandth and Rangi42 feedback --------- Co-authored-by: vulcandth <vulcandth@gmail.com>