RickeyandCopilot Autofix powered by AI 92cb9f9883 Refactor/state machine (#470)
* initial additions

* Move current_blind to game vars

* tmp

* tmp

* tmp

* tmp

* tmp

* tmp

* tmp

* Compile but is broken

* temp fix for token location

* tmp

* Working, lets clean up

* remove todo

* Remove odd reroll blind variable

* fix skipping blind screen

* fix reroll

* remove magic for blind token locations

* clang format

* Cleanup button highlight in blind menu

* some cleanup

* Add layout file for global UI rects

* remove dead code

* Clang format

* clang format it up

* Move reset top left funct to gfx utils

* make note of soon-to-be removed vars

* Cleanup gamevars declaration

* Cleanup layout file

* Apply suggestions from code review

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Add include for stdbool.h in common_ui.h

* Cleanup rect declaration

* Start moving state machine stuff to new file

* quick tmp

* oops, add new files

* working call list

* fixed pointer stuff

* working as per norm

* working replacement

* move defines to static const

* fix compile issue

* Add some missing "void"s

* Working new substates

* add statemachine to blind select

* Fix game restart statemachine leak

* clang-format

* Clang format

* Rework shop exit logic

* Use new state machine in shop

* Remove substates entirely

* Remove debug stuff

* Clang format

* document state machine better

* update list tests

* clang-format

* Update for PR

* Claaaaang format

* another clang-format

* Remove extra state in round_end

* cleanup docs for removals in lists

* clang-format... again

* update doxygen format

* Clang format

* Update list docs

* Update lists tests

* Fix bad conflict resolution

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-22 18:06:13 -07:00
2026-04-27 20:04:18 -07:00
2026-05-06 09:57:12 -07:00
2026-04-04 23:58:08 -07:00
2026-05-22 18:06:13 -07:00
2026-05-22 18:06:13 -07:00
2026-05-22 18:06:13 -07:00
2026-05-21 20:07:34 -07:00
2025-08-25 07:32:44 -04:00
2026-04-04 23:58:08 -07:00
2026-05-21 20:07:34 -07:00

Balatro-GBA

Build Status Open Issues Pull Requests Discussions

Disclaimer

This project is a non-profit fan demake of Balatro for the Game Boy Advance, meant to recreate it as accurately as possible including all the visuals that make it satisfying to play. It is not affiliated with or endorsed by Playstack or LocalThunk and it is not to be sold. This version is a minimal tech-demo, intended for those who already own and know the official game. Refer to the Balatro wiki below for descriptions of game mechanics and joker effects. All rights remain with the original holders.

Balatro Wiki

Please buy the official full version from these sources below:

Balatro on Steam Balatro on Google Play Balatro on Apple App Store Balatro on Nintendo eShop Balatro on PlayStation Store Balatro on Xbox Balatro on Humble Bundle


Download ROM

See CONTRIBUTING.md for build instructions for Docker, Linux, MacOS, and Windows.


https://github.com/user-attachments/assets/54a9e2e9-1a02-48d5-bb9d-5ab257a7e03b

Controls:

(D-Pad: Navigation)

(A: Pick Card/Make Selections)

When on the hand row during round

(L: Play Hand)

(R: Discard Hand)

(B: Deselect All Cards)

When on the joker row in the shop or during round

(L: Sell Joker)

(Hold A: Swap Owned Jokers or Playing Cards in the Shop or Round)

Contributing

If you would like to contribute, please read CONTRIBUTING.md.

Credits:

Game

This GBA implementation is based on Balatro which is designed and created by LocalThunk and published by Playstack. See repository contributors list for code contribution credits to this GBA implementation.

Music

Music arrangement is made by @cellos51 and @MeirGavish based on original Balatro soundtrack by LouisF and transcription by MrCrimit.

Imagery

Sprites and backgrounds are based on original Balatro imagery created by LocalThunk. See Joker Art Discussion for full credits for each joker sprite.

Sounds

For the mult and xmult sound effects: Toy records#06-E3-02.wav by poissonmort used under License: Attribution 4.0

All other sound effects were created by LocalThunk and are used under Creative Commons - CC0 license.

S
Description
No description provided
Readme
27 MiB
Languages
Logos 87.3%
C 10.7%
CSS 1.3%
JavaScript 0.2%
Makefile 0.2%