Hans Jarett Ong
Lab Note2016

One Big Fighters

Two-player 2D fighting game built in Processing set across iconic Ateneo de Manila University landmarks.

ProcessingJavaGame Dev2D Graphics

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: W to jump, A / D to move left and right, G to punch, and H to kick.
  • Player 2: Arrow keys to move and jump, . to punch, and / to kick.

Engineering Challenges & Solutions

  1. Jumping, Punching, and Kicking: Using Processing’s keyPressed callback directly caused awkward timing for simultaneous actions. We built a boolean “switchboard” state machine to track active actions cleanly across frames.
  2. Simultaneous Input Lag: Two players pressing keys at once caused control contention between Fighter instances. Consolidating input handling into a single top-level keyPressed dispatcher eliminated the lag.
  3. GIF Sprite Animations: Processing’s default image API did not support animated GIFs out of the box, so we integrated Kevin Weiner’s gifAnimation library.
  4. One-Shot Events Inside draw(): State transitions and round-end triggers that needed to fire once inside the continuous draw() loop were guarded with done_this_once flags.

Known Quirks & Future Improvements

  • Collision Asymmetry: Because Fighter 1 and Fighter 2 collision 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.
One Big Fighters title and character selection screen One Big Fighters stage selection and gameplay preview One Big Fighters in-game combat set on the Ateneo campus