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

@Duvangamer3845

image my best score with shotgun

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

@Duvangamer3845

Screen Shot 2020-09-02 at 6.50.49 PM
with minigun (best so far)

Profile icon
Duvangamer3845

@NoNameByProgram
only shoguns are valids

Profile icon
potatojs
Profile icon
Navinor

@Duvangamer3845
aight imma join

Profile icon
Navinor

@Duvangamer3845

image

128

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

image

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

image

Profile icon
potatojs
Profile icon
OldWizard209

This file cannot be displayed:

Profile icon
OldWizard209

image

Profile icon
potatojs
Profile icon
OldWizard209

image

Profile icon
OldWizard209

image

Profile icon
potatojs

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


@abdullahrajput9

Profile icon
[deleted]

Yooo
Look at mine!!

Profile icon
potatojs
Profile icon
[deleted]

@potatojs
tks add me k!

Profile icon
potatojs

added u :)


@FluidCycling

Profile icon
Daniel3210

@FluidCycling
So what? look at mine!😏
Achievement

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