Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update app.js #1

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ document.addEventListener('DOMContentLoaded', function() {

scoreValue.innerText = score;

});
}); if (score == -20 ){
alert("you lost the game ");location.reload();
}
ashishsiot marked this conversation as resolved.
Show resolved Hide resolved

}, 500);

Expand All @@ -72,4 +74,4 @@ document.addEventListener('DOMContentLoaded', function() {

});

})
})
Binary file added homescreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 16 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
# 🧟‍♂️ Zombie Game


Simple "game" created with HTML, CSS and JS. Animation was created using following sprite:

![Zombie](http://www.wdrfree.com/public/demos/animatespritekeyframes/walkingdead.png)

Use your mouse and "shoot" the zombie - you have to hit one twice to delete it from the screen.

# Live Preview
# ▶ Live Preview
Click On Image To Play Live Game Or Click On Game

[![CarDEalerShip](https://raw.githubusercontent.com/ashishsiot/Zombie-Game-JS/master/homescreen.png)](https://ashishsiot.github.io/Zombie-Game-JS/)


[Click Here](https://ashishsiot.github.io/Zombie-Game-JS/)


# 🛠 Build Using

You can view the game by following this link: https://8bit-peter.github.io/Zombie-Game-JS/
* HTML
* JAVASCRIPT
* CSS