skip to content
chong yong
all projects

Addiction

a top-down game in Java Swing.

year
2023
role
game developer
built with
Java, Java Swing, JDK 8+
link
github.com/ceewaigit/addiction
Addiction, a top-down game in Java Swing.

“every bet has consequences. that's the whole point.”

addiction is a top-down role-playing game built with Java Swing that explores the world of gambling and its consequences. you navigate a virtual casino environment, managing your finances while engaging with multiple gambling mini-games like blackjack, baccarat, and high-low, each with their own mechanics and strategies.

the game features a top-down map with locked doors that require fees to unlock, a shop system for upgrades, customizable character sprites, and a full save/load system. the bankruptcy mechanic kicks in when your balance drops below -100, adding real stakes to every bet you place.

each gambling game is faithfully implemented. blackjack follows standard rules with double winnings on a natural 21, baccarat uses the modulo-10 hand valuation system, and high-low rewards consecutive correct guesses with multiplied winnings. the game uses WASD movement and spacebar interactions for a classic top-down RPG feel.

it was a team project released under the MIT license, requiring JDK 8 or above to run. the game includes sound design and supports both Unix/Linux and Windows compilation.