Gravity Wars is an artillery game like Scorched Earth or Worms but with many planets affecting the path of the projectile.
Gravity Wars is not my original idea. In 2007 I played a 1992 MAC version of this game with my friend and thought it was fun. From my brief correspondence with the creator (Rhys Hollow) of the version for Macintosh I learned the original game was written for Amiga (and not by him). In 2009 I learned how to code to create a clone of the game: https://yboris.dev/gravitywars
In 2015 I tried to re-create the game for the iPad using Codea but lost interest. I finally got around to sharing my code for it in 2019.
In 2020 a co-worker shared LÖVE (aka Love2D) which, like Codea, uses the Lua programming language. I decided to port over my code to LÖVE so as to share this fun game with more people.
The initial commit code is a very quick and dirty port of my 2015 prototype code, which in turn is a quick and dirty port of my 2009 self-taught code. In subsequent commits I improved the code somewhat, but I wouldn't say the current codebase is a good example of how to code well.
- Install LÖVE (game confirmed to work with v11.3)
- In your terminal run
love .
Please feel free to use this code (in full or in part) however you'd like, under the permissive MIT license.
Thank you to Manchson for the MIT licensed basis33.ttf
font.