space invaders demake written in c++ with opengl and glfw. based on the excellent tutorial by Nick Tasios.
spaceInvaders/
โโโ include/ # headers (GL/, GLFW/, KHR/) - all the good stuff
โโโ lib/ # static libs (glew32.lib, glew32s.lib, libglfw3dll.a)
โโโ src/ # source code (main.cpp) + runtime dlls
โโโ .vscode/ # vs code config (tasks.json, c_cpp_properties.json)
โโโ glew32.dll # runtime dependency 1
โโโ glfw3.dll # runtime dependency 2
โโโ space.exe # the final boss (appears after build)
โโโ README.md # you are here
- g++ compiler with c++11 support
- vs code with c++ extension (recommended but not mandatory)
- windows (sorry linux users)
- support for openGL 3.3+
- open folder in vs code
- hit
ctrl+shift+bto build - run
space.exe
g++ -g -std=c++11 -Iinclude -Llib src/*.cpp -lglfw3dll -lopengl32 -lglew32 -o space.exeโโ: move (left/right, obviously)space: pew pewesc: quit (easier than alt+f4)
- sprites are literally just byte arrays in the code
- framerate independent? we don't do that here