Skip to content

JLi69/galaxy_invaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Galaxy Invaders

This is a simple game that is sort of a Space Invaders / Galaga clone but the enemies can be scripted using Lua. I made this just to test my knowledge of the Lua programming language and if I can integrate it into a C program (like a simple game).

There are 15 waves and a final boss fight along with a bunch of randomly generated waves after that (though a lot of those are pretty much downright unfair to play, be warned).

Modding/Scripting the Game

If you do try modding the game, be warned that I did not include proper error checking into this game as I mostly consider this a small demo for me to experiment with the Lua Programming Language and its C API but documentation will be included - you won't get any error messages if something does go wrong.

NOTE: sometimes if you pass in a nil value to some functions it could result in the game crashing so be careful of that.

Documentation

Documentation can be found in docs/.

You can either find it in plain text or as html in docs/html-docs/.

Build from source

You will need the following libraries installed on your system to get the game to build:

Linux:

cd galaxy_invaders
make
./galaxy_invaders

Windows:

I used mingw-w64 to compile the game on Windows so you will be most likely to get it to work with that.

cd galaxy_invaders
mingw32-make
.\galaxy_invaders

Screenshots

screenshot1

screenshot2

screenshot3

CREDITS

Libraries Used:

Lua (website)

GLFW (website)

glad (website)

SOIL2 (repo)

Images used:

background.png - "Sombrero Galaxy" Credit: STScI, NASA

About

Simple Space Invaders clone with Lua scripting.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages