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 :).


7 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

      • wayward4now December 25, 2016 at 7:41 pm

        It initially starts, I get the nice graphical screen, then it seg faults. What can I send you to debug this?? Bzone has to be one of my favorite old time games. I’d love to see this included in Debian games.

        • Anonymous Meerkat December 26, 2016 at 5:59 pm

          Fixed! Also included a build script so you don’t have to install eclipse :)

          Sorry, this is an early project of mine, and I didn’t know C very well, it’s very buggy and poorly coded. I’m surprised it even worked back when I wrote it haha

        • Anonymous Meerkat December 26, 2016 at 6:00 pm

          If I have time, I’ll try to see if I can fix this a bit … it’s not very fun or functional at the moment :(

          • wayward4now December 27, 2016 at 9:41 am

            Oh yes! Te new build works much better, if you used the old skool “a s d w keys to move, so you don’t get pounded.. What is the fire button??

            • Anonymous Meerkat December 27, 2016 at 12:54 pm

              Yes, it should be wsad to move :) Mouse click to fire :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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: