Final project for CE21 (Introduction to Computing) at Ateneo de Manila University. Source code and pre-compiled binaries are available in the GitHub repository—run windows-amd64/one-big-fighters.exe on Windows or linux-amd64/one-big-fighters on Linux without needing to recompile in Processing.
Group Members: Hans Jarett Ong, Johnny Ong, and Jongmin Yim.
Overview & Controls
One Big Fighters is a two-player 2D fighting game set across Ateneo campus landmarks such as the Rizal Library. Players choose their fighter and stage from the selection screen and battle until one fighter’s health bar reaches zero.
- Player 1:
Wto jump,A/Dto move left and right,Gto punch, andHto kick. - Player 2: Arrow keys to move and jump,
.to punch, and/to kick.
Engineering Challenges & Solutions
- Jumping, Punching, and Kicking: Using Processing’s
keyPressedcallback directly caused awkward timing for simultaneous actions. We built a boolean “switchboard” state machine to track active actions cleanly across frames. - Simultaneous Input Lag: Two players pressing keys at once caused control contention between
Fighterinstances. Consolidating input handling into a single top-levelkeyPresseddispatcher eliminated the lag. - GIF Sprite Animations: Processing’s default image API did not support animated GIFs out of the box, so we integrated Kevin Weiner’s
gifAnimationlibrary. - One-Shot Events Inside
draw(): State transitions and round-end triggers that needed to fire once inside the continuousdraw()loop were guarded withdone_this_onceflags.
Known Quirks & Future Improvements
- Collision Asymmetry: Because
Fighter 1andFighter 2collision checks execute sequentially, Player 2 can push Player 1 (and reversing the update order flips the asymmetry). - Planned Enhancements: Higher-resolution winner zoom graphics, combo/special move sequences, and an expanded character roster.
Gallery
