Skip to content

777alz/spaceInvaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

space.exe ๐Ÿ›ธ

space invaders demake written in c++ with opengl and glfw. based on the excellent tutorial by Nick Tasios.

what's in the box ๐Ÿ“ฆ

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

build instructions ๐Ÿ› 

prerequisites

  • g++ compiler with c++11 support
  • vs code with c++ extension (recommended but not mandatory)
  • windows (sorry linux users)
  • support for openGL 3.3+

vs code build (easy mode)

  1. open folder in vs code
  2. hit ctrl+shift+bto build
  3. run space.exe

manual build

g++ -g -std=c++11 -Iinclude -Llib src/*.cpp -lglfw3dll -lopengl32 -lglew32 -o space.exe

controls ๐ŸŽฎ

  • โ† โ†’ : move (left/right, obviously)
  • space : pew pew
  • esc : quit (easier than alt+f4)

notes ๐Ÿ“

  • sprites are literally just byte arrays in the code
  • framerate independent? we don't do that here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published