Commit Graph

270 Commits

Author SHA1 Message Date
xCrystal
a52e7f4df5 Effects of branch space [Commit 1] (#28) 2023-10-24 20:36:23 +02:00
xCrystal
ad345222ae Handle white out transition from overworld (incl. battle) to game menu (#27) 2023-10-23 18:40:08 +02:00
xCrystal
866729d024 Clear sprite animations before board menu die roll animation to prevent artifacts such as from party menu animations (#11) 2023-10-23 17:36:52 +02:00
xCrystal
e9ad1f5612 Rename _UpdateSprites to _UpdateActiveSprites and create UpdateActiveSprites in home back (along with the existing UpdateSprites) 2023-10-21 18:46:56 +02:00
xCrystal
961d2f0b6e End space effect (#22) 2023-10-21 18:00:59 +02:00
xCrystal
f9f0467d76 Add definitions for additional regular spaces (green, item, pkmn, minigame) and end space (#21) 2023-10-19 20:38:54 +02:00
xCrystal
09e05890e5 Disable A/START/SELECT button actions while in BOARDEVENT_HANDLE_BOARD (#24) 2023-10-18 20:29:49 +02:00
xCrystal
c99444d1b9 Documentation 2023-10-18 20:04:11 +02:00
xCrystal
fbfd582926 Do not reset wCurTurn and wCurSpace if entering from save in overworld [Bug fix to previous commit] (#24) 2023-10-18 18:07:46 +02:00
xCrystal
3291b82069 Implementation of basic navigation and movement across linear spaces (#24) 2023-10-18 17:46:57 +02:00
xCrystal
a31c114382 Separate disabling space events and tile events so they aren't mutually exclusive in the same step (#25) 2023-10-17 16:24:04 +02:00
xCrystal
7448da8380 Create BOARDEVENT_END_TURN as a transition between turns after landing on space (#25) 2023-10-14 21:45:48 +02:00
xCrystal
b9ac41feb6 Upkeep tasks in board menu: auto save game, increase turn, clear wTurnData (#11); also init wCurTurn and wCurSpace in EnterMap 2023-10-14 20:52:09 +02:00
xCrystal
47422a1adb Begin implementation of base effect of regular spaces (#21) 2023-10-14 19:28:35 +02:00
xCrystal
917db30e98 Save game and clear board menu cursor position during game menu (#17) 2023-10-07 19:08:54 +02:00
xCrystal
a16322350f Functional stub of title menus [Commit 1] (#17) 2023-10-01 00:10:44 +02:00
xCrystal
e53ae0eac9 Optimize some HRAM usage 2023-09-30 19:12:57 +02:00
xCrystal
8967898bc9 Create function to update only secondary sprites to optimize die roll animation (#11) 2023-09-30 13:30:30 +02:00
xCrystal
1f2be83ebc Board menu: move die number animation (#11) 2023-09-27 19:25:47 +02:00
xCrystal
98d69d4e04 Board menu: break die and appear die number animations (#11) 2023-09-26 20:09:13 +02:00
xCrystal
db7d9c7063 Board menu: die roll input and animation (#11) 2023-09-25 21:57:47 +02:00
xCrystal
5e78fd1ecc Sync with pokecrystal up to b0ddb07 2023-09-24 14:30:54 +02:00
xCrystal
d6001be90c Sync with pokecrystal up to 8873506b1 2023-09-24 14:21:42 +02:00
xCrystal
193882bc77 Constants for board menu gfx sizes (#11) 2023-09-23 11:50:25 +02:00
xCrystal
ca919cdf98 Board menu: implement preliminary Party, Bag, Pokegear, and Exit submenus (#11) 2023-09-22 23:12:05 +02:00
xCrystal
c11c53e0d7 Documentation (Overworld loop) 2023-09-15 20:04:16 +02:00
xCrystal
eb728d5151 Rename the concept of Money to Coins (#7) 2023-09-02 23:17:20 +02:00
xCrystal
98fa7a9538 Rename the concept of Coins to Chips (#7) 2023-09-02 18:23:25 +02:00
xCrystal
ea4ab28652 Enforce capacity limit of sprite list in VRAM (#2); actually fix LoadSpriteGFX (#8) [bugfix to 59bda0b36b] 2023-09-02 13:01:45 +02:00
xCrystal
74f2a55332 Add new map setup script MAPSETUP_ENTERLEVEL (#4), and integrate overworld HUD setup in the corresponding setup scripts (#15) 2023-08-31 19:27:39 +02:00
xCrystal
2957bce0a9 Don't hide sprites behind a 2BPP textbox if they are partially outside of it, and make 2BPP textboxes have priority over objects (#7); Generalize 1bpp/2bpp text state tracking (#10) [reworks 052d246e] 2023-08-31 18:41:05 +02:00
xCrystal
9f835560d7 Tinker with overworld HUD implementation in f386a63cf8 (#15) 2023-08-30 19:23:51 +02:00
xCrystal
f386a63cf8 Overworld HUD implementation (#15) 2023-08-29 18:33:20 +02:00
xCrystal
b275d642cd rename load_map_part.asm to load_screen_tilemap.asm following function name changes in fd6f02036e 2023-08-28 17:52:15 +02:00
xCrystal
fd6f02036e Improve some innacurate function names from pokecrystal 2023-08-28 13:30:13 +02:00
xCrystal
11db1300b2 Window HUD: Handle Window being fully shown during reanchor map (#15) 2023-08-28 12:03:32 +02:00
xCrystal
6e49bb9893 Implement the basics of the window HUD functionality (#15) 2023-08-27 19:18:52 +02:00
xCrystal
fc2e757c57 Make level selection menu landmarks universal (#4) (#12) 2023-08-20 12:08:24 +02:00
xCrystal
684c2eff78 Board menu (#11) [Commit 2] 2023-08-17 13:51:29 +02:00
xCrystal
c405c955ba Load overworld font and frame via HDMA instead of copying to VRAM (#10) 2023-08-12 21:14:46 +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
be5f3ad6e1 Remove unused map environment with index 0 (#7), Implement function to draw the overworld textbox (#10) 2023-08-07 13:23:57 +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
dd04feb32a Remove map name sign feature (#1) 2023-07-31 19:30:40 +02:00
xCrystal
9df4cf6946 Create a fourth time of day (#2) 2023-07-31 12:27:53 +02:00
xCrystal
05448d7a7e Remove RTC (#1) and remove time of day dependence on RTC (#7) [Commit #2] 2023-07-28 00:07:07 +02:00
xCrystal
0571144a7b Remove RTC (#1) and remove time of day dependence on RTC (#7) [Commit 1] 2023-07-27 20:32:15 +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
acd022d765 Remove unnecessary DMG and SGB checking (#7) 2023-07-26 17:02:33 +02:00
xCrystal
15f452ff26 Remove indoor sprites (#7), and improve overworld sprite sorting in VRAM (#2) 2023-07-26 10:30:47 +02:00
xCrystal
473c23a727 Remove unnecessary event and engine flags (#1) 2023-07-25 18:24:38 +02:00
xCrystal
5147904f78 Remove original maps and object events (#1) 2023-07-25 15:33:08 +02:00
xCrystal
fc7f2d4e0e Remove Mobile, Battle Tower, Mystery Gift, and Odd Egg (#1) 2023-07-24 21:13:11 +02:00
vulcandth
438c48daad
Rename PAL_NPC_SILVER to PAL_NPC_EMOTE (#1053) 2023-06-01 07:47:53 -05:00
vulcandth
c01409be5a
Relabel some map_object struct fields (#1029) 2023-01-03 22:16:08 -05:00
vulcandth
c4e3f2bbc2
TrainerWalkToPlayer should reference wSeenTrainerDistance (#1020) 2022-11-22 21:03:24 -05:00
vulcandth
f7d26fbe9c .CheckNPC label and comment correction 2022-11-07 20:27:09 -06:00
Rangi
8e135931a6 Require rgbds 0.6.0 2022-10-02 22:03:53 -04:00
Rangi
41d5ea0482
Rename the object_struct field labels and constants (#1005)
Fixes #990
2022-09-12 09:15:44 -04:00
Colton G. Rushton
145d8dd5c2
wVirtualOAM -> wShadowOAM and hTransferVirtualOAM -> hTransferShadowOAM (#971) 2022-07-09 17:18:22 -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
Colton G. Rushton
84a3b335aa
Document that farcall returns c in a for some code (#937) 2022-06-17 22:30:53 -04:00
vulcandth
3648afda16
RGBDS syntax updates (#905)
New MACRO and DEF syntax
2022-06-06 17:25:42 -04:00
vulcandth
a4d346cc8c
Improved Virtual Console patch identifiers (#907) 2022-06-06 17:22:48 -04:00
vulcandth
31c3c94d64
Build the Virtual Console patch with make crystal11_vc (#882)
Fixes #813
2022-03-12 18:34:04 -05:00
Rangi
3a562f9896 Identify some wMenuJoypad-related button constants 2022-03-09 19:42:26 -05:00
Idain
5ac4a51751
Use time constants more often (#867) 2022-01-10 20:57:40 -05:00
Rangi
e706b878d9 Use ~X instead of $ff ^ X 2021-11-23 20:37:18 -05:00
Rangi
f59f1bdb88 Standardize capitalization of ".Jumptable" 2021-06-19 19:52:05 -04:00
Rangi
e4d82e92d0 Rename prioritysjump to sdefer 2021-06-08 20:35:04 -04:00
Rangi
316fa4b695 Use rgbds 0.5.0 2021-04-19 16:31:37 -04:00
Rangi
dc18e188b2 Sync some files with pokegold 2021-03-24 10:24:52 -04:00
Rangi
dbe2360ecd Miscellaneous cleanup 2021-03-22 16:41:17 -04:00
Rangi
6c8f8609cb Assert some more table widths 2021-03-17 11:38:01 -04:00
Rangi
ec1fe073a3 $11 = wTempMonStructEnd - wTempMonLevel 2021-03-15 15:40:48 -04:00
Rangi
97a11c623e Sync some files with pokegold 2021-03-11 17:43:20 -05:00
Rangi
d132a20b7a Verify script command table sizes 2021-03-11 16:28:52 -05:00
Rangi
dbabd8b4a9 Define MAPGROUP_* constants and verify MapGroup_* table sizes 2021-03-10 21:16:54 -05:00
Rangi
e791c5392b
Merge pull request #806 from Rangi42/tables
Verify data table sizes with table_width and assert_table_length macros
2021-03-08 07:01:31 -08:00
Rangi
c1c609ec4a Identify scrolling menu lists in WRAM
Fixes #809
2021-03-08 09:41:55 -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
7d3ea88611 Rename GetFarHalfword to GetFarWord
Fixes #796
2021-01-09 15:16:05 -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
4613bcfadf Use STRING_BUFFER_LENGTH for the wStringBuffers 2020-11-24 20:11:17 -05:00
Rangi
97e981985b Correct some filename comments 2020-11-17 11:12:21 -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
c88c4a8340 Identify more uses of wBuffer1-6 2020-11-03 19:53:07 -05:00
Rangi
ba5bc304f9 Updates to more closely sync with pokegold 2020-10-29 23:23:57 -04:00
Rangi
bcc0d633e9 Identify the remaining (non-mobile) uses of another WRAM union 2020-10-29 14:51:41 -04:00
Rangi
ea426a8879 Identify more WRAM labels, and start a <X>_DummyFunction label convention 2020-10-28 14:34:38 -04:00
Rangi
6d333bed5f Replace many '; unused' with '; unreferenced' 2020-10-28 10:21:10 -04:00
Rangi
446f1846b1 Identify remaining Mystery Gift labels and constants
Source: https://projectpokemon.org/home/forums/topic/43930-mystery-gift-reverse-engineering-of-ir-protocol/
2020-10-27 23:09:06 -04:00
Rangi
c85ba78b77 Use more assertions to ensure correct code and data 2020-10-26 22:24:38 -04:00
Rangi
9dcdad5e60 Comment, remove, or revise many unreferenced labels 2020-10-26 20:29:58 -04:00
Rangi
bd3f634049 Identify remaining map object labels 2020-10-22 21:30:21 -04:00
Rangi
d8310c166d Identify some more map object labels and constants 2020-10-22 17:41:48 -04:00