https://github.com/whyboris/gravity-wars
Artillery game written in Lua with help of Love2D
https://github.com/whyboris/gravity-wars
artillery-game game love2d love2d-game lua
Last synced: 9 months ago
JSON representation
Artillery game written in Lua with help of Love2D
- Host: GitHub
- URL: https://github.com/whyboris/gravity-wars
- Owner: whyboris
- License: mit
- Created: 2020-04-02T00:45:55.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-01-04T16:25:01.000Z (about 2 years ago)
- Last Synced: 2025-03-31T01:23:41.491Z (10 months ago)
- Topics: artillery-game, game, love2d, love2d-game, lua
- Language: Lua
- Homepage:
- Size: 60.5 KB
- Stars: 48
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gravity Wars
*Gravity Wars* is an [artillery game](https://en.wikipedia.org/wiki/Artillery_game) like [_Scorched Earth_](https://en.wikipedia.org/wiki/Scorched_Earth_(video_game)) or [_Worms_](https://en.wikipedia.org/wiki/Worms_(series)) but with many planets affecting the path of the projectile.

## Background
_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](https://codea.io/) but lost interest. I finally got around to sharing my code for it in [2019](https://codea.io/talk/discussion/9563/gravity-wars-giving-away-my-code-on-unfinished-game).
In 2020 a co-worker shared [LÖVE](https://love2d.org/) (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.
## Development
1. Install [LÖVE](https://love2d.org/) (game confirmed to work with v11.3)
2. In your terminal run `love .`
## License
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`](https://github.com/Manchson/basis33) font.