DEV Community

loading...
Cover image for JS Game - Day 14

JS Game - Day 14

ashuydv profile image ashuydv ・1 min read

On day 14, I created a game using JavaScript, which the user can play, it's almost the clone of the dragon game, that we play when there is not internet connection, it's an awesome game, please ignore the Frontend part, it's not so good, I used animation attribute in CSS, and the class list in JavaScript to access the element with animate class present in HTML,
For playing the game, click on the screen or click any key on your keyboard, I added this feature with the help of in-built function by adding onClick and onKeyPress in the HTML tags.

Do check it,
For demo: https://ashuydv.github.io/dragonGame/

Discussion (0)

pic
Editor guide