Skip to content
← Back to Community
[GAME] survival game (the best game ever existed)
Profile icon
potatojs

hi

hi

the story

every one is dead :)

wich is nice by the way :D

what happend

so the US made a corona virus cure!! but because of some weird error the cure that half the humanity took it already start turning them to zombies!!zombies killed the animals plants and everyone is dead

the end.

or... is it?

so humans are dead but a strange creature called dani (that have mind power stuff) decided to protect the only left potato with his life!! so he build a massive wall to protect it!!but the zombies actually... destroyed the wall and eat the potato.

so now.. it's your mission to revange for the potato and kill all the zombies!!
are you strong enghouf?

game play stuff

almost all the informations u need are in the wiki page and the how to play page

leader board and rules

because i don't wanna noobs to hack my game there is a bit of hacking resistance kinda thing in the game, so if you try to hack your high score is returned to 0 and you'll be a cheater fro the rest of your life.

leader board

to join the leader board just leave a comment containing a screen shot for your highscore from outside the game screen shots from inside are rejected(i need a screen shot for your high score not your current in game score ok?)

stuff

so i was thinking about making the leader board process automatic using some back-end but i changed my mind :)
plus i learned a tone of stuff during developing this

  • socket.io is pog
  • a have a discord account
  • i decided to learn phaser and start making some real game
  • did u know that you can take game pad inputs in your website using js?

oh i forget the most important stuff!!

enjoy and leave a comment and open on a new tab... this is everythig
#potatoisme

Voters
Profile icon
SreejayTummala
Profile icon
Kgbadz
Profile icon
RyanNewman3
Profile icon
forceofyoda
Profile icon
programmeruser
Profile icon
BCP
Profile icon
HongyiChen1
Profile icon
TonyYin1
Profile icon
Soccer135246
Profile icon
ZacharyEgelhoff
Comments
hotnewtop
Profile icon
DynamicSquid

You need to add ammo and reload to make it harder, but other than that nice game!

Profile icon
potatojs

thanks :)
it is actually really hard when u start unlocking new guns and fighting stronger [email protected]

Profile icon
DynamicSquid

@potatojs yeah, but it's really fun! I like it well done!

Profile icon
potatojs
Profile icon
Duvangamer3845

@DynamicSquid like you survival game? i think that detail its some fastidious

Profile icon
potatojs

i don't know what is fastidious...
is it a bad thing?
@Duvangamer3845

Profile icon
CatR3kd

fas·tid·i·ous
/faˈstidēəs/
adjective
very attentive to and concerned about accuracy and detail.
"he chooses his words with fastidious care"@potatojs

Profile icon
potatojs

lol
thanks :P
@CatR3kd

Profile icon
bwosby

@DynamicSquid pls my parents died yesterday, and i have corona , and my dog has cancer, and tomorrow is my birthday, can u pls make me a moderator for one day. PRETTY PLS

Profile icon
potatojs
Profile icon
potatojs

so the next time you wanna fight don't fight in the comment section of my project....ok?
@youaremine

Profile icon
Duvangamer3845

HELLO HELLO HELLO HELLO HELLO

i wanna make a championship on this game, the first phase are: SHOTGUNS, the best score with the shotgun pass to the next round, good luck

Profile icon
potatojs

lol i'm in!
@Duvangamer3845

Profile icon
Duvangamer3845
Profile icon
Duvangamer3845

@potatojs cool, you need to make the best points with the shotgun

Profile icon
potatojs
Profile icon
potatojs

sorry i don't think i'm gonna participate :)
when i open the game my pc start crying it runs in 9 fps lol
@Duvangamer3845

Profile icon
NoNameByProgram
Profile icon
Duvangamer3845

@NoNameByProgram only shoguns are valids

Profile icon
potatojs
Profile icon
Navinor

@Duvangamer3845 aight imma join

Profile icon
Navinor
Profile icon
Navinor

@Duvangamer3845 next round idea: highest score without moving

Profile icon
Duvangamer3845

@Warhawk947 sounds cool

Profile icon
Duvangamer3845
Profile icon
ElijahNarvaez

I tryed useing this as a strat
@Warhawk947

Profile icon
OldWizard209
Profile icon
potatojs
Profile icon
dabs364

@potatojs What if you don’t want to save the potato?

Profile icon
potatojs

GO OUT OH HERE! NOW!!

@dabs364

Profile icon
dabs364

@potatojs ok :(

Profile icon
potatojs
Profile icon
dabs364

@potatojs oh

RIGHT

Profile icon
potatojs
Profile icon
dabs364

@potatojs

RiGHT YOU ARE

Profile icon
OldWizard209

@potatojs You did an amazing job.
Very addictive game as well. I am more than impressed

Profile icon
potatojs

thanks a lot :) @abdullahrajput9

Profile icon
[deleted]

hey @potatojs how do you switch guns? Other than that this is really good:)

Profile icon
potatojs

thanks :)
you use number keys 1 for the pistol 2 for the minigun ect..
@clawstrike

Profile icon
[deleted]

oh ok, thanks @potatojs. Really good game

Profile icon
potatojs
Profile icon
AtriDey

"Dani"
This potato guy liked milk or smth?

Profile icon
potatojs

haha lol drink milk boooooy!!!!
@AtriDey

Profile icon
zplusfour

@AtriDey hey do u watch Dani
the programmer

Profile icon
potatojs

yes the game dev guy lol
@ZDev1

Profile icon
AtriDey

@ZDev1 I don't need to tell you, just make a crystal ball with Unity's particle system.

(yes)

Profile icon
zplusfour

@AtriDey lmao
good

Profile icon
potatojs
Profile icon
UltraStorm
Profile icon
JamirVega

when did yall learn to code and maybe where

Profile icon
potatojs

if i get your question i learned how to code in python 6mounth ago..
but i wasn't learning anything and i left because the oop in pythoin sucks! so i changed to js 2mounths ago and you can say that i'm going pretty well with it :)
i learned js from multiple resources but the main one was the coding train channel
and some W3school (a website)
@JamirVega

Profile icon
JamirVega

@potatojs thx so much I actually enjoy coding don't know how but ill check out your resources

Profile icon
potatojs

good luck :)
@JamirVega

Profile icon
BobTheTomatoPie

wow only two months of JS? @potatojs

Profile icon
potatojs
Profile icon
OldWizard209
Profile icon
potatojs
Profile icon
OldWizard209

This file cannot be displayed:

Profile icon
OldWizard209
Profile icon
potatojs
Profile icon
OldWizard209
Profile icon
OldWizard209
Profile icon
potatojs

lol you really using the small window? open it in a new tab! but nice
:)
@abdullahrajput9

Profile icon
[deleted]
Profile icon
potatojs
Profile icon
[deleted]

@potatojs tks add me k!

Profile icon
potatojs

added u :)
@FluidCycling

Profile icon
Daniel3210
Profile icon
firefish

@Daniel3210 Don't impersonate the CSS destroyer

Profile icon
NoNameByProgram
Profile icon
MatthewX

This is a very GOOD GAME :D did you use html?

Profile icon
potatojs

yep :)

A LOT

@MatthewX

Profile icon
MatthewX

@potatojs then u used c sharP?

Profile icon
potatojs

no :(
i'm gonna learn it :)
i used js...A TON of it
actually this game is my longest/biggest program i used evrything i now lol
@MatthewX

Profile icon
MatthewX

@potatojs lol also how did u like hide the actual code?

Profile icon
MatthewX

@potatojs with the app thingie

Profile icon
potatojs

i didn't hide it
it is in the scripts folder lol
@MatthewX

Profile icon
MatthewX

@potatojs oh lol

Profile icon
MatthewX

@potatojs you should hide the code and also how did u get all those imagess?

Profile icon
potatojs

all the images are made in MS paint/edited in p5.js a js lib
and about the code... i don't really care it is trash anyway
@MatthewX

Profile icon
MatthewX

@potatojs DONT SAY THAT your art isnt beutiful:D AND UR CODE

Profile icon
MatthewX

@potatojs i tried to make a shooter game in python but it didnt work out well, IT WAS SOOOO SLOWWW AND LAGGYYY xD

Profile icon
potatojs

yeah python in repl isn't the fastest(i tried that as well in turtle lol)
@MatthewX

Profile icon
MatthewX

@potatojs lol thats why i started learning html and js xD

Profile icon
MatthewX

@potatojs Otherwise I will still be coding in python

Profile icon
potatojs

me to lol
:D
@MatthewX

Profile icon
MatthewX

@potatojs Also, how did you get that cool button style with big letters and cool design?

Profile icon
potatojs

yeah i'm probably going to return at some to learn some AI
AI pog
@MatthewX

Profile icon
MatthewX

@potatojs ok (idk what AI pog is lol)

Profile icon
potatojs
Profile icon
MatthewX

@potatojs ok :D

Profile icon
potatojs
Profile icon
potatojs
Profile icon
MatthewX

@potatojs (sad how i dont know css :( D: )

Profile icon
potatojs

WHAT? YOU SHOULD LEARN IT NOW!!
css will take your project from
this
to

this

@MatthewX

Profile icon
MatthewX

@potatojs OK :O :O :O :O :O :O

Profile icon
MatthewX

@potatojs Also, wh en did you start coding?

Profile icon
potatojs

bruh that was a horrible example @potatojs

Profile icon
potatojs

i tryed my best :(
@potatojs

Profile icon
MatthewX
Profile icon
potatojs

6 mounth ago i started python
but i really started coding with js 2 mounth ago
@MatthewX

Profile icon
MatthewX

@potatojs WOW UR GOOD

Profile icon
MatthewX

@potatojs u a profesional coder?

Profile icon
MatthewX

@potatojs I started python like 2 years ago and learned it for 1 week then stopped and then continued 3 months ago and learned js 2 months ago lol

Profile icon
potatojs

this isn't even 2% what i want to do/learn
big plans :)
@MatthewX

Profile icon
potatojs

no.
i'm a spaguety [email protected]

Profile icon
potatojs
Profile icon
MatthewX

@potatojs WOW so u want to be a game dev?

Profile icon
MatthewX

@potatojs or like a computer science coder?

Profile icon
potatojs

nop
i want to be...
Game dev
AI and machine learning guy
full stack js dev
and i want to make some simulations :)
@MatthewX

Profile icon
potatojs

i want to learn EVERYTHING
@MatthewX

Profile icon
MatthewX

@potatojs nice also what grade u in?(you don't have to answer if u dont want to)

Profile icon
potatojs

8th grade? i don't know how grades work in english
i'm 13 :)
@MatthewX

Profile icon
MatthewX

@potatojs wait ur not english?

Profile icon
MatthewX

@potatojs wait... how come my thing went from 74 to 97?

Profile icon
potatojs

i upvoted your comments lol
actually i upvoted everyones comments
@MatthewX

Profile icon
MatthewX

@potatojs um ok...

Profile icon
MatthewX

@potatojs also u said ur not english?

Profile icon
potatojs

nop.
english isn't our first lang
neither the second
i had to learn english to learn programing
soo..
i learned english doing exercises and taking online lessons?
i watched series and movies and forced myself to talk :)
@MatthewX

Profile icon
MatthewX

@potatojs then waht ur main language?

Profile icon
potatojs

it's a secret :)
my second is french
@MatthewX

Profile icon
MatthewX

@potatojs ok...

Profile icon
MatthewX

@potatojs ITS SPANISHHSHSHHSSSHSHHSHSHHHHSH OR GERRRRMAANNNN(lol idk)

Profile icon
potatojs

nop lol
@MatthewX

Profile icon
MatthewX

@potatojs oof idk i am learning spanish :)

Profile icon
potatojs

noiiice
why?
scool?
@MatthewX

Profile icon
MatthewX

@potatojs yes school

Profile icon
potatojs

lol nice i also learned french in school
@MatthewX

Profile icon
MatthewX

@potatojs Also can u work with me to create a random game?(like be in a team) Im kinda noobie(very noobie) so u dontt have to

Profile icon
potatojs

ehh sorry i would like to work in a team but right now i'm doing some back-end stuff and focusing on learning :)
@MatthewX

Profile icon
MatthewX

@potatojs ok thats fine

Profile icon
potatojs
Profile icon
potatojs

you are 99 lol
@MatthewX

Profile icon
MatthewX

@potatojs nope 100

Profile icon
MatthewX

@potatojs you 500 lol

Profile icon
potatojs
Profile icon
MatthewX

@potatojs wait r u chinese?

Profile icon
potatojs

wat?rally? 500special is comming :)
wait a second
@MatthewX

Profile icon
MatthewX

@potatojs ok lol

Profile icon
potatojs

lmao no
@MatthewX

Profile icon
MatthewX
Profile icon
MatthewX

@potatojs then latin, indian,

Profile icon
potatojs
Profile icon
MatthewX

@potatojs Is 500 special a game? what is it?

Profile icon
MatthewX

@potatojs lol idk what u r then(you could speak alien hmmmmmm...)

Profile icon
potatojs

maybe........
@MatthewX

Profile icon
MatthewX

@potatojs what is the 500 special?

Profile icon
MatthewX

@potatojs tell me pls so i can have an idea for my 100 special :)

Profile icon
potatojs
Profile icon
MatthewX

@potatojs ok :D

Profile icon
MatthewX

@potatojs Thats cool but too bad i cant use it (i dont know how to make it and it would be copying u) R.I.P

Profile icon
MatthewX

@potatojs lol i realized i kinda used css in my games. I just put them in a bad spot by using style = "blahblahblah"

Profile icon
potatojs

wat lmao
@MatthewX

Profile icon
MatthewX

@potatojs I learned some of the basics of css:D

Profile icon
MatthewX

@potatojs watched a vid on yt :D

Profile icon
potatojs

NICE let's hack nasa!
@MatthewX

Profile icon
potatojs

lol
NICE
@MatthewX

Profile icon
MatthewX

@potatojs wat the..

Profile icon
MatthewX

@potatojs why hack nasa?

Profile icon
MatthewX

@potatojs Also, (no offense) We are both way too noobie to hack nasa -_-

Profile icon
potatojs
i was kidding :P

@MatthewX

Profile icon
potatojs

r/wooosh
@MatthewX

Profile icon
MatthewX

@potatojs lol ok

Profile icon
MatthewX
Profile icon
MatthewX

@potatojs I HAVE AN IDEA im gonna make a website for 100 cycles :D(I already made a website already but its trash tbh so im gonna make another and way better one since i know more now :D)

Profile icon
potatojs

yey good luck! :)
@MatthewX

Profile icon
MatthewX

@potatojs Thanks! :D

Profile icon
MatthewX

@potatojs i got like 30 - 60% of my website done. Using a lot of css like the hovering thingie i just learned :D im probably gonna save the website project for 150 cycles :D

Profile icon
potatojs

yeah good job :)
i also did my first special thingy at 150 [email protected]

Profile icon
python88

@MatthewX gluton tag

Profile icon
MatthewX

@python88 what?

Profile icon
MatthewX

@potatojs :) i finally figured out how to do the hover thing in css :D

Profile icon
potatojs

yey! :)
@MatthewX

Profile icon
MatthewX

@potatojs Thanks! :)

Profile icon
DavidLi17
Profile icon
potatojs

lol yeah that's why python = CRINGE
and the picture is nice
:)
@DavidLi17

Profile icon
MatthewX

@potatojs hey potato

Profile icon
potatojs
Profile icon
MatthewX
Profile icon
MatthewX

@potatojs Also, i added youtube vids to my website :) and its looking good

Profile icon
potatojs

you want a platformer game?
i don't know how to do that lol
i'm gonna do it at some point but...
:)
@MatthewX

Profile icon
potatojs

NICE that is actually exiting!
:P
@MatthewX

Profile icon
MatthewX

@potatojs Thanks!

Profile icon
MatthewX

@potatojs im gonnna make my platformer using coordinates since with out is rlly confusing

Profile icon
MatthewX

@potatojs so no edges and u can go through from the bottom :)

Profile icon
potatojs

@MatthewX wait aren't coordinates... essencial?

Profile icon
MatthewX

@potatojs what?

Profile icon
MatthewX

@potatojs hey potato how did you save the info then looad it again?

Profile icon
potatojs

i used localStorage :)
if you don't know it the localstorage is storing data in the browser :) it is very easy to use one line of code to store any thing and one line to get that thing:)

but it is limited at 5mb i think so i store just the highscore

@MatthewX

Profile icon
MatthewX

@potatojs what? but u store the guns unlocked too

Profile icon
MatthewX

@potatojs how much is 5mb in terms of like storing variables?

Profile icon
potatojs

no i just store the high score and before you start i give you weopons deponding on it :)
@MatthewX

Profile icon
MatthewX

@potatojs oh nice :)

Profile icon
MatthewX

@potatojs Also i need help if you can help that would be nice :) url:https://repl.it/talk/ask/Help-im-not-sure-what-the-problem-is/52250

Profile icon
potatojs

infinity if it's text
but if you are storing images maybe... 10 big images?
@MatthewX

Profile icon
MatthewX
Profile icon
MatthewX

@potatojs what is the code for the local storage?

Profile icon
potatojs

but you shouldn't save sensitive data because users can change them any time from the console.. you can use localStorage in stuff like a todo list app where users are the ones infected if they change [email protected]

Profile icon
MatthewX
Profile icon
MatthewX

@potatojs im just gonna save their money

Profile icon
MatthewX

@potatojs they earn in-game

Profile icon
potatojs

localStorage.setItem('item','value')
here you store a value in a item
something like you can say
localStorage.setItem('userHighScore',highScore)

============

localStorage.getItem('item')
is getting one of the items you already stored

there is i think 5 deferent methods but those are the ones i use :)
@MatthewX

Profile icon
potatojs

ok but... they still can cheat easly :)
@MatthewX

Profile icon
MatthewX

@potatojs its fine :)

Profile icon
potatojs
Profile icon
MatthewX

@potatojs wait do u know how to fix the problem im having?

Profile icon
potatojs

i looked at it but... reading other people code isn't my profision :)
but if i want to think about something did you tryed:

  • resetting the rectangle x and y velocity to 0 whenever you enter a new level?
    this is actually all i can think about lol
    i worked with platformers a lot i never fall in this problem so i have no clue :)

@MatthewX

Profile icon
MatthewX

@potatojs i did that already but it didntwork :(

Profile icon
potatojs

i don't know :(
maybe try the super debugging strategy
the final tool! the console
did you tried opening the dev tool and just consoling out the values? you probably didn't because.. it works every time ;)
open the game in a new tab open the dev tool (f12) and start console loging the values after and before compliting a level, and if you remarke any inexpecting behaviors from the variables, go to that part of the code and start missing around with it! how tio console.log values just write the value you need and hit enter and the magic of the dev tool will return back the value while running the game!
other tip i can give you is just read this page!
and good luck ;)
@MatthewX

Profile icon
MatthewX

@potatojs thx and i did that before with the velocitys

Profile icon
MatthewX

@potatojs Also, the saving thing is meesing up the player

Profile icon
MatthewX

@potatojs once i save then refresh and play a level the player dissapeared

Profile icon
potatojs

saving? you mean the localStorage?why?
@MatthewX

Profile icon
potatojs

lol what this is new
@MatthewX

Profile icon
MatthewX
Profile icon
MatthewX

@potatojs idk why :(

Profile icon
MatthewX

@potatojs you can test it if u need to

Profile icon
potatojs

just try the debuging method, think about any possible solution, try them!
reread your code, analyse it, draw it's flow on a paper, track the code, run the game and start saying in your head: i click this button this function will be called let's check it! no strange behaviors continue!
if you don't ***FULLY COMPLITLY *** inderstand a function/a script in your code, try to understand it or if it's not important just delete the thing!
try commenting out script by script and don't never EVER stop trying or give upping on the project :)
didn't work?REPEAT
those are the stuff i do
@MatthewX

Profile icon
MatthewX

@potatojs ok thx for the motivation :)

Profile icon
potatojs

np :D
wow you read it fast
@MatthewX

Profile icon
MatthewX

@potatojs yes lol

Profile icon
MatthewX

@potatojs hey potato you know a quick way to indent a whole function in js? i have to do that for like 500 lines -_- pls help. I realized that i should just make a loop for my game so lvl 1 and 2 might not overlap :D.

Profile icon
potatojs

i don't know what is indent lol
a game loop is essenciel in every game
@MatthewX

Profile icon
MatthewX

@potatojs dang it putting a loop makes the game kinda laggy

Profile icon
MatthewX

@potatojs indennt is like tab

Profile icon
MatthewX

@potatojs oof the loop is veryveryveryvery laggy pls look at the code.

Profile icon
potatojs

tab? you just select the whole function and... hit tab lol
and if you broke it crtl+z
@MatthewX

Profile icon
potatojs

no i'm going to sleep :)
plus trying to get help in every problem you get isn't an efficient way to learn anything...
@MatthewX

Profile icon
MatthewX

@potatojs true.. but im like stuck.

Profile icon
MatthewX

@potatojs I finished the game! :) come play it when you wake up ;) https://repl.it/talk/share/GAMEParkour/52372

Profile icon
MatthewX

@potatojs :( i guess the parkour game isnt that good

Profile icon
potatojs

you don't need to focus on making the best games and programs right now... right now just focus on learning and practicing and the skills will come in there own
@MatthewX

Profile icon
MatthewX

@potatojs ok :)

Profile icon
MatthewX

@potatojs but i wanted the games to be decent :( i guess ill need to use images in thegame

Profile icon
potatojs
Profile icon
potatojs

no you just need to continue learning
@MatthewX

Profile icon
MatthewX

@potatojs ok got it

Profile icon
MatthewX

@potatojs i learn when i make projects or games :)

Profile icon
MatthewX

@potatojs hey potato, would local storage work for a username and password thing?

Profile icon
MatthewX

@potatojs is there a way to access the local storage?

Profile icon
MatthewX

@potatojs Should I use like a json file? Is that possible with html and js?

Profile icon
potatojs

yes you can store anything below 5mB but... this isn't efficient cause any one can check the localStorage and get the password
you need some back-end programing(you need to set a server using node.js and express.js then you set a database using something like mongoDB or simpler like neDB)
but for now you don't wanna miss with those things lol

@MatthewX

Profile icon
potatojs

yes from the dev tool just write localStorage and hit enter
you can clear it change it ect..
@MatthewX

Profile icon
MatthewX

@potatojs ok but im just gonna make a chat thingie if i can

Profile icon
potatojs

no to make a chat you need node.js
@MatthewX

Profile icon
MatthewX
Profile icon
MatthewX

@potatojs hello! long time no see can u check this out pls? https://repl.it/talk/share/GAMESTUDY-CLICKER/61001

Profile icon
PizzaisGood

Noice

Profile icon
potatojs

:)

@PizzaisGood

Profile icon
PizzaisGood

That was a quick repl. @potatojs

Profile icon
potatojs
Profile icon
PizzaisGood

Well anyways Good [email protected]

Profile icon
potatojs

thanks :)
@PizzaisGood

Profile icon
PizzaisGood
Profile icon
Bookie0
Profile icon
potatojs
Profile icon
JarodL

The leaderboard doesn't seem to work

Profile icon
potatojs

did you read my post send your high score
@JarodL

Profile icon
JarodL
Profile icon
potatojs

lol np
:)
@JarodL

Profile icon
heythere12

Um- if you seen a comment like this its just me from a diff acc- but i forgot the pass in that acc- So, um when i tried adding random pics and stuff to make dif enemies it just like- loading for eternity
Pls help

Profile icon
[deleted]

i like it but when i fork it and put random pictures for enemies- it doesn't do anything- just says loading.... pls help

Profile icon
NehalRam

Little did he know that he would make one of the best browser games ever

Profile icon
ichbindede

I think this is the best game ever existed in replit.

Profile icon
hilkin2008

really cool this is one of best games in here
wanna play 1 of my games??
if yes copy paste this to window https://agario-solo-p5-p5.hilkin2008.repl.co/

Profile icon
Blackout4344

Yoo man wsp! i beat my own highscore! Pls add it!
Screen Shot 2021-03-19 at 4.07.07 PM

Profile icon
potatojs

@Blackout4344 bro that's amazing!

Profile icon
Blackout4344

Thanks!! @potatojs

Profile icon
BCP

I found the potopediaJs is that an easteregg encyclopedia?

Profile icon
potatojs

no i was just bored :)
@BCP

Profile icon
BCP

it's hard

Profile icon
BCP

I got 44

Profile icon
ThisUserTaken

kewl

Profile icon
Smart0ne

I got 239!

Profile icon
Roixiong

does the leaderboard update automatically or do you manually enter the scores

Profile icon
potatojs

@Roixiong i manually enter the scores :)
i tough about making it automatic (that's why it's in node)
but that will open a lot of problems from people hacking the database to others hacking the game and getting hundreds and automatically enter the leaderboard without me knowing that
( it's a big mess XD )

Profile icon
Roixiong

@potatojs

image
i had a higher score but i didnt screenshot

Profile icon
potatojs

very nice
@Roixiong