A listing of random software, tips, tweaks, hacks, and tutorials I made for Ubuntu

BZFPS – A battlezone-like FPS

As an exercise in C and OpenGL programming, I decided to try to make a very basic game in the style of battlezone, inspired by toledo’s 3.5KB battlezone clone. The main point of writing this game (apart from the exercise) was to write a fully functioning and fun game using a minimalistic structure for libraries, media, codebase (the lack of comments was not related though… it’s rather just laziness on my part :/), and even the game design. Here are some of the features implemented in this game:

  • Old-school explosions (you know, lines going everywhere)
  • 2.5D background
  • FPS-like movement
  • Sounds (for this I had to cheat on both libraries and media)
  • Reasonable 3D models
  • Basic AI
  • Screen shakes when you shoot (tried to make it look like a machinegun)

Here is also a screenshot:

BZFPS screenshot

Anyways, here is the link to the source: To compile if you don’t have eclipse, simply run:

cd Debug && make -f makefile

from the project directory. Running is just a matter of double-clicking (if you are using a graphical file manager) the resulting executable.

I do not plan on continuing this project (though I know that it is definitely not finished), as I feel that I am sort of wasting time trying to find a fast collision detection/response algorithm. If anyone cares to submit a patch to fix that, feel free to go ahead, and I will pull it :).

2 responses to “BZFPS – A battlezone-like FPS

  1. wayward4now November 15, 2016 at 2:44 am

    Could the depend on jack be remedied?? I’d rather not install jack if at all possible, as alsa/pulse works a charm. Nice work though!

    • Anonymous Meerkat November 15, 2016 at 12:16 pm

      OpenAL depends on jack under ubuntu??

      Even if it depends on jack, it shouldn’t use it (AFAIK), I’ve never used jack while testing this.

      Thank you for your encouragement!! :D

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: