Skip to content

slyeet03/space-invaders-in-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Space Invaders

A Space Invaders clone written in C using SDL3.

Demo

output

Funny Bugs

output

Dependencies

  • SDL3
  • SDL3_image
  • SDL3_ttf
  • CMake 3.16+

Building

mkdir build
cd build
cmake ..
make

Running

From the build directory:

./space_invaders

Assets are expected to be located at ../assets/ relative to the executable.

Controls

Key Action
Arrow Left Move left
Arrow Right Move right
Space Fire
Enter Start game
R Restart after game over
Escape Quit

Gameplay

Shoot down all the enemies before they reach you. Enemies speed up as their numbers decrease. The game ends if any enemy reaches the player's row.

Scoring

Enemy Points
Red (top row, 3 HP) 30
Yellow (middle row, 2 HP) 20
Green (bottom row, 1 HP) 10

About

The game space invader built in C cuz why tf not

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors