Share your repls and programming experiences

← Back to all posts
Zombie Runner
BobTheTomatoPie (3362)

My First big p5.js project

I have used p5.js before but never that much, this is my first big project using it!

How to play

Use WASD to move around.

Click on the screen to shoot in the direction of your mouse

Avoid dying.

My High Score is 2600

Try to beat it!

Thanks to the help of @Coder100 for helping me with the shooting

Hope you enjoy
By: BobTheTomatoPie

SilvermoonCat (458)

FUNN :D but so hard cri I only got to 71 sniff

SilvermoonCat (458)

Nice, I will try it once I’m on computer, it doesn’t work on iPad :(

BobTheTomatoPie (3362)

haha yea, i hope you like it on a computer @SilvermoonCat


but i like that i wish i could be a coder like you

BobTheTomatoPie (3362)

ahh thanks! you'll get there someday, just takes a lot of practice @HEMLANU


i made only 1 score

DynamicSquid (5023)

Well done! This also reminds me of my Wild West game :)

BobTheTomatoPie (3362)

thanks!! haha yea i was thinking of that when i made it surprisingly @DynamicSquid


The enemies are the highwaymen, not everyone, some of them are cowboys too.

RoroPlayzGamez (0)

just use a auto clicker

GatewayDuckYT (60)

my highscore is 90212

CyberHacker101 (136)

can u make diffrent guns? like a machine gun bee gun

BobTheTomatoPie (3362)

haha thats if you play my gta game, this one is older @CyberHacker101

hunterc0le (1)

this was really hard, but still, good work!

tussiez (1676)

Top Score

As you can see in the image below, this is a no-glitch speedrun, and is 100% legit!

EmreArifoglu (0)

I had a really low score but i suddenly have high score of 8018

tussiez (1676)

Zombie Runner Aimbot v2

I wrote a terrible pro aimbot for this game..
@BobTheTomatoPie, please consider adding anti-hack :)
Edit: fixed comment
use this bookmarklet:

javascript:let aimBot=function(){for(let t=0;t<enemies.length;t++){let l=enemies[t];if(l.x>player.x-500&&l.x<player.x+500&&l.y>player.y-500&&l.y<player.y+500){mouseX=l.x+5,mouseY=l.y+5;let t=0,;function e(){t<10&&(mouseClicked(),<a/2&&(projectiles[projectiles.length-1].speed=1),t++,setTimeout(e))}e()}}},aim=setInterval(aimBot,100);function move(){requestAnimationFrame(move);player.x -= 3;player.y -= 3;};move()
LingWu1 (94)

Cool! Great Job, but can you reduce the enemies? It gets very stressful

BobTheTomatoPie (3362)

thanks but ive ended production on this lol @LingWu1

LingWu1 (94)

okey dokey and is ur name rly Bob @BobTheTomatoPie

mrslep (30)

great game wow i wish i could be as good as you

mrslep (30)

@srsly or make something like that with pygame

mrslep (30)

@srsly it would be cool if you could make a shop and buy different weapons (not trying to push you though).

BobTheTomatoPie (3362)

lol i stopped production on this game, making a new one that is coming soon, the new game will be way cooler, its gta but in p5.js @srsly

BobTheTomatoPie (3362)

thanks!! you'll get there @srsly

mrslep (30)

@BobTheTomatoPie oh cool i wonder how it will be like...

BobTheTomatoPie (3362)

if you play my killer game, its like that but it is 1000x better, you can shoot, switch guns, punch people, and all sorts of things @srsly

mrslep (30)

@BobTheTomatoPie tell me when the gat games done!

Trex10 (7)

Great game!
Pretty hard though, my best is only 118
Edit: Oh just got 145