Share your repls and programming experiences

← Back to all posts
Zombie Runner
BobTheTomatoPie (3368)

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

Comments
hotnewtop
HEMLANU (182)

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

BobTheTomatoPie (3368)

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

HEMLANU (182)

i made only 1 score

DynamicSquid (4726)

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

BobTheTomatoPie (3368)

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

[deleted]

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

SilvermoonCat (432)

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

SilvermoonCat (432)

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

BobTheTomatoPie (3368)

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

RoroPlayzGamez (0)

just use a auto clicker

GatewayDuckYT (55)

my highscore is 90212

CyberHacker101 (113)

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

BobTheTomatoPie (3368)

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

hunterc0le (1)

this was really hard, but still, good work!

tussiez (1558)

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 (1558)

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,a=l.health;function e(){t<10&&(mouseClicked(),l.health<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 (88)

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

BobTheTomatoPie (3368)

thanks but ive ended production on this lol @LingWu1

LingWu1 (88)

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 (3368)

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 (3368)

thanks!! you'll get there @srsly

mrslep (30)

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

BobTheTomatoPie (3368)

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