Skip to content

Commit

Permalink
Fixed bugs that were in my game. The game is already in the gallery (#…
Browse files Browse the repository at this point in the history
…1983)

* Added my space invaders game

I have tried to model the original, and plan on coming back to this later to add new levels and a few other ideas I have but don't know how to implement yet.

* Fixed naming issues

* Update Space_Invaders.js

* Add files via upload

* Fixing metadata

* Fixed major bug in Space_Invaders.js

There was a major bug stopping you from restarting the game, which has been fixed

---------

Co-authored-by: graham <[email protected]>
Co-authored-by: Marios Mitsios <[email protected]>
  • Loading branch information
3 people authored Jul 18, 2024
1 parent ed5c0a0 commit 2e66a74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion games/Space_Invaders.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
@title: OG Space Invaders
@author: Atharva Malik
@tags: []
@tags: ['space', 'invaders', 'space invaders', 'invader']
@addedOn: 2024-07-11
Controls:
Expand Down Expand Up @@ -218,6 +218,7 @@ function isGameOver(){
setLevel(0, "You lost!", 'Press J to restart');
gameOver = false;
gameHasStarted = false;
lost = false;
}
if (numOfEnemies<=0){
numOfEnemies = 35;
Expand Down

0 comments on commit 2e66a74

Please sign in to comment.