DEV Community

Cover image for JS Game - Day 14
ashuydv
ashuydv

Posted on • Updated on

JS Game - Day 14

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/

Top comments (0)