Share your repls and programming experiences

← Back to all posts
Its Zombie Shootin' time!!!
[deleted]

OMG TRENDING YAY!!! THANKS FOR ALL YOUR SUPPORT REPL!!!

Apocalypse

You're the only one left in the dystopian futuristic world, where people are genetically modified! All the others had malfunctions in their super serums and became bloodthirsty zombies! Its up to you to kill them all and get out of there alive! Get ready to kill some zombies!

Controls

The Player always turns towards the mouse pointer and moves using WASD or Arrow Keys.

Space bar to mouse button to shoot.

After every wave of zombies, you get XP and Skill points for the number of zombies killed. Skill points can let you upgrade your genetic modifications to get more health, speed, fire-rate for your gun or Invulnerability.

Your upgrade meny only appears when a wave ends, but you can access it by clicking 'Z' also.

Bigger Zombies are usually slower, but have more health, while smaller zombies are easy to kill, but very fast.

Update Log

24/12/2020 -

I fixed this text bug today! THANKS FOR TRENDING!!!

25/12/2020 -

Merry X-mas everyone! WASD and arrow keys movement added today! Now you can shoot with your mouse button and spacebar too! Tiny bugs have also been fixed. The zombie's hands appear properly, and the player can't go out of the screen.

26/12/2020 -

Thanks for 50 upvotes!!!

So...

Please upvote if you like it, and please comment what you think of the game and if you have found any bugs that should be fixed. That's all, Hasta la Vista!

Comments
hotnewtop
KobeFF (1269)

hehe hacked!!

Defending 10000 tier 5 zombies with "ray of doom"!?

Hacked version here: https://apocalypse.kobeff.repl.co/

HairyPotterDude (5)

@KobeFF lmao how did you do that???

KobeFF (1269)

@DrIcy I just made the bullets huge, the gun fire hypersonic, and made it so that the bullets don't disappear when hey hit an enemy.

It fires so fast that you don't even see the individual bullets - it just looks like a huge beam.

And as you can see, the zombies also spawn in huge masses (they spawn 120 times faster, to be exact).

[deleted]

@KobeFF - lol cheater :P

Baconman321 (1097)

@KobeFF LOL u cant die tho cuz bullets cover u...
Edit: oh nvm... just stop shooting...

Baconman321 (1097)

@KobeFF Also

for(let i = 0;i<10000;i++){
spawnEnemy();
}

Also:

Owww
It actually takes up more like 150...

KobeFF (1269)

@Baconman321 I made myself near-invincible lmao cuz i have 100 million health

[deleted]

Edit: oh nvm... just stop shooting...

lol big brain moment @Baconman321

[deleted]

@Baconman321 - What's this?

Owww it actually takes up more like 150

Wdymn by that?

IntellectualGuy (825)

Can you post the link for that repl,I want to see that.

[deleted]

@Baconman321 - oh, ok lol

[deleted]

@IntellectualGuy - This is the one PyCoder01 made with 10,000 zombies - https://apocalypse.pycoder01.repl.co/

It isn't exactly the same tho, as it has cooldown and stuff in the wave.

Baconman321 (1097)

@KobeFF LOL I just made a tutorial teaching how to prevent being exploited with devtools (of course, it won't help with dis).

MemeManHimself (101)

@KobeFF After ten minutes..... I finally beat level one... and then the game froze up when I finished doing the upgrades that I want and pressed next. ;-;

[deleted]

@DanielGreynold1 zombie go brrrrrrr

[deleted]

@FlaminHotValdez, @Coder100, @Bookie0, @pepelaugh, @realTronsi - I made a Zombie shooter game! How is it?!? Are there any bugs?!?

(Sorry for the pings...I just mentioned a few people I know lol)

Bookie0 (6299)

you shoudlt really ping like that.. @Persassy2109

but the game is pretty coo, what about using WASD or arrow keys to move around, it would be easier! And also limited ammo because I'm just spam holding space bar. You could also add items (ammo, bandages, boost speeds) that you can collect improve gameplay! :D

FlaminHotValdez (694)

@Persassy2109 Don ping... also I suck at html soooo... Just a side note don't swear in the name.

JBloves27 (1890)

Don't massive ping pls, its rude and annoying, thx! @Persassy2109

[deleted]

Sorry about the pinging! What do they do tho? When I get pinged I only get a notification, nothing else. Anyways, sorry :)

[deleted]

@FlaminHotValdez - Ok, I removed the swear :)

Whippingdot (662)

Hey, you don't know me? Also, try not to ping, it kinda irritates some people. I don't mind. @Persassy2109

[deleted]

@Bookie0 - Thanks! I will try to add the features :)

[deleted]

@Whippingdot - Whoops, sorry lol. k, I'll not ping :)

Baconman321 (1097)

@FlaminHotValdez It's "sassy" not... you get the idea.
Oh, nvm the title yeah....

DarkswordsmanJG (43)

In wave 7 it still says that there are infinity zombies

FlaminHotValdez (694)

THE CREATOR HAS BEEN BANNED! HE WILL NOT BE ABLE TO REPLY TO ANY COMMENTS!

MegaCoder972 (0)

I tried to make a mega laser but what I got was better:

(You see that white stuff all over the screen? Guess what that is)

MegaCoder972 (0)

@PyCoder01 how did he get banned? By the way I was just sharing it for other viewers

FlaminHotValdez (694)

@MegaCoder972 It was in one of his dev profile projects.

MegaCoder972 (0)

I used to kill zombies for survival. Now I hunt them for sport.

GeumjuKim (19)

@MegaCoder972 is that even possible?
lol

Baconman321 (1097)

If you play long enough without reload it gets really laggy (probably due to a memory leak). I recommend getting rid of ALL player info when starting over so that the garbage collector can collect the not-needed-anymore info.

iisRen (2)

ahh yes finally

Baconman321 (1097)

Problem... after wave 7 the zombies left is infinity. Also I can "hack" it by spawning enemies on round 3 or 4 to get extra points...

[deleted]

@Baconman321 - Yes I intended the zombies left to be infinity after some waves. I will create more waves, but the end wave will be infinity till I make a boss zombie or somethin'. I haven't made the game 'unhackable' yet, but could you specify how you hacked it?

Baconman321 (1097)

@Persassy2109 Not "hacked", but rather used the fact that you didn't put everything wrapped in a function so I used the spawnEnemy() function to generate more zombies than normal for a round giving me more money...

[deleted]

@Baconman321 - oh, do I have to use env files then?

Baconman321 (1097)

@Persassy2109 Uhm no.
Basically you have to wrap everything in an anonymous function...

//Put this at the top
(function(){
   //All your code is belong to me... (basically put all the code you don't want accessed here)
})();
[deleted]

@Baconman321 - but then you could change stuff inside the function right? So its still hackable right?

Baconman321 (1097)

@Persassy2109 Sigh, Im going to make a tutorial. I'll mention u in it and then you'll see what I mean...

[deleted]

@Baconman321 - ok thanks :)

sorry for being a dumbass lol

Baconman321 (1097)

@Persassy2109 Nah, it's just that you need to learn the glory of JavaScript.

[deleted]

@Baconman321 - ok lol

Baconman321 (1097)

@Persassy2109 OOPS I meant IIFE (immediately invoked function expression)

Baconman321 (1097)

@Persassy2109 There, I mentioned u in the tutorial

[deleted]

@Baconman321 - Yeah I saw it its great!

FlaminHotValdez (694)

@Persassy2109 LANGUAGE. Swearing is against the rules and can get you banned.

Baconman321 (1097)

@FlaminHotValdez Minor profanity is allowed, but don't go too far...

Baconman321 (1097)

@Persassy2109 Ok, apparently you can step in-out of functions with devtools, but it protects against noobs not knowing how to do that, and also it's good practice to warp things in an IIFE (to prevent polluting the global scope)

[deleted]

@gwynethwingell - Thank you!!!

[deleted]

@gwynethwingell - No I'm not welcome, I'm Persassy2109 :P

Dunce (70)

Very cool, but I can't move.

[deleted]

@Dunce - Yes, sorry about that, I was just in the middle of editing so some things were messed up. It will be fine now :)

[deleted]

@Dunce np :)

ReyesP (24)

It would be better if the bullets came out of the gun, not his head.

[deleted]

@ReyesP - Yup, will work on that...

DynamicSquid (4932)

When you have 40 points on rof

You get a lazer

[deleted]

@DynamicSquid - lmao once you get to the infinity wave the giant zombies give enough points to make a proper laser, or run around at the speed of light lol

Baconman321 (1097)

@Persassy2109 I literally hacked the player speed so I was "teleporting" to the corners so you could see 4 little streams of bullets coming to the position of the mouse XD.

IntellectualGuy (825)

When will you update the game?

[deleted]

@IntellectualGuy - When I get time. Online school's a pain in the butt and is not giving me enough time for coding, and I also have to do the coding homework as I am taking coding classes. I think I'll start on 27th, because its the day all my exams and classes finish, so I can continue my coding. Until then I will do small updates which you can see in the new update log I added in the post :)

MemeManHimself (101)

After a little bit it's like I'm shooting a hose of white pellets XD

[deleted]

@MemeManHimself - lol yeah I have to add ammo and reloading features when I get time :P

NISHoriginal (8)

It is a good game, but you can make some changes. First, PLEASE change the controls! The shooting must be done by the left mouse button and the movement by the 'w' key. Second, it looks like he is spitting the bullets from his mouth. So please do make the bullets come out of the gun.
I would be really happy if you would make these changes!! :D

[deleted]

@NISHoriginal - Thank you for the suggestions, I will try to implement :)

cwkxavier46538 (0)

Just level firerate up to 40 :D

[deleted]

@cwkxavier46538 - lol 100 is better lol

[deleted]

@ZDev1 - Thank you!

JBloves27 (1890)

Hello POG buddy, we meet again @ZDev1

[deleted]

@ZDev1 - Ah, a meeting of poggers I see lol

JBloves27 (1890)

Good, thx for asking :D @ZDev1

angrydoge (481)

I almost forgot to updoot lol

[deleted]

@dabombdgdzjr - Thanks for updooting!

TalinSharma (77)

🤯

The only power up thing I took was the fire rate...I was the wave

COOL!

[deleted]

@TalinSharma - lol i once tried firerate 100 lol

[deleted]

@Whippingdot - Thanks :)

[deleted]

@JBYT27 - I will fix that bug, thanks :)

(If you mean the Infinity Zombie thing, well, I made a wave that spawns zombies endlessly lol)

[deleted]

@JBYT27 - I have fixed the bug :)

JBloves27 (1890)

Oh, lol, i think that may have been it XD @Persassy2109

angrydoge (481)

Ive been wating for this my whole life

[deleted]

@dabombdgdzjr - lol :P

angrydoge (481)

Yess @Persassy2109
Me to the zombies be like:

[deleted]

@dabombdgdzjr - lol can zombies be killed tho? They're technically the living dead lol

angrydoge (481)

Um stop breaking my mind aim gor the head @Persassy2109

[deleted]

@dabombdgdzjr - Or destroy them with a Grenade launcher with infinite grenades and 100 fire rate

grins maliciously

angrydoge (481)

Wait are you hinting a update @Persassy2109

Please :)))))
[deleted]

@dabombdgdzjr - lol I dunno, I will try from 27th (as I have no exams or classes after that)

JBloves27 (1890)

Pretty cool!

You can just hold the space button <-- big brain moment

[deleted]

@JBYT27 - Thanks!

Hehe yeah maybe I should make a reload function for that lol

[deleted]

@JBYT27 - lol yes I will try :)

IntellectualGuy (825)

Also why is there a file that has 33029 lines of code?

[deleted]

@IntellectualGuy - Oh, me being stupid added the entire p5.js file instead of just using the p5 add on link in the HTML lol

IntellectualGuy (825)

It's honestly very good, you could add more guns, in-game items, WASD movement, and more waves. Also, this might be hard but maybe you could make a server and people can work together. @Persassy2109

[deleted]

@IntellectualGuy - Thank you! For the appreciation and suggestions! I will try to implement the features. I will have to learn more for the server part though, I've only ever made a racing game in real-time. Anyway, thanks :)