MeirGavish
e90f23661d
Sound effects for score accumulation and blind menu pop-up ( #313 )
2025-12-16 10:32:04 +02:00
MeirGavish and Rickey
f095bf7024
Added documentation for selection_grid.h ( #309 )
...
* Added documentation for selection_grid.h
* Fix clang-format
* Update include/selection_grid.h
Co-authored-by: Rickey <ric@rf3.xyz >
* Added NULL-checks for selection_grid_move_selection_horz/vert()
---------
Co-authored-by: Rickey <ric@rf3.xyz >
2025-12-15 21:16:25 -08:00
MeirGavish
81e6b7ab31
Button sound effect ( #312 )
...
* Removed magic number for CARD_FOCUS_SFX_PITCH_OFFSET_RANGE
2025-12-13 16:10:15 +02:00
MeirGavish
8a9750b0b3
Used proper text centering for price printing and consolidated functions for printing and erasing ( #308 )
2025-12-13 09:03:06 +02:00
MeirGavish
9bffe5c9a9
Refactor - remove selected from SpriteObject ( #305 )
2025-12-12 18:44:26 -08:00
Marcel Schulz
f9ed858549
[Fixed] Joker shop price not properly erased on purchase ( #286 )
2025-12-11 08:39:09 +02:00
MeirGavish
d96bc9b1c2
Renamed GBLA_UNUSED -> GBAL_UNUSED and updated RowOnKeyTransitFunc documentation ( #292 )
2025-12-10 17:17:28 -08:00
MeirGavish
5a4856ec82
Refactor - removed tile_mem obj charblock index magic number ( #293 )
2025-12-10 17:13:59 -08:00
Rickey and MeirGavish
2fb9e6d633
Clang format joker files and def files ( #257 )
...
* Clang format joker files and def files
* Fix blind usage of GBLA_UNUSED macro
* Add final files for clang-format (main.c and selection_grid.h)
---------
Co-authored-by: MeirGavish <meir.gavish@gmail.com >
2025-12-10 09:41:24 +02:00
Rickey and MeirGavish
35ecbf33ae
Format and document utility files ( #246 )
...
* Format and document utility files
* Add Doxyfile
* small updates for cleanup
* Final touches for util docs
* Replace `_` with `s_` for static functions
* update for clang-format changes
* Update include/audio_utils.h
Co-authored-by: MeirGavish <meir.gavish@gmail.com >
* Apply suggestions from code review
Co-authored-by: MeirGavish <meir.gavish@gmail.com >
* Update include/audio_utils.h
Co-authored-by: MeirGavish <meir.gavish@gmail.com >
* Update include/graphic_utils.h
Co-authored-by: MeirGavish <meir.gavish@gmail.com >
* Make clang-format happy :)
* Update gitignore for doxygen
* restor graphic_utils.c to main
* update graphics utils
* tmp
* tmp
* get it to compile
* fix some bad merge mistakes
* Fix clang format
* Apply suggestions from code review
Co-authored-by: MeirGavish <meir.gavish@gmail.com >
* make clang-format happy
---------
Co-authored-by: MeirGavish <meir.gavish@gmail.com >
2025-12-07 12:56:39 -08:00
bf66f96844
Add swapping order of Owned Jokers ( #258 )
...
* swap Jokers
* Hide score properly
* add key_released to inputs triggering selection_grid process input
* format code
* Add suggestions and bug fixes from @MeirGavish
* Add comment
* format selection_grid
* toto
* format
* format
* Turned clang-format off for selection grid rows
* revert reroll bug fix, already adressed
* format selection_grid.c
* Move conditions around in game.c
* typo
* Attempt at fixing braced initializer indent format
---------
Co-authored-by: MathisMartin31 <mathis.martin31@gmail.com >
Co-authored-by: MeirGavish <meir.gavish@gmail.com >
2025-12-07 02:58:50 -08:00
291edaf4f2
Clang format and refactor game.h/c + update Bracket Alignment to BlockIndent ( #259 )
...
* Refactor and clang-format game.h/c
* Updated clang-format AlignAfterOpenBracket: BlockIndent and ColumnLimit: 100 and refactored all files accordingly
---------
Co-authored-by: MeirGavish <meir.gavish@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-03 13:49:31 +02:00
MeirGavish and Copilot
43d837571e
Truncate Scores ( #269 )
...
* Fixed score truncation erasure, and centering for chips, mult, score and "temp score
* Added centering for money
* Added tests for truncate_uint_to_suffixed_str()
* Fixed u32 bug with get_digits
* Fixed score flames for large numbers
* Small change to update documentation
* Added 1 pixel on to score rect on the left to make room for full character tile + reset_top_left_panel_bottom_row() refactor
* Replaced directional defines with enums
* Updated ante_lut comment
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-02 08:28:36 +02:00
Tygyh and Copilot
8bba449196
Convert BG_ID_* defines to enum BackgroundId ( #265 )
...
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com >
2025-11-30 08:53:51 +02:00
Geralt and MathisMartin31
0953a430c4
Implement Seltzer and Joker Expiration effect ( #252 )
...
* Add Seltzer art
* Implement Joker expiration
* Add exception to copying Jokers + Seltzer message fix
* Move all scoring logic to joker_object_score away from check_and_score_joker_for_event
---------
Co-authored-by: MathisMartin31 <mathis.martin31@gmail.com >
2025-11-30 08:52:42 +02:00
435a9a0a1d
Refactor JokerEffect scoring ( #245 )
...
* Remove usage of memcmp for JokerEffect null check
* Added suggestions from @ricfehr3
* Add suggestions from @MeirGavish
---------
Co-authored-by: MathisMartin31 <mathis.martin31@gmail.com >
Co-authored-by: MeirGavish <meir.gavish@gmail.com >
2025-11-28 19:03:47 +02:00
Rickey
1cacabdff6
Clang format pool ( #255 )
...
* Update comment prefix + add github action
* Clang Format pool
* fix clang format version
* Fix pool clang format
2025-11-27 10:41:13 -08:00
Rickey
184ee719b3
Clang format card.c/h ( #256 )
2025-11-26 00:52:04 +02:00
Rickey
09dd996181
Clang Format Blinds ( #253 )
...
* Quick cleanup on bitset docs
* Clang format blind.h/c
* Replace `_` with `s_` for functions
* Fix newline size for macros.
* Fix format for ci
* Add macro for "unused" attribute
2025-11-25 13:47:44 -08:00
Rickey and MeirGavish
2c32ff69e3
Clang format hand analysis ( #261 )
...
* Clang format hand analysis
* Update source/hand_analysis.c
Co-authored-by: MeirGavish <meir.gavish@gmail.com >
---------
Co-authored-by: MeirGavish <meir.gavish@gmail.com >
2025-11-25 13:45:07 -08:00
Rickey
e910aee184
Clang format list ( #254 )
...
* Finish clang-format on lists
2025-11-25 11:32:50 +02:00
Rickey
6db35b0f95
Clang format sprite ( #262 )
2025-11-24 23:26:47 +02:00
Rickey Fehr
fcb2337fa2
Clang format splash screen
2025-11-23 18:43:45 -08:00
Geralt and MathisMartin31
408c264e85
Modify blueprint and brainstorm implementation to fix retrigger bug ( #244 )
...
---------
Co-authored-by: MathisMartin31 <mathis.martin31@gmail.com >
2025-11-21 20:09:07 +02:00
Geralt and MathisMartin31
2fb41e533c
Make Chips, Mult and Score unsigned and protect against overflow ( #212 )
...
---------
Co-authored-by: MathisMartin31 <mathis.martin31@gmail.com >
2025-11-20 12:39:15 +02:00
Rickey
47b1bac31f
Add list_swap() and list_insert() functions ( #232 )
...
* Add list_swap() and list_insert() functions
* Update docs for list_swap
* Add test case and fix list insert bug
* Fix silly bug with list length on insertion
* Initial changes for pr
* Add reverse iterator and update test for it
* Cleanup iterator next function
* update tests to cover list_get_at_idx
2025-11-18 18:19:00 -08:00
Rickey and MeirGavish
a4caa44580
Add clang format and used it for bitset ( #240 )
...
* Add clang format file .clang-format
* Use clang format on bitset
---------
Co-authored-by: MeirGavish <meir.gavish@gmail.com >
2025-11-18 08:56:32 +02:00
1ac55692e9
Break up the played cards scoring loop into several functions ( #224 )
...
* rename PLAY_PLAYING state into PLAY_STARTING
* make discarded_card and sound_played global variables
* Broken up cards_score state update
---------
Co-authored-by: MathisMartin31 <mathis.martin31@gmail.com >
Co-authored-by: MeirGavish <meir.gavish@gmail.com >
2025-11-16 17:33:01 +02:00
MeirGavish
28043bd7ca
Integrated Photograph joker art by @MathisMartin31
2025-11-12 14:11:16 +02:00
Geralt and MathisMartin31
4183f563ab
Implement cards held in hand effects ( #205 )
...
* Adapt existing Jokers to the Held Card mechanic + effect display location
* Add suggestions from @ricfehr3
* Add suggestions from @MeirGavish
---------
Co-authored-by: MathisMartin31 <mathis.martin31@gmail.com >
2025-11-12 13:18:53 +02:00
Rickey and rfehr-idexx
e0cffab768
Update list implementation to work with memory pools ( #168 )
...
* Introduce indexed list implementation
* Fix CI tests for pool
* Take bitset out of pool
* Replace joker bitset interactions with wrappers
* Add bitset tests
* Add test to gitignore
---------
Co-authored-by: rfehr-idexx <ric-fehr@idexx.com >
2025-11-11 17:56:21 +02:00
03273de829
Adds Shortcut and Four Fingers ( #95 )
...
* adds shortcut joker
* adds Four Fingers joker, and combination support for Four Fingers + Shortcut
---------
Co-authored-by: MeirGavish <meir.gavish@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-01 16:28:40 +02:00
eb815b7820
Refactor of scoring flow, Joker Callbacks and Card Retriggers ( #160 )
...
* Remove Baseball Card for now, will have to wait a future PR
* Removed cards held in hand joker scoring stage - should be in another PR
---------
Co-authored-by: MonteCrysto <mathis.martin31@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: MeirGavish <meir.gavish@gmail.com >
2025-11-01 15:50:52 +02:00
MeirGavish
dfe6edad88
Refactor - Replaced magic number copies with main_bg_se_copy_rect() ( #192 )
2025-11-01 08:12:20 +02:00
MeirGavish
b472ce2bad
Changed the order of suits to match the original Balatro ( #189 )
2025-10-30 11:18:36 +02:00
c510e78704
Implement Interest ( #144 )
...
* Implemented Interest
* Very carefully applied changes from PR #144 to implement interest and fixed magic numbers
---------
Co-authored-by: JustinL-12 <jlong30@uic.edu >
Co-authored-by: MeirGavish <meir.gavish@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-29 20:43:26 +02:00
b38433d191
Weight jokers by rarity in the shop ( #152 )
...
* Added weight for the rarity of jokers in the shop
* Includes manual conflict resolution
---------
Co-authored-by: JustinL-12 <jlong30@uic.edu >
Co-authored-by: MeirGavish <meir.gavish@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-27 19:18:48 +02:00
MeirGavish
a083d3de74
Moved pool file out of external definition and replaced it with a flag ( #176 )
...
* Moved pool file out of external definition and replaced it with a flag
2025-10-22 22:43:02 +03:00
MeirGavish
9b568e8e1a
Moved undefined game state to enum end (more xmacro idiomatic)
2025-10-21 12:50:18 +03:00
MeirGavish
0b848cd72e
Merge branch 'main' into start_music_after_splashscreen
2025-10-21 12:25:07 +03:00
Rickey Fehr
af3d69bcfb
Rename def files
2025-10-18 17:28:35 -07:00
Rickey Fehr
138792df48
Add memory pool test, fix bugs
2025-10-17 18:05:36 -07:00
Rickey Fehr
16059ab632
Update for PR
...
Readd sprite tracker to not reuse indices
check for capacity when returning pool entries
Update script for printing memory map
2025-10-17 16:55:09 -07:00
Rickey Fehr
d499abe2c4
Cleanup for PR
2025-10-17 16:55:09 -07:00
Rickey Fehr
d78e04c6b5
Fix style, tiny error, and typo
2025-10-17 16:55:09 -07:00
Rickey Fehr
5e2bd9a59a
Update memory map script and cleanup
2025-10-17 16:55:09 -07:00
Rickey Fehr
a1e73be3fc
Update github actions to print the memory map
2025-10-17 16:55:09 -07:00
Rickey Fehr
06cd13a17f
Centralize location of memory pools
...
This commit centralizes the location of memory pools and adds an
associated script (scripts/get_memory_map.sh) to read the memory map.
2025-10-17 16:55:09 -07:00
Rickey Fehr
72c0a6c4a9
Optimize bit operations, style fix, cleanup
2025-10-17 16:55:07 -07:00
Rickey Fehr
e00c51502b
Replace Malloc With Pools
...
This commit introduces an object pool and replaces instances of malloc with pools where sensible.
2025-10-17 16:54:09 -07:00