Skip to content
Sign upLog in
← Back to Community

[UPDATE!][Game] Survive2D: will you survive? (prob not)

Profile icon
potatojs

HELLO HELLO

hello go HELLO HELLOOOOOOOOOOOOOOOOOOOOOOOO

UPDATE1:

don't worry your progress won't be removed (hopfully):

  • fixed the tabs thing now time won't pass if you are not playing
  • added a leaderboard that you can enter by sending a screenshot of the number of days you survived
  • there is arrows pointing towards enemies that are outside the window
  • you heal when you kill enemies
  • random bug fixes
    yes you can tell i ACTUAllY lisened to the feedback, (about the "i'm too busy to update the game" thing, a blender render was taking too long so added the most requested stuff while it's rendering to not waste time)

UPDATE2:

added a pause menu, also keybinds for the tools, fixed some bugs :D
oh and also added a footer for all the smart people that exposed me, :P
also thanks for all the updoots i guess, i mean 170+ i think this is my most updooted post lmao, (because it's no where near the most post i've put effort into)

UPADTE3:

you know what day it is...
UPDATE DAYYY!!!!

  • enemies now are slower at the day, and to make things fair for them they are a bit faster at night

  • added a grenade launcher

  • running on floor makes you faster so now floors are actuall usefull

  • ou can open and close the pause menu using the p in your keyboard

  • i maybe added other stuff but i forgot so yeah..

  • didn't add a mini map, i changed my mind for various reasons

netlify app will be updated in a couple of minutes

ABOUT the leaderboard

so your old screenshots won't count bacause the game was update too much

gameplay

you move with the arrow keys or WASD, you shoot/build/attack using your mouse.
you unlock a tool by clicking on it, it will show you the tool stats as well as the tool price, after that, you can upgrade it by clicking on it while it's selected. if nothing happens then the tool is maxed.
you can also sell building by clicking them while selecting a building tool,
your goal is to survive for as many days as you can, so be aware the zombies and the demons, you can camp, you can fight, you can run do whatever it takes to survive, your health regenerates when it's daytime and you killed all the enemies.

about

this is a quick thing i made for two reasons:

    1. i wanted to fix the abomination that was this game, i mean, the buildings don't stick to a grid???!! it was so stupid, i didn't play his game but i liked the idea. 2D survival game with building and shooting elements..
    1. i wanted to practice typescript so i can move on to postegres and react with typescript and stuff

source code

here

Voters
Profile icon
DrewAtkinson
Profile icon
Dimo10
Profile icon
DragonProgrammer
Profile icon
GodzillavsKong
Profile icon
RayyanFaizal
Profile icon
Kapaw123
Profile icon
BENJAMINKONISKY
Profile icon
LeroyS
Profile icon
anonreaper
Profile icon
jonross321
Comments
hotnewtop
Profile icon
CodingElf66

This game somehow reminded me of Minecraft. But with creatures way more creative! Maybe you should add more things, so that we can do more. You can add gold ores, maybe? And add armor, like Minecraft. Anyways...

REMEMBER TO TAKE how to survive a zombie apocalypse, it'll come in HANDY in this game

This is the BEST GAME EVER

For the next part, I think that you wouldn't want to watch it. Sorrowful suffering in silence...

And very dramatic, too...

DUN DUN DUN

Me suffering the worst possible death ever. Hey, at least it was my first try!

Screenshot 2021-09-02 6.45.19 PM

Scene 1: A whole evil mob chasing me

Screenshot 2021-09-02 6.39.56 PM

Scene 2: A super evil and annoying mob CHASING ME (uh-oh)

Screenshot 2021-09-02 6.40.05 PM

Scene 3: A SUPER SUPER SUPER SUPER SUPER EVIL CROWDED MOB CHASING ME TO DEATH (DUN DUN DUN)

Screenshot 2021-09-02 6.40.12 PM

30 minutes later...

Day 5... more zombies and devils and big zombies... yawn

Screenshot 2021-09-02 7.38.31 PM

Day 6: More zombies, devils, and big ZOMBIES. Eek

Screenshot 2021-09-02 7.38.55 PM

Day 7: Yay, my first wall delayed at least 100 evil creatures in a mob... whew!

Screenshot 2021-09-02 7.40.14 PM

Day 8: Uh-oh, new creatures coming in. EXTRA BIG DEVILS CARRYING EXTRA BIG WEAPONS... UH-OH

Screenshot 2021-09-02 7.40.44 PM

My last day on Earth... anyways it was 9 days of torture LOL

Screenshot 2021-09-02 7.43.46 PM

3 days later...

450 days (I don't have the pfp sadly, because the tab blanked out, but I do have a pfp for another thing, I unlocked all items and upgraded them to the highest level possible).

Screenshot 2021-09-06 4.28.32 PM

Congrats to me!

AND A NEW HIGHSCORE (with pfp)!

Screenshot 2021-09-06 4.36.34 PM

Profile icon
potatojs

@CodingElf66
hhh thanks :D
but unfortunately i'm not gonna update it :(
if it is i hard 2hours+ feature prob not gonna add it, but if it is something simple like a new enemie... maybe?

Profile icon
CodingElf66

@potatojs
And I think you put too much zombies btw.

Profile icon
UltimatePython

@CodingElf66
Oof. Good first try. I didn't know that you had to press space and I literally died when the first zombie wave came lol. At least my record was 10 days.

Profile icon
CodingElf66

@UltimatePython
Wow. Wanna have a competition?

Profile icon
Baconman321

@CodingElf66
I got to day 50 ez.

For some reason, there a lotta stone in the left section of the map, especially near the left border.

Upgrade sword to iron, then it all ez from there.

I was able to take down the super big axe demon with a sword fairly easily without getting hit.

Oh and: don't waste your materials on walls, they don't help much

Profile icon
potatojs

@Baconman321
ehh WAAAAAAT?
i don't get passed day 20 without cheating :(
i forget if i fixed that bug... but basically when i was making the genStone function, i made a limit to the amount of stone that can be spawned, when the loop reaches that limit is just returns out of the function. the problem is the loop generates rocks starting from the top-left corner (the 0, 0) so there is a change you won't find any stone in the bottom right corner (width, height) :D

Profile icon
CodingElf66

@potatojs
I got to 450 days, then I pretty much got bored. Once you get the 100 damage gun, you're really unstoppable. But the problem with that one is that it is like 1 shot per 5 secs. I'm actually not kidding.

Profile icon
CodingElf66

@potatojs
A new enemy! Ok, you can put Minecraft characters, I guess.

Profile icon
Baconman321

@potatojs
Technically I left the tab running, so I was at day 18 or so.

But it's not too hard to get to level 20+.

You should make stone regenerate, so far I haven't seen that happen.

Profile icon
CodingElf66

@potatojs
Maybe add a spider?

Profile icon
potatojs

@CodingElf66
450DAYS!?!
Thats like 900min/15hours of playing, bruh

Profile icon
potatojs

@Baconman321
it does, just move around the map don t stay in one area

Profile icon
CodingElf66

@potatojs
Dude I forgot to close the tab when I was like at 75 days then when I woke up to play again it went there. The day night cycle. lol

Profile icon
Nathanielx3rd

@CodingElf66
Ok is there a reward for beating the highest score

Profile icon
UltimatePython

@Nathanielx3rd
i'm not sure, but I don't think so. You thought upvotes? Well, at least CodingElf got his 8 upvotes for this comments lol

Profile icon
komainu

if you close and reopen the tab and click continue the stone, trees, etc with [email protected]

Profile icon
potatojs

@komainu
no they won't

Profile icon
komainu

@potatojs
it worked for me

Profile icon
FlaminHotValdez

@potatojs
is not that hard shotgun is OP

Profile icon
FlaminHotValdez

@Baconman321
And guns in case you don't want to get close to the big axe guy.

Profile icon
Baconman321

@FlaminHotValdez
I used to be able to ez take down the big ax guy with just a sword, but now that they are faster it is a lot harder. I have still done it though, but with a much higher failure rate.

Profile icon
FlaminHotValdez

@Baconman321
I just don't risk it lol he 2 hits me

Profile icon
lverde

could you show me how to change the amount of recieved items when you use a tool? not for leaderboard, just for fun.

Profile icon
lverde

@potatojs
my first run, i didn't know i could upgrade tools

Profile icon
potatojs

@lverde
do you want to buff the amount or nerf it? and why?

Profile icon
alexvip434

PLEASE MAKE THE ZOMBIED BURN IN DAY LIGHT THEY R VERY ANNOYINGGG

@potatojs

Profile icon
PixelRunner

@CodingElf66
my school didnt have how to survive a zombie apocalypse :( it seems like a useful class and I definitely would want to learn how to live.

Profile icon
ruiwenge2

wow this is really cool! great job!!

Profile icon
potatojs

@ruiwenge2
thank you so much :P

Profile icon
ruiwenge2
Profile icon
potatojs

my favourite thing in this project was the quadtree, it turned the game from a power point presentation to a faster, but equally ugly power point presentation.

Profile icon
mollthecoder

@potatojs
It's not THAT ugly.

Profile icon
CheeseTheRat

Here is a tip for the newer or worse players: don't under any circumstances get a sword. Get a wooden axe, wooden pickaxe, stone pickaxe, and then immediately go for the shotgun, sniper, or pistol. Killing the enemies will take up too much time without a gun, so i recommend getting the shotgun. Keep getting materials throughout the night to. Also, dont lock yourself in a box. You cant break your own blocks so you will most likely die. Your welcome.

Profile icon
CheeseTheRat

@LiamWhitley
it got me to day 83

Profile icon
potatojs

@CheeseTheRat
in fact, you can break your blocks :) just click on then with the mouse, you don t break tjem

Profile icon
CheeseTheRat
Profile icon
spicyDoggo

zombs.io world gen lmao

Profile icon
[deleted]
Profile icon
DamienCochran1

Its been really fun, especially since the most recent update, and ill be checking in for new updates in the future, and I do have only one tip for the game as of right now, is that you should maybe add more ores, or maybe even more enemies to make it even harder! As of right now though, there's little to no flaws of the game, and I really like the kind of style that it is made in.

Profile icon
potatojs

@DamienCochran1
thanks :D i'll consider your suuggestions for the future updates, glad you liked the game

Profile icon
playerrdev

https://www.twitch.tv/playerr_dev streaming survive2d :D

Profile icon
playerrdev

image

Profile icon
playerrdev

image

Profile icon
playerrdev

@playerrdev
Im on school laptop atm this is the only assets I have atm.

Profile icon
DestinNicol

well done well made

Profile icon
potatojs

@DestinNicol
thanks :D

Profile icon
AmiteshJinka

@potatojs

Hello! Love your game! I just want to know how you learned to code this... did you use like a website to help you learn or by school...?
(I really want to learn how to make stuff like this)

Profile icon
potatojs

@AmiteshJinka
i'm self though, i started learning from the coding train channel some javascript and programming in general, then ouce i mastered OOP i started leanring some css, html, dom manipulation etc from channels like the net ninja, dev ed, web dev simplified...
then i was interested in physics, so started leanrning some high school physics from khan academy, also some linear algebra and calculus 1 (didn't finish it tho because i did'nt have time) the i've spent about 6 mounth learning about computer science principles from the computer science crash course, and some google searches, then i got interested in networking and full stack-dev so i learned nodejs, express, mongoDB, react, firebase, graphQL, typescript, in this order, THEN i got interested in devops, i bought a raspbery pi, learned, ssh, nginx, docker, port forwarding and netwroking topics from channels like travery media and hussein nasser, that was a couple of weeks ago, then i made this game in 5days just to practice my typescript skills, posted it here, and now i'm learning blender for fun. i took some courses in btween that i can't really remenber where i learned them like design fundemantals, color theory, python, data science and machine learning, but i wasn't much interested in any of these so stoped learning them.
helpful websites and channels:

free code camp (one of the best resources, has everything you need about web dev, i took most of there courses)
W3schools
css tricks
fireship.io
etc.. (i don't remember anymore)
i'm consider myself a hobiest, i'm not planning to work in the software dev industry, so all the stuff i said sould be taken with a grain of salt
the best advice i can give is, don't worry about how much time it took you to learn something, don't compare yourself to others and never think about quiting

Profile icon
AmiteshJinka

@potatojs

Thanks about that (You told me your complete life story, didn't ya?). I don't think I'll be going that much deep into coding; I may stick to what I know now and continue to learn off other people's code.

Profile icon
potatojs

@AmiteshJinka
lmao yes, because everything i learned contrubuted somehow to where i am now.
why? learning new tech is the best! because the more you learn the more insane stuff you can make, you aren't bound anymore by the limitations of tech you know now, for example, if you don't know nodejs (or a backend tech) you can't make an online game, if you don't know design principles you can't make a beautiful app, if you didn't box2D or matterjs you can't make an accurate physiscs simulation, the more you learn the more "boundless" the stuff you can make became.

Profile icon
AmiteshJinka

@potatojs
Wow, wise words. Thanks!

Profile icon
Baconman321

@potatojs

if you didn't box2D or matterjs you can't make an accurate physiscs simulation

And if you didn't know physics you couldn't be able to do without them and make something even better lol...

Profile icon
potatojs

@Baconman321
lmao you are kidding right? creating a well-tested documented feature rich physics engine that's "even better" than box2d sounds like a fever dream to me...
EDIT: ok i didn't phrase it well... what i meant is that of course you can spend a couple years of your life creating the next best physics engine but why? if your goal is simple collision detection, or a simple particule system, or a simple game with basic physics then go for it, create your systems from scratch won't take more than a day anyways, but for accurate physics simulation there is nothing i tried that matched box2D or even was close, software that uses 2d physics like unity didn't choose box2d because "they don't know physics", they chose it because they value their time

Profile icon
Baconman321

@potatojs
Well, if everyone had that mindset there would not be box2D (or any other physics engine) at all!

I mean, now that there are good physics engines you don't need to do physics yourself, yeah.

But sometimes, it's fun to simulate physics using your own knowledge versus using a library or plug-in.

And, no. I'm not kidding.

Profile icon
potatojs

@Baconman321
i don't think the day the creator of box2d decided to write a physics engine there was a lot of good physics engines choices that we have today, yes ik writing your own stuff from scratch is fun when your own stuff is something simple enough, like a particule system for your game, but creating your own box2d? idk it's sounds tidious to me, after all everyone has their own preferences