the best game in the planet!
potatojs (431)

how to play?

just dodge red shots and collect bonuses! the value of each bonus is based on it's size the bigger it is the more it gives you!

credits

this game is inspired from this one :https://repl.it/talk/share/Worlds-HARDEST-game/44269

leader board

if you get i very high score just take a screen shot and send it in the comments below! so i can add you! i'm going to add you in less than 24hours. if i said that i will add and you didn't see your name in the leader board, just refresh the page.

You are viewing a single comment. View All
potatojs (431)

you mean the particules? i used a function called create Graphics that Basically create a canvas in top of the origenal one, then i start drawing blue little squares in the x and y of the player plus a random number to make them spawn a little off the x and y of the player, then i start drawing transparent backgrounds to make them desapear by time(because transparent bg one in top of the other create an opac bg :) science!)then to prevent lag a make that the small squares don't spawn when they are near the player :) (of curse all of that in the second canvas)
(the system in the program is more complicated i used sin and cos but the basic idea is this :))
@JSDragonCoder12