Share your repls and programming experiences

← Back to all posts
Google Dino Game
GhostKing007

So...I found Google's dino game source code.

JK

I created this using p5.play.js, a library in js that makes simple games easier to make. This is partly because I started coding with code.org and that uses p5.play. Anyway, I recreated the dinosaur game some time ago and found it today, browsing through my projects.

You play it like the normal game. I misplaced the sound files so until i find them again or recreate them there will be no sound in this. The other features that are missing are the pterodactyls and night. Other than those things this could be google dino game's long lost twin.

I guess I should like, credit google so...

This code was made by me but idea used from Google.com. They deserve like 99% credit.

Ok...that's all. Bye.


Edit : I'm going to try and add the other features as well, like the pterodactyls and the night time. I will also try and include the easter eggs from the original game, if i find any on the internet.

Update Log :

Apologies, I was in the middle of adding the pterodactyls, and the game had some glitches for some time. I have removed the extra parts and am working on them in another repl. The glitches are gone now. I will add the features to this as soon as i fix all the bugs. Thanks. Also, YAY POG THIS IS MY FIRST TRENDING REPL TYSM REPL COMMUNITY!!!

Voters
AmoghTheCool
JonathanSutton
MarcusWeinberger
Rufus310
DanielAlabi
MaryamKashif
SelenaYang1
BraggerSphere11
ParrotDev
SeamusDonahue
Comments
hotnewtop
ch1ck3n

so close to a perfect high score...

IronStarkMan

How did you even kill yourself so quick? @ch1ck3n

ch1ck3n
GhostKing007

@ch1ck3n lmao nice score

ch1ck3n
GhostKing007

@ch1ck3n ah yes, the holy score lmao

IronStarkMan

no i mean like, the first cactus appears after like the score is 80, how did u die at 60 @ch1ck3n

ch1ck3n

@IronStarkMan

this is for me

mollthecoder

@ch1ck3n I WON!!!

JasmineGuo

@ch1ck3n There is literally no way I can jump

GhostKing007

@JasmineGuo You have to press spacebar. Unless you're on a phone. This doesn't work on phone.

BraydenReigle

@ch1ck3n Lol seriously!?

EmmaGao8

@JasmineGuo Use the space key

VulcanWM

hey did u recently get discord-?
im guessing you joined riordan wiki?

GhostKing007

@VulcanWM yep. riordan wiki server and replit server. I regret not getting discord sooner, its actually pretty cool. Wbu? FlaminHotValdez said he thinks your account got locked or smth?

VulcanWM

yeah I’m the Medea who riordan wiki talk about, whose account got disabled and stuff
(Fun fact: I got oracle in a month, nobody has beaten my record so far)
@GhostKing007

GhostKing007

@VulcanWM Haven't heard any talk of a Medea yet, but I've only been two days so. Also, Oracle in a month!???!! That's amazing dude. Too bad Leo's missing out. He says ppl hate Leo in the discord, but so far, ppl have been pretty nice.

VulcanWM

yeah i was pretty good at grinding lmfao, ig the chat about me has died out, i mean i left a few months ago
yeah leo joined but most people there hate against leo, i swear they had an emoji called :uglyleo: @GhostKing007

GhostKing007

@VulcanWM Idk, ppl are cool. No one has been mean, or hated against a character. It's pretty chill.

GhostKing007

@VulcanWM I bought the TOA sticker pack though, it is amazing lmfao

VulcanWM

Yeah I remember after so bought all the sticker packs I used to give my drachmas to people who needs them to buy sticker packs lmfao @GhostKing007

GhostKing007

how do you give drachmas? @VulcanWM

VulcanWM

$give user amount
dyu want my legendary oracle cheat sheet? It’s not use to me anymore so I could just give it to you (it’s the secret to my success)
@GhostKing007

GhostKing007

@VulcanWM Oh, thanks. Also, sure, tell me ur secret lol

VulcanWM

dyu have an email I could add to the google docs for access? @GhostKing007

GhostKing007

@VulcanWM no no no email classified. Can u add me to a repl and tell me?

VulcanWM

Here then: https://docs.google.com/document/d/1vbyEjf9sNu3gnbkvnnZbuaYjpw9NB2eozIPU3FB6e2g/edit
I’ll delete the link as soon as you reply to this comment so save the link somewhere
@GhostKing007

GhostKing007

@VulcanWM lmao no way I'm getting oracle with that, ASV (person who almost has oracle) probably memorized every single detail in PJO. I probably have to do a few hundred re-reads and memorize everything to become faster than ASV.

VulcanWM

yk I haven’t even read Magnus chase and Kane chronicles @GhostKing007

VulcanWM

The more you use the cheat sheet the better u get at it
Just keep one tab open with it and then copy and paste whenever the prophecy comes up
It’s handy the memorise the numbers tho and strike the hue and those short prophecies @GhostKing007

GhostKing007

@VulcanWM Magnus Chase was good. Kane Chronicles I stopped after 10-15 pages, it was meh.

VulcanWM

yeah so the more you do the questions the more quicker you get as you somehow start to remember the answers @GhostKing007

GhostKing007

@VulcanWM Dude, they remember you! I made a joke about termy not giving enough questions, and one person was like 'sounds like Medea', and I said I hate Medea bcuz she killed Jason, and someone else said 'Medea was a member here, but her account was deleted'

VulcanWM

lmfao nice
who said u sounded like me?
also I used to do that a lot lmfao
a few of my quotes were: termy srsly hates me, termy prophecy pls, I laughed when Jason died
@GhostKing007

GhostKing007

@VulcanWM termy prophecy pls, that's what i said lol. I think it was a person called Will. or Gardener BeeBee. And today they're saying you're the fastest oracle, in about 20 days.

VulcanWM

oh yeah will
also yeah I was :) @GhostKing007

GhostKing007

@VulcanWM Nice. Tbh some of the ppl are kinda toxic, like they act like they're better than the new ppl bcuz they have more friends or smth. Yesterday there was a big fight about whether Nico is good or overrated. There was only one Nico supporter other than me, and he was banned. I'm thinking I should stop commenting and just do the termy challenges.

VulcanWM

yeah there are
It’s mostly against wolf house people and oracle people bc they ‘have no life’
also yeah there was this mod who was pretty annoying but he left bc of personal reasons
and the toxic people are mostly people who have been in the server for a long time
I mean that’s the reason me and my friend made a better version of rrw before @GhostKing007

GhostKing007

@VulcanWM Facts. I'm starting the grind for oracle, I have 50000 exp now, hoping i'll get oracle in at least 2-3 months.

VulcanWM

ayy nice @GhostKing007

JonathanSutton

yay

IEDstudent

I got 1082!

AtticusReeves

Hold space 😎

EmmaGao8

I got 669 highscore!

TashiPatil123

@EmmaGao8 i got 998 highest lol

Jessica0519

Your one of my favorite coder! Are you a boy or girl? Well, I am a girl.

GhostKing007

@Jessica0519 Uh...do you mean me? Well, my gender is classified information. Also, I'm not that good at coding. Like at least 50 other people have commented here that are better at coding than me.

FlaminHotValdez

@GhostKing007 You realize anybody can look up "Nico di Angelo" on the web and figure out you're a boy right

GhostKing007

@FlaminHotValdez Quiet Leo, I'm on a secret mission here. You'll blow my cover. I'm pretending to be a mortal called GhostKing007.

DonoldJTrump

@GhostKing007 A book reference that I can actually recognize!!! Yay me!

GhostKing007

@FlaminHotValdez A clear-sighted mortal? Leo, discuss this with Chiron. A lot of clear-sighted mortals and/or demigods have been pooping up here. I was investigating this, but it is getting out of hand. Chiron will know what to do.

FlaminHotValdez

@GhostKing007 Why can't we just burn them? I don't get to have any fun!

GhostKing007

@FlaminHotValdez We have to keep them safe, maybe get the gods to remove their clear-sight. You want fun? Go to this monster camp near Mt. Orthrys. Chiron can give you the exact location. A group of three should be enough to wipe the area clean.

GhostKing007

@FlaminHotValdez As for the demigods, distribute them amongst the camps. I've heard Thalia and the hunters are nearby, maybe let them recruit some demigods. Is Piper at camp? I trust her more to get all this done than you Leo...

FlaminHotValdez

@GhostKing007 I dunno, clear-sight is more Hecate's thing...Maybe Hazel could do it?

GhostKing007

@FlaminHotValdez Hazel is busy, she's a praetor now. The Summer Solstice is coming up, just tell Chiron about this. He'll tell the gods during the meeting. I assume Hecate will be present as well.

FlaminHotValdez

@GhostKing007 Hecate's never present at summer meetings. Maybe I could get Lou Ellen to do it? Besides, you know how gods are. They're always on their high horse thinking they're better than mortals. Hecate'll probably just carpet bomb the whole world and remove every mortal's sight. We don't want Rachel to lose her sight, do we?

OH, SHUT UP, THUNDER THIGHS! YOU KNOW IT'S TRUE!

GhostKing007

@FlaminHotValdez Seriously? After all that's happened, Zeus still won't let the minor gods in the meetings? That little...

Anyway, Lou might be a good idea, she could contact Hecate. Besides, Hecate can't remove everyone's sight, Apollo, being the god of prophecies also has a say in the matter. He isn't like the other gods anymore. I also have a feeling this has something to do with a prophecy. Only time will tell. Meanwhile, get the message to Lou, and tell the Romans to stay alert as well. I'm going to dig deeper into this.

FlaminHotValdez

@GhostKing007

Yep. Zeus is as arrogant as ever. I already Iris-messaged Lou and Hazel, hopefully they tell the rest.

GhostKing007

@FlaminHotValdez Good. I just received word from Reyna. Artemis is sensing something stirring. The Hunters are coming to camp and staying nearby for a while.You know what that means. Get everyone ready for Capture the Flag. I am coming to camp for a week, I haven't gotten any info about the mortals. We are so gonna beat them this time.

FlaminHotValdez

@GhostKing007 WE HAVE TO BEAT THEM. WE ARE NOT GOING TO LOSE FOR THE 57TH TIME IN A ROW GRRRRRRRRRRRRRR

GhostKing007

@FlaminHotValdez Yeah. I'm on my way right now, and so are the hunters. Get Malcolm to start making strategies. Also, if magic items are allowed, get Festus ready.

FlaminHotValdez

@GhostKing007 ...He's already ready. And I added some Archimedes spheres with...special surprises in them too. Festus isn't magic, he's purely mechanical.

Those hunters have no idea what they're going against.

GhostKing007

@FlaminHotValdez Nice. I'm saving my energy, so Jules-Albert is driving me to Camp. I'm gonna be stopping at Camp Jupiter for some time to get my own 'surprises'. I'll reach CHB on 10th, which should be fine because the game will be on 11th.

FlaminHotValdez

@GhostKing007 mhm and I'm working on greek fire bombs

GhostKing007

@FlaminHotValdez Good. I'll see you there.

cMsYoungChief

I have the actual Chrome Dino source code.

winnerwannabe2

wooooo

MazePersonPog

First try

PixiGem


The games broken, I got my score as 6!

GhostKing007

@HyperDev100 This never happened to anyone else, and seeing as you used inspect element to get a high score I don't actually believe you.

PixiGem

See my score -

GhostKing007

@HyperDev100 inspect element

TashiPatil123

@HyperDev100 amazing!!!

Whippingdot

gud jub but google dino is better

GhostKing007

@Whippingdot Thanks! Ofc the original is better, this is made on p5.play which is a beginner library in JavaScript for making simple games.

IGamer123


wait the dino hit the cacti, but it didnt hit the cacti... @GhostKing007

Atolite

Thats how its done

MeeraAl

when i open it to full screen this pops up
p5 had problems creating the global function "Animation", possibly because your code is already using that name as a variable. You may want to rename your variable to something else.
You just changed the value of "camera", which was a p5 function. This could cause problems later if you're not careful.

p5.js says: It looks like there was a problem loading your image. Try checking if the file path [https://3d6840e3-02e8-4ce2-abf7-0cf0236a6999.id.repl.co/trex1.png] is correct, hosting the image online, or running a local server.[https://github.com/processing/p5.js/wiki/Local-server]
Event { isTrusted: [Getter] }
p5.js says: It looks like there was a problem loading your image. Try checking if the file path [https://3d6840e3-02e8-4ce2-abf7-0cf0236a6999.id.repl.co/trex3.png] is correct, hosting the image online, or running a local server.[https://github.com/processing/p5.js/wiki/Local-server]
Event { isTrusted: [Getter] }
p5.js says: It looks like there was a problem loading your image. Try checking if the file path [https://3d6840e3-02e8-4ce2-abf7-0cf0236a6999.id.repl.co/gameOver.png] is correct, hosting the image online, or running a local server.[https://github.com/processing/p5.js/wiki/Local-server]
Event { isTrusted: [Getter] }
p5.js says: It looks like there was a problem loading your image. Try checking if the file path [https://3d6840e3-02e8-4ce2-abf7-0cf0236a6999.id.repl.co/obstacle4.png] is correct, hosting the image online, or running a local server.[https://github.com/processing/p5.js/wiki/Local-server]
Event { isTrusted: [Getter] }
p5.js says: It looks like there was a problem loading your image. Try checking if the file path [https://3d6840e3-02e8-4ce2-abf7-0cf0236a6999.id.repl.co/restart.png] is correct, hosting the image online, or running a local server.[https://github.com/processing/p5.js/wiki/Local-server]
Event { isTrusted: [Getter] }
p5.js says: It looks like there was a problem loading your image. Try checking if the file path [https://3d6840e3-02e8-4ce2-abf7-0cf0236a6999.id.repl.co/cloud.png] is correct, hosting the image online, or running a local server.[https://github.com/processing/p5.js/wiki/Local-server]
Event { isTrusted: [Getter] }
p5.js says: It looks like there was a problem loading your image. Try checking if the file path [https://3d6840e3-02e8-4ce2-abf7-0cf0236a6999.id.repl.co/trex4.png] is correct, hosting the image online, or running a local server.[https://github.com/processing/p5.js/wiki/Local-server]
Event { isTrusted: [Getter] }
p5.js says: It looks like there was a problem loading your image. Try checking if the file path [https://3d6840e3-02e8-4ce2-abf7-0cf0236a6999.id.repl.co/obstacle3.png] is correct, hosting the image online, or running a local server.[https://github.com/processing/p5.js/wiki/Local-server]
Event { isTrusted: [Getter] }
p5.js says: It looks like there was a problem loading your image. Try checking if the file path [https://3d6840e3-02e8-4ce2-abf7-0cf0236a6999.id.repl.co/obstacle1.png] is correct, hosting the image online, or running a local server.[https://github.com/processing/p5.js/wiki/Local-server]
Event { isTrusted: [Getter] }
p5.js says: It looks like there was a problem loading your image. Try checking if the file path [https://3d6840e3-02e8-4ce2-abf7-0cf0236a6999.id.repl.co/trex_collided.png] is correct, hosting the image online, or running a local server.[https://github.com/processing/p5.js/wiki/Local-server]
Event { isTrusted: [Getter] }
p5.js says: It looks like there was a problem loading your image. Try checking if the file path [https://3d6840e3-02e8-4ce2-abf7-0cf0236a6999.id.repl.co/obstacle2.png] is correct, hosting the image online, or running a local server.[https://github.com/processing/p5.js/wiki/Local-server]
Event { isTrusted: [Getter] }
p5.js says: It looks like there was a problem loading your image. Try checking if the file path [https://3d6840e3-02e8-4ce2-abf7-0cf0236a6999.id.repl.co/obstacle6.png] is correct, hosting the image online, or running a local server.[https://github.com/processing/p5.js/wiki/Local-server]
Event { isTrusted: [Getter] }
p5.js says: It looks like there was a problem loading your image. Try checking if the file path [https://3d6840e3-02e8-4ce2-abf7-0cf0236a6999.id.repl.co/ground2.png] is correct, hosting the image online, or running a local server.[https://github.com/processing/p5.js/wiki/Local-server]
Event { isTrusted: [Getter] }
p5.js says: It looks like there was a problem loading your image. Try checking if the file path [https://3d6840e3-02e8-4ce2-abf7-0cf0236a6999.id.repl.co/obstacle5.png] is correct, hosting the image online, or running a local server.[https://github.com/processing/p5.js/wiki/Local-server]
Event { isTrusted: [Getter] }

IGamer123

holy crap @MeeraAl

MeeraAl
MeeraAl


oof i got a 1000 without hacking ez

Bookie0

Why is there a link to mellindustria lol?

GhostKing007

@Bookie0 I dunno dude, I just downloaded the lib from p5js.org lmao

Bookie0

@GhostKing007 And it gave you that link? I didn't know molleindustria did p5.js lol

GhostKing007

@Bookie0 lol I never actually looked at that lib bcoz i made this in code.org. There the lib is like default so you can't see it.

Bookie0

@GhostKing007 hm okay lol thought it was kinda weird cuz molleindustria makes some...let's say not very kid friendly games xD

GhostKing007

@Bookie0 oh lol okay

mollthecoder

@Bookie0 That isn't p5.js file, it's p5.play.js file. @GhostKing007

GhostKing007

@mollthecoder Yes, it is the p5.play.js file.

iocoder

@GhostKing007 glitch found and its not @JBloves27

that dino.. oh thats gotta hurt!

JBloves27

wha with the ping? lol @iocoder

iocoder

@JBloves27 didn't mean to ping you, my auto corrector added it for some reason, i didn't even notice lol, sry bout that

JBloves27

lol, np @iocoder

iocoder
GhostKing007

@iocoder hmm that never happened to me, I'll look into it, sorry about that :)

iocoder

@GhostKing007 its fine, its just funny that the dino has to suffer getting all into a cactus... it must hurt a lot!

iocoder

@GhostKing007 im not kidding this is my score

911?! eeeeh, well, um, ok.. then, uh, yah... totally normal score nearly 1000!

super ez btw lol

GhostKingNico

oh MAN perfecto

GhostKingNico
pzrepl

cool but could you make it full screen...

GhostKing007

@pzrepl I will try, but probably later because 1) i have to add pterodactyls and night mode so they're priority and 2) full screen will be a bit difficult since this is kinda the normal size of the game.

pzrepl

k ic

[deleted]

I did it!

GhostKing007

I am turning off the spotlight comments bcoz ppl r sending their high scores and I am getting lot of pings, so... (Rip email)

JBloves27

lol oof @GhostKing007

IGamer123

you can just have them ping ur notif and turn of email
@GhostKing007

GhostKing007

@IGamer123 I need email for important pings. I miss a lot of messages if I check only notifs.

JonathanSutton


YES

IGamer123

ya use campus? @JonathanSutton
ya nice score

JonathanSutton

@IGamer123 sorry for the late reply, yes I use campus. we used to use google classroom which I thought was a lot better. And thanks!

JonathanSutton


NO x2

JonathanSutton


NO

SamuelSaid

I Have A HIGH OF 1057 AND THIS IS POG AND I ALREADY UPVOTED IT

GhostKing007

@SamuelSaid pog score

mcro

blocked for me

GhostKing007

@mcro Can you please send a screenshot of the issue you are facing? Thanks.

mcro

@GhostKing007 its fine now

JBloves27

dino go brrr

GhostKing007

Spacebar go brrr

JBloves27

cactus go brrr @GhostKing007

codingcactus (no ping :D)

GhostKing007

@JBloves27 pterodactyl go brrr

why codingcactus lol?