100 Commits
Author SHA1 Message Date
JaceCear 393357f7c9 Move music_player_table.inc into shared folder (#273) 2026-07-21 11:23:11 +02:00
JaceCear 03db3c919a Re-adjust % to & operation in screen shake (#262) 2026-05-15 18:52:40 +01:00
JaceCear 82dabc2f35 Extend INCPAL use in SA1. (#265)
* Align water_effects.h with SA3
2026-05-07 21:13:25 +01:00
JaceCear 9543ad304e Remove VBlank check in targets that don't need it (#256) 2026-04-26 11:18:02 +01:00
JaceCear 18b9de4bbb Move RGB macros into color.h 2026-03-26 20:28:59 +01:00
JaceCear 6c2716fd53 Fix Game|Time Over text scroll positions (#248)
* Introduce DISPLAY_CENTER_X|Y macros

* Rename ZONE_TIME_TO_INT() -> TIME()

* Rename the time LUTs
2026-03-26 17:11:36 +00:00
JaceCear 52bb392d59 Fix build 2026-03-25 23:57:00 +01:00
JaceCear aafedee043 Add DISPLAY_CENTER_X|Y 2026-03-25 23:27:28 +01:00
JaceCear 3cd7b33b97 Align defines.h with SA2 2026-03-25 23:20:58 +01:00
JaceCear 097080ec6c Rename ZONE_TIME_TO_INT() -> TIME() (#14)
* Rename ZONE_TIME_TO_INT() -> TIME()
2026-03-25 22:51:13 +01:00
JaceCear 9da592bb8e Make palettes format-independent, and other improvments (#242)
* Remove unused RED|GREEN|BLUE_VALUE macros

* preproc: Add basic support for loading .pal files directly via INCPAL()

* Some potential boss_8 render fixes and misc. stuff

* Use INCPAL macro in src/data/sprite_animation.c (but that file's is unused rn?)

* Fix non-main-Makefiles not using preproc properly

* Remove all INCBIN(.gbapal) uses with INCPAL(.pal) in ./src

* Move gSpritePalettes to C

* Rename palette to time_display_singlepak.pal

* Remove obj_palettes.inc

* Use ColorRaw for known palettes

* Fix time_display match

* Rename palette to sound_test_bg.pal

* Add comment and scratch to sub_80236C8

* Use PALETTE_LEN_4BPP

* Document a vocal sample name. Thanks 'Asal (in Harmony)' for letting us know!

* Document palette names in /graphics

* Fix boss palette names

* Renmae to sBoss7Palettes

* Some Boss 7 documentation

* Add ShredWindowsGarbage to win32

* Make PLTT a Color[] in non-vanilla builds

* Make Tilemap use INCPAL
2026-03-17 23:00:00 +00:00
JaceCear c3b39a4087 Fix progress reporting (#13)
* Update CI/CD script

* Fix build RC
2026-03-12 15:36:57 +01:00
JaceCear 6411545bca Use PALETTE_LEN_4BPP 2026-03-03 13:46:16 +01:00
JaceCear 4149e8f256 Document a vocal sample name. Thanks 'Asal (in Harmony)' for letting us know! 2026-03-03 13:45:45 +01:00
JaceCear d1d7074876 Use PALETTE_LEN_4BPP 2026-03-03 13:36:54 +01:00
JaceCear 53f3ad107d Some documentation 2026-03-03 13:35:32 +01:00
JaceCear 99c6df642a Revert #236 and add comment explaining why we need to set the palette memory during HBlank directly. (#237)
* Revert #236

* Add explanation

* Fix equation in comment
2026-02-18 17:28:13 +01:00
JaceCear 8e3c505308 Use new palette macros in decomp_credits.c (#236) 2026-02-18 11:47:47 +01:00
JaceCear 2d42c0efae Implement some additional (still very WIP) OpenGL 1.1 rendering (#232)
* Render sprites with OpenGL directly (but graphics still get generated on-the-fly)

* Some Modelview mtx tests

* Some data documentation

* Very WIP changes

* Some more prep for tilemap rendering

* Draw back chunks

* Apply X/Y flips where needed

* Render 2nd chunk layer

* Document palette IDs in all uses of gObjPalette

* Some VRAM Heap documentation

* Use MetatileIndexType in Background::metatileMap

* Stretch Sonic Team logo on entire screen. Keep gBgScrollRegs in mind for positioning BGs

* Formatter. Fix realloc in win32. Fix crash in Zone 4

* Render 8BPP tilemaps

* Some crash fixes

* Minor priority documentation

* Address explicit gVramHeapState size in initialization

* Streamline most uses of gObjPalette

* Streamline most uses of gBgPalette
2026-02-17 02:27:21 +01:00
JaceCear 293787148b More SA1 alignment (#230)
* SA1 alignment

* Rename SpriteBase::spriteX -> meX

* Rename FLAGS_10 -> FLAGS_EXECUTE_VBLANK_CALLBACKS

* Align task.h with SA3

* Align core.c more with SA3

* Align core.c data with SA3

* Align task.h with SA1

* Align more with SA3

* Align task.h with SA1

* Align task.h with SA3

* Align task.c with SA1|SA3

* Align core.c with SA3

* Align EngineMainLoop with SA3

* Align core.c with SA3

* Some tools alignment with SA1

* Align Makefile with SA1

* Make BG_PLTT and OBJ_PLTT u16*

* Align with SA3

* Make BG_PLTT|OBJ_PLTT accessible as an array. Fix erroneous #if.

* Address USE_SA2_TASK_SYSTEM use from commit comments
2025-12-19 16:32:46 +01:00
JaceCear 76db699212 Align task.c with SA2 2025-12-16 13:11:24 +01:00
JaceCear dc0eb7ba2a Align with SA2|SA3 2025-12-13 23:36:50 +01:00
JaceCear 5079e7f18a Some alignment 2025-12-09 18:16:50 +01:00
JaceCear 1a88ea1be0 Align Makefile more with SA2 2025-12-07 17:52:40 +01:00
JaceCear 4683766ed5 Align Makefile with SA2 more 2025-12-07 17:23:25 +01:00
JaceCear cbefd73d20 Some tools align with SA2 2025-12-07 15:39:56 +01:00
JaceCear b729dbb542 Align core.c with SA3 2025-12-07 03:32:09 +01:00
JaceCear c7fa7b5c7a Match and format SA3's EngineMainLoop 2025-12-07 02:19:03 +01:00
JaceCear a93ebedb51 Match EngineMainLoop 2025-12-07 02:16:35 +01:00
JaceCear 533cd57d3f Align core.c with SA3 2025-12-07 01:57:41 +01:00
JaceCear 60b1bcacbd Align task.c with SA2|SA3 2025-12-06 23:19:13 +01:00
JaceCear 9a3d4781db Align task.h with SA3 2025-12-06 22:38:27 +01:00
JaceCear 4f463fcbe1 Re-introduce TASK_GET_MEMBER|TASK_SET_MEMBER, fix build 2025-12-06 22:27:31 +01:00
JaceCear 73dc4e851a Fix build 2025-12-06 21:15:51 +01:00
JaceCear 3b08c202ce Align task.h with SA3 2025-12-06 16:06:14 +01:00
JaceCear 4d90b1aa97 Finish aligning core.c with SA2 2025-12-06 13:22:41 +01:00
JaceCear 640c7fb7d3 More SA2 alignment 2025-12-05 19:04:35 +01:00
JaceCear b1cf1ac0a2 More SA2 alignment 2025-12-05 18:04:12 +01:00
JaceCear 9f42eb412e More SA2 alignment 2025-12-05 17:28:32 +01:00
JaceCear af56401377 More SA2 alignment 2025-12-05 17:03:25 +01:00
JaceCear afe2e39601 More alignment 2025-12-05 16:45:23 +01:00
JaceCear 22886668b2 Rename sa2__gUnknown_03002710 -> gOamMallocCopiedOrder 2025-12-05 16:40:18 +01:00
JaceCear a5a5090f76 Rename gOamBuffer2 -> gOamMallocBuffer 2025-12-05 16:21:22 +01:00
JaceCear d3fc37ac27 Rename sa2__gUnknown_030022AC -> gBgOffsetsHBlankSecondary 2025-12-05 16:06:50 +01:00
JaceCear baebaf305a More SA2 alignment 2025-12-05 16:00:21 +01:00
JaceCear 5604688d56 Merge branch 'main' of github.com:SAT-R/sa1 2025-12-05 14:10:38 +01:00
JaceCear b0f056e745 Rename sa2__gUnknown_030054B4 -> gMultiplayerRanks 2025-12-05 14:10:24 +01:00
JaceCear 56b65abeda Match Task_Item_Shield_Magnetic 2025-11-20 21:50:11 +01:00
JaceCear 97f58bba25 Fake-match Task_Item_Shield_Normal 2025-11-20 21:41:16 +01:00
JaceCear c9432ff123 Split flags in condition 2025-11-20 21:40:56 +01:00
JaceCear a95371dad9 Some Mecha Knuckles documentation 2025-11-20 18:25:06 +01:00
JaceCear 67d7bc70b4 Fix Mecha Knuckles being undefeatable 2025-11-20 13:45:37 +01:00
JaceCear ca576cab5e Fix camera jitter in Egg Snake boss 2025-11-20 00:08:57 +01:00
JaceCear 5ae73f4564 Fix camera jitter in Egg Spider boss 2025-11-19 23:54:04 +01:00
JaceCear 728441ef6b Fix camera jitter in Egg Ball boss 2025-11-19 23:40:03 +01:00
JaceCear 0caf88740a Fix camera jitter in Egg Press Boss 2025-11-19 23:33:57 +01:00
JaceCear b7de0e5c26 Fix camera jitter in Egg Hammer Tank Mk.1 Boss 2025-11-19 22:48:30 +01:00
JaceCear ce5179300d Use heap size from header file 2025-11-19 19:13:49 +01:00
JaceCear ed87927785 Add word size to task alloc 2025-11-18 17:15:17 +01:00
JaceCear 902df3bb6a Move some data to C 2025-11-18 14:57:52 +01:00
JaceCear 27ccee5a9c Fix platform collision 2025-11-18 12:55:16 +01:00
JaceCear d4a3a09914 Align speedup code with SA2 2025-11-18 11:23:03 +01:00
JaceCear 8e73a86efe Move data_0_5_3 to C 2025-11-16 21:15:11 +01:00
JaceCear 1df132635b Fix crash after Special Stage 2025-11-16 20:04:24 +01:00
JaceCear ec88f3a78d More fixes 2025-11-16 16:57:29 +01:00
JaceCear 7dabb61753 Formatter 2025-11-16 16:36:56 +01:00
JaceCear cf8b931277 More fixes 2025-11-16 16:33:13 +01:00
JaceCear 8183757a97 More compiler fixes 2025-11-16 16:16:44 +01:00
JaceCear 1ce1592818 More compiler fixes 2025-11-16 15:59:33 +01:00
JaceCear f56197cd32 Formatter 2025-11-16 15:43:16 +01:00
JaceCear 3b8b443bbb More compiler fixes 2025-11-16 15:32:26 +01:00
JaceCear 2807a89421 More compiler fixes 2025-11-16 15:13:54 +01:00
JaceCear d725de6076 Formatter fixes... 2025-11-16 14:36:23 +01:00
JaceCear 0e1e47ab6c Fix more errors 2025-11-16 14:34:41 +01:00
JaceCear 199fa62f24 Fix more compiler errors 2025-11-16 14:24:13 +01:00
JaceCear 3ca503102f Fix a couple more compiler errors 2025-11-16 14:06:24 +01:00
JaceCear 476ff3d9b2 Fix wrong function prototype 2025-11-16 13:53:32 +01:00
JaceCear d25ce3128c Fix bitwise NOT bug 2025-11-16 13:44:10 +01:00
JaceCear 11ca8e4470 Fix more compiler errors 2025-11-16 13:37:48 +01:00
JaceCear 5429ac2a38 Handle assets before compiling game 2025-11-16 13:32:07 +01:00
JaceCear 1092fd14b9 Fix some undefined behavior 2025-11-16 13:25:09 +01:00
JaceCear b6f443630f Fix OOB access 2025-11-16 13:00:33 +01:00
JaceCear cf0139b673 Move some CI/CD tests over from SA2 2025-11-16 12:46:41 +01:00
JaceCear 8acf8d3059 Fix compiler error 2025-11-16 12:23:33 +01:00
JaceCear aca663e6df Split MultiplayerScoreData into a union 2025-11-16 12:15:18 +01:00
JaceCear 2f0a4e76fd Fix gUnknown_030057E0's size being uninitialized 2025-11-16 00:54:42 +01:00
JaceCear bbd0807a67 Don't go to character select on boot in non-debug target 2025-11-16 00:06:45 +01:00
JaceCear 6589f8821d Partly align M4A with SA2 2025-11-15 23:28:56 +01:00
JaceCear d39f2c8e6f Align gfx tool with SA2 2025-11-15 23:04:10 +01:00
JaceCear 770e5826ac Add -matching output to build.yml 2025-11-15 13:14:30 +01:00
JaceCear 3379fa1cb5 Use proper .map file in progress script 2025-11-15 13:06:18 +01:00
JaceCear 13196c831f Copy progress script from SA2 2025-11-15 13:05:08 +01:00
JaceCear 4699cc6c6f Align shields in README.md with SA2 2025-11-15 12:59:04 +01:00
JaceCear d4a03b4648 Move some BG data over to C 2025-11-15 01:51:34 +01:00
JaceCear 370231a898 Finish SpStage code section 2025-11-15 01:38:59 +01:00
JaceCear 2c93264197 More SpStage progress 2025-11-15 00:25:13 +01:00
JaceCear f452b36a60 Small UpdateObjectsAndRender percentage improvement 2025-11-14 23:59:42 +01:00
JaceCear ff7f579e71 Fix build 2025-11-14 23:46:56 +01:00
JaceCear f7d832046a Move UpdateObjectsAndRender into non-matching 2025-11-14 23:42:18 +01:00
JaceCear 227fd724c4 Match sub_802C934 2025-11-13 22:53:27 +01:00