DEV Community

Cover image for I made a Game with vanilla HTML CSS and JavaScript

I made a Game with vanilla HTML CSS and JavaScript

Ayushman on May 05, 2020

Recently I have not been writing posts. The reason is I had been developing a simple game using vanilla HTML, CSS and JavaScript (no framework used...
Collapse
 
salyadav profile image
Saloni Yadav

Hey, can you throw some light on how did you make the global leaderboard? I have been developing a game and thought I need mongoDB and node for keeping a track of username and their scores. But I dont see any such thing your codebase. Can you give a brief of how you added this? Thanks :)

Collapse
 
abthakur profile image
Ayushman

For the global leaderboard I have actually used nodejs + mongodb(and called the api from my frontend when necessary), but due to security reasons I don't have that code public in my GitHub. However, for the local highscore, I've used localstorage.

Collapse
 
salyadav profile image
Saloni Yadav

Security reasons, that makes sense :) I wanted to know if I was headed in the right direction. Thanks :)

Collapse
 
seanmclem profile image
Seanmclem

Did you need to do collision detection?

Collapse
 
abthakur profile image
Ayushman

Actually no... I thought that the collision detection and physics based things are best left for game engines.

Collapse
 
seanmclem profile image
Seanmclem

Of course, I just wasn't sure if you had to implement your own

Collapse
 
zsgomoridev profile image
Zsolt Gomori

Am I the only one who's been playing with the game for more than 30 minutes? Awesome, good job!

Collapse
 
abthakur profile image
Ayushman

Sure. I have previously not worked in 3D in web, but I would be interested to work with a library.

Collapse
 
giorgosk profile image
Giorgos Kontopoulos 👀

This is a great game man. I have got 47 after 10 minutes of playing. Very addictive... Keep it up!

Collapse
 
weiqingteh profile image
Weiqing Teh // CG BOSS • Edited

Hi This is nice. Been wanting to make games with a Web Dev Tools. Thanks for sharing and inspiring.

Collapse
 
zamanphp profile image
zamanphp

my high scores was 8!

Collapse
 
iykex profile image
Nana Quame Vybes

My high score was 32, yeeaaah cool game.
Thumbs up 👍

Collapse
 
olalani profile image
Olalani Oluwaseun

Nice game concept 👍 but my high scores was 6-10 range 🙈.... Don't laugh pls. Love it

Collapse
 
abthakur profile image
Ayushman
Collapse
 
abthakur profile image
Ayushman

I have a 2 months old post on PWA which is archived for being not upto my satisfaction mark. I'm currently working on that and will publish that post as soon as possible.