Share your repls and programming experiences

← Back to all posts
COVID Crusher
h
nithilan4 (140)

COVID Crusher - Crush that COVID, in game and in real life!

About

@bramley and I created this game with NodeJS, HTML, CSS, and Vanilla JS. We used no frameworks (because why would you), and the sprites are all HTML elements, making it a DOM game. Fun fact: the wavy borders of the cells are PURE CSS! It also uses Repl Auth to get your username for the leaderboard.

Objective

We created this game not only as a way for those with school cancellations as a result of coronavirus to pass time, but also learn prevention facts at the same time. Hopefully, through education, we can eradicate this virus and continue living our lives as normal.

Instructions

Make sure you allow popups (for repl auth)
Be on a modern browser (preferrably Chrome or Firefox)
Play on a computer in landscape orientation

• Use the mouse to control your killer T cell (blue).

• To shoot, hold the spacebar and move in a direction. Your killer T cell will emit cytotoxins (particles toxic to all cells) in the other direction.

• Avoid healthy cells (orange) and destroy infected cells (green). Try not to let the infected cells cross your screen!.

• To answer a question, touch your T cell to the answer choice you think is correct.

• Press escape to pause

• If you get a question wrong, you lose a life. When you get to 0 lives, the game ends.

• Pressing the back button after pausing or after the game ends automatically saves your high score

The game starts off easy, then ramps up in difficulty.

The controls might be new to you, so here's a video of me playing the game.

Enjoy!

Commentshotnewtop
nN34398Ff (68)

Hmmm.... We Couldn't Reach Your Repl
In other words, it doesn't work

nithilan4 (140)

@nN34398Ff sorry some people on the discord tried to break it and succeeded, try now

TheDrone7 (773)

Could've been responsive but overall, very cool looking and fun.

TheDrone7 (773)

I'm not sure if it's just my phone but unless I open the desktop version, clicking/tapping anything does nothing
@nithilan4

nithilan4 (140)

@TheDrone7 well yeah pointerlock api doesn't exist on mobile, and designing a new interface for mobile would take far too long. also responsivity != mobile functionality

CodeSalvageON (332)

Yes.....yes....good....good....

ashrit_lv (4)

It won't connect

ashrit_lv (4)

Will not work. What is the link?