Commit Graph

198 Commits

Author SHA1 Message Date
xCrystal
e44744c587 wVramState -> wStateFlags and define flag constants (from pokecrystal f72f078c0e68736adf81f6c45c84f0c1e127a231) 2024-02-11 00:34:46 +01:00
xCrystal
b1fd8f941a Apply e0c278a595bdd0b724607e14398a3c340860b449 from pokecrystal 2024-02-11 00:25:25 +01:00
xCrystal
5c4d982702 Apply most of pokecrystal PR 1105 2024-02-11 00:16:00 +01:00
xCrystal
16ba25346c Implement Rock Smash technique (#34) 2023-12-28 19:53:34 +01:00
xCrystal
2d8ccc53df Reorganize the locations of disabled spaces engine code (#33) 2023-12-21 20:04:30 +01:00
xCrystal
1cc65f4255 Implement disabled spaces through east/west connections (#33) 2023-12-21 19:56:52 +01:00
xCrystal
fc6f496254 Implement disabled spaces through north/south connections (#33) 2023-12-21 18:16:31 +01:00
xCrystal
7641bb7876 Implement the engine to backup disabled map spaces (#33) 2023-12-20 19:14:28 +01:00
xCrystal
d097191ab1 Implement the engine to backup map objects when chaning maps (#32) 2023-12-15 19:10:47 +01:00
xCrystal
2bca51eb09 Rename Map<N>Object addresses to MapObject<N>; create wMapObjectsBackups and sMapObjectsBackups in respective WRAM/SRAM sections (#32) 2023-12-15 13:43:42 +01:00
xCrystal
7ede3d1357 Create COLL_OUT_OF_BOUNDS to handle isolated areas within the same map that should not be visible in View Map mode (#29) 2023-12-14 21:24:08 +01:00
xCrystal
af9ab166c4 Ensure anchor points are applied when landing after warp by creating a new setup script 2023-12-14 17:11:15 +01:00
xCrystal
6613cd5386 Add anchor points to support manual movement between spaces (#26) 2023-11-16 17:20:13 +01:00
xCrystal
29bea311fe Rename PAL_OW_EMOTE and PAL_NPC_EMOTE to *_GREY 2023-11-05 11:07:32 +01:00
xCrystal
8f3e9b04e2 Implement View Map mode [commit 4]: draw arrows OAM and refactor previous commit to support this (#29) 2023-11-04 13:04:25 +01:00
xCrystal
a52e7f4df5 Effects of branch space [Commit 1] (#28) 2023-10-24 20:36:23 +02:00
xCrystal
89a17c3a05 Make sure overworld sprites don't appear after returning from overworld [bugfix] (#17) 2023-10-21 19:29:29 +02:00
xCrystal
b0e2e7aef3 Rename wCurSpaceData and wTempSpaceData to *SpaceStruct and create space_struct macro 2023-10-20 20:16:10 +02:00
xCrystal
3291b82069 Implementation of basic navigation and movement across linear spaces (#24) 2023-10-18 17:46:57 +02:00
xCrystal
a01f04e967 Implement common tileset portion at second half of vTiles5: palette maps (#19) 2023-10-04 17:20:48 +02:00
xCrystal
adfcd603dd Implement common tileset portion at second half of vTiles5 (#19) 2023-10-03 19:02:36 +02:00
xCrystal
a16322350f Functional stub of title menus [Commit 1] (#17) 2023-10-01 00:10:44 +02:00
xCrystal
ca919cdf98 Board menu: implement preliminary Party, Bag, Pokegear, and Exit submenus (#11) 2023-09-22 23:12:05 +02:00
xCrystal
f386a63cf8 Overworld HUD implementation (#15) 2023-08-29 18:33:20 +02:00
xCrystal
fd6f02036e Improve some innacurate function names from pokecrystal 2023-08-28 13:30:13 +02:00
xCrystal
052d246ee3 Use overworld textbox in text printing functions, differentiating between 1bpp and 2bpp text (#10) 2023-08-11 12:28:14 +02:00
xCrystal
f64bbf700d Consolidate behavior of fading to/from white in overworld (#2), Fix naming screen tiles (#3) (bug fix to 6e3c5fd008) 2023-08-04 23:54:53 +02:00
xCrystal
55a38ff2de Make map environments more granular and make all map palettes except darkness depend on map environment (#7) 2023-08-04 18:45:50 +02:00
xCrystal
6e3c5fd008 Expand tilesets from 192 to 255 tiles (#2) [Commit 2], Reorganization of pokecrystal charmap and fonts layout (#3) 2023-08-02 19:52:51 +02:00
xCrystal
59bda0b36b Fix some pokecrystal bug and glitches (#8)
Credits sequence changes move selection menu behavior; Swimming NPCs aren't limited by their movement radius; No bump noise if standing on tile E; The unused phonecall script command may crash; ScriptCall can overflow wScriptStack and crash; LoadSpriteGFX does not limit the capacity of UsedSprites; ReadObjectEvents overflows into wObjectMasks; ClearWRAM only clears WRAM bank 1; BattleAnimCmd_ClearObjs only clears the first 6⅔ objects; Options menu fails to clear joypad state on initialization
2023-07-27 13:01:32 +02:00
xCrystal
d30b9dd60f Further remove unnecessary DMG/SGB checking (#7) and remove SGB layouts and palette data (#1) 2023-07-26 17:02:33 +02:00
xCrystal
60cacea4b0 Remove unreferenced content in bank 0 (#1) 2023-07-25 11:54:34 +02:00
xCrystal
fc7f2d4e0e Remove Mobile, Battle Tower, Mystery Gift, and Odd Egg (#1) 2023-07-24 21:13:11 +02:00
xCrystal
74b8214272 Expand blocks per tileset from 128 to 256 (#2) 2023-07-24 14:05:48 +02:00
Rangi
41d5ea0482
Rename the object_struct field labels and constants (#1005)
Fixes #990
2022-09-12 09:15:44 -04:00
vulcandth
ef9b9bb437
Clean up bugs commented in the source code (#912)
Co-authored-by: Rangi <remy.oukaour+rangi42@gmail.com>
2022-07-09 16:12:02 -05:00
Rangi
a6cffc04c3 Use MAP_LENGTH in GetMapPointer 2021-12-30 18:16:22 -05:00
Rangi
40902ffe24 Verify data table sizes with table_width and assert_table_length macros
This was discussed in #706

It also uncovered some off-by-one issues with defining some constants.

A few structs now use rsreset/_RS to define their offset constants, as discussed in #739
2021-03-04 00:15:03 -05:00
Rangi
5db892782a Remove "Buffer" suffix from two HRAM labels 2020-12-23 16:54:28 -05:00
Rangi
99e66c2557 Rename some labels
- Remove "Buffer" suffix from some byte and word quantities
- Change "Ptr" to "Pointer"

Fixes #789
2020-12-23 16:29:30 -05:00
Rangi
9b3c45b14d Resolve some "???" comments 2020-11-17 11:09:02 -05:00
Rangi
17894e5f39 Replace $0 with 0 for "ld l, a / ld h, 0" idiom 2020-11-09 15:20:40 -05:00
Rangi
ba5bc304f9 Updates to more closely sync with pokegold 2020-10-29 23:23:57 -04:00
Rangi
6d333bed5f Replace many '; unused' with '; unreferenced' 2020-10-28 10:21:10 -04:00
Rangi
e239aa4aba Disassemble the final English debug ROM 2020-07-13 15:18:28 -04:00
Rangi
61847b3596 Identify some more labels 2020-06-22 16:30:13 -04:00
Rangi
c3c18dd196 Comment more ROM labels as unreferenced
(Some unreferenced labels are above code which is still used via fallthrough!)
2020-06-21 18:33:31 -04:00
Rangi
91774f206e Replace "Unreferenced" labels with "; unreferenced" comments 2020-06-21 16:27:43 -04:00
Rangi
576cbf5b3e Miscellaneous fixes, including one for the Pokédex design flaw by ax6 2020-04-18 17:31:51 -04:00
Rangi
10909e6b43 hStackBank -> hTempBank 2020-04-06 13:02:23 -04:00