Balatro’s Epic Source Code
Balatro source code has an epic 4717 file card.lua with all the game logic spelled out in gargantuan if/else stacks if self.ability.name == "Fortune Teller" and G.GAME.consumable... if self.ability.name == "Gros Michel" then if self.ability.name == "Cavendish" then if self.ability.name == "Red Card" and self.ability.mult > 0 then if self.ability.name == "Card Sharp" and G.GAME.hands... if self.ability.name == "Bootstraps" and math.floor(...) if self.ability.name == "Casino" and self.ability.casino_xmult > 1 if self.ability.name == "Yorick" and self.ability.yorick_discards...
A screenshot of Balatro’s card.lua source code shows an enormous chain of if/else statements handling individual cards and abilities. The joke is that the game’s logic is comically large and explicitly spelled out in a single massive file, poking fun at the source code’s cumbersome structure. EN: A screenshot of Balatro’s card.lua source code shows an enormous chain of if/else statements handling individual cards and abilities. The joke is that the game’s logic is comically large and explicitly spelled out in a single massive file, poking fun at the source code’s cumbersome structure.
code editor / редактор кодаsource code / исходный кодcomputer screen / экран компьютераprogramming text / текст программыif/else statements / операторы if/elsecode lines / строки кодаdark theme / тёмная темаsyntax highlighting / подсветка синтаксисаcard game logic / логика карточной игрыsocial media post / пост в соцсети
- @gentoomemes / 10844 2024-04-23
- Type
- image
- Size
- 482×800 · 99.1 KiB
- Mood
- саркастичный, абсурдный
- Language
- en
- Added