Share your repls and programming experiences

← Back to all posts
[GAME] survival game (the best game ever existed)
potatojs (801)

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 see ya in 500 special
#potatoisme

Commentshotnewtop
DynamicSquid (3552)

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

potatojs (801)

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

DynamicSquid (3552)

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

Duvangamer3845 (115)

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

potatojs (801)

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

CatR3kd (201)

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

youaremine (0)

@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

potatojs (801)

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

Duvangamer3845 (115)

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

Duvangamer3845 (115)

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

potatojs (801)

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

Warhawk947 (518)

@Duvangamer3845 next round idea: highest score without moving

ElijahNarvaez (0)

I tryed useing this as a strat
@Warhawk947

clawstrike (16)

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

potatojs (801)

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

clawstrike (16)

oh ok, thanks @potatojs. Really good game

AtriDey (170)

"Dani"
This potato guy liked milk or smth?

potatojs (801)

haha lol drink milk boooooy!!!!
@AtriDey

ZDev1 (615)

@AtriDey hey do u watch Dani
the programmer

potatojs (801)

yes the game dev guy lol
@ZDev1

AtriDey (170)

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

(yes)

JamirVega (1)

when did yall learn to code and maybe where

potatojs (801)

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

JamirVega (1)

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

MatthewX (143)

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

potatojs (801)

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

MatthewX (143)

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

potatojs (801)

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

MatthewX (143)

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

potatojs (801)

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

MatthewX (143)

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

MatthewX (143)

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

potatojs (801)

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

MatthewX (143)

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

MatthewX (143)

@potatojs Otherwise I will still be coding in python

MatthewX (143)

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

potatojs (801)

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

MatthewX (143)

@potatojs ok (idk what AI pog is lol)

MatthewX (143)

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

potatojs (801)

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

this

@MatthewX

MatthewX (143)

@potatojs Also, wh en did you start coding?

potatojs (801)

bruh that was a horrible example @potatojs

potatojs (801)

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

MatthewX (143)

@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

potatojs (801)

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

MatthewX (143)

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

MatthewX (143)

@potatojs or like a computer science coder?

potatojs (801)

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

potatojs (801)

i want to learn EVERYTHING
@MatthewX

MatthewX (143)

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

potatojs (801)

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

MatthewX (143)

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

potatojs (801)

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

MatthewX (143)

@potatojs also u said ur not english?

potatojs (801)

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

MatthewX (143)

@potatojs then waht ur main language?

potatojs (801)

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

MatthewX (143)

@potatojs ITS SPANISHHSHSHHSSSHSHHSHSHHHHSH OR GERRRRMAANNNN(lol idk)

MatthewX (143)

@potatojs oof idk i am learning spanish :)

potatojs (801)

lol nice i also learned french in school
@MatthewX

MatthewX (143)

@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

potatojs (801)

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

potatojs (801)

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

MatthewX (143)

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

MatthewX (143)

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

MatthewX (143)

@potatojs what is the 500 special?

MatthewX (143)

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

MatthewX (143)

@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

MatthewX (143)

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

MatthewX (143)

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

MatthewX (143)

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

MatthewX (143)

@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)

MatthewX (143)

@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

potatojs (801)

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

MatthewX (143)

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

potatojs (801)

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

MatthewX (143)

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

potatojs (801)

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

potatojs (801)

NICE that is actually exiting!
:P
@MatthewX

MatthewX (143)

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

MatthewX (143)

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

potatojs (801)

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

MatthewX (143)

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

potatojs (801)

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

MatthewX (143)

@potatojs what? but u store the guns unlocked too

MatthewX (143)

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

potatojs (801)

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

potatojs (801)

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

MatthewX (143)

@potatojs what is the code for the local storage?

potatojs (801)

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]

MatthewX (143)

@potatojs im just gonna save their money

potatojs (801)

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

potatojs (801)

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

MatthewX (143)

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

potatojs (801)

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

MatthewX (143)

@potatojs i did that already but it didntwork :(

potatojs (801)

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

MatthewX (143)

@potatojs thx and i did that before with the velocitys

MatthewX (143)

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

MatthewX (143)

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

potatojs (801)

saving? you mean the localStorage?why?
@MatthewX

MatthewX (143)

@potatojs you can test it if u need to

potatojs (801)

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

MatthewX (143)

@potatojs ok thx for the motivation :)

potatojs (801)

np :D
wow you read it fast
@MatthewX

MatthewX (143)

@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.

potatojs (801)

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

MatthewX (143)

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

MatthewX (143)

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

potatojs (801)

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

potatojs (801)

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

MatthewX (143)

@potatojs true.. but im like stuck.

MatthewX (143)

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

MatthewX (143)

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

potatojs (801)

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

MatthewX (143)

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

potatojs (801)

no you just need to continue learning
@MatthewX

MatthewX (143)

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

MatthewX (143)

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

MatthewX (143)

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

MatthewX (143)

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

potatojs (801)

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

potatojs (801)

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

MatthewX (143)

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

potatojs (801)

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

Bookie0 (3914)

i like his sunglasses! lol

anyways i got 124

JarodL (13)

The leaderboard doesn't seem to work

Roixiong (0)

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

potatojs (801)

@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 )

Roixiong (0)

@potatojs


i had a higher score but i didnt screenshot

PlaySoccer (34)

you should make this multiplayer

potatojs (801)

lol i was just thinking about that :D
@PlaySoccer

Name12 (117)

cool!
awesome game like usual.

Name12 (117)

NP @potatojs
just telling the truth

potatojs (801)

lol actually i can't stop this kind of hacking :( look at this:


lol

@MarbleMammal397

MarbleMammal397 (0)

@potatojs I guess, I'm just looking at all the chats and every is just like,#relatable.

Blackout4344 (30)

Have you added more guns? I have a suggestion: How about bandages or medkits? That would make it more fun. @potatojs

potatojs (801)

yeah that's a good idea but.. the dev of this game is done for me lol
(but i'm gonna add that when i make the online version! :))
@Blackout4344

FindlayJohnColi (0)

i keep dying at 200 points im bad at this game

[deleted]

yes i am a noob thanks for noticing :)

stubaduble (13)

This is so fun!
But really hard...
Could you increace the size of the map? and add some barriers and borders?

potatojs (801)

no this is hard lol maybe in my next one :)
@stubaduble

TheAverageAsian (3)

Did you get inspiration from Milkman Dani???
Noice.

potatojs (801)

milk gang

who are those?
i am...

A BONER

@TheAverageAsian

TheAverageAsian (3)

True boners drink milk everyday.
Since I'm Asian, I also drink banana milk. XD
@potatojs

potatojs (801)

TRUE BONERS ARE VIBING WITH KARLSONVIBE RIGHT NOW!
@TheAverageAsian

TheAverageAsian (3)

I am. I listen to it everyday at school. XD
@potatojs

brasilchicken10 (3)

Is it normal for a 20-swarm of different enemies to go onto the screen when they are unlocked?

Gabby8C0des8 (24)

im playing this when is should be in a zoom call-

potatojs (801)

lol yes you are doing great continue
@Gabby8C0des8

Bernich2 (0)

Its there a tutorial on this ?