Share your repls and programming experiences

← Back to all posts
Google Dino Game
GhostKing007 (138)

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!!!

Comments
hotnewtop
ch1ck3n (2035)

so close to a perfect high score...

IronStarkMan (16)

How did you even kill yourself so quick? @ch1ck3n

GhostKing007 (138)

@ch1ck3n ah yes, the holy score lmao

IronStarkMan (16)

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

JasmineGuo (1)

@ch1ck3n There is literally no way I can jump

GhostKing007 (138)

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

EmmaGao8 (33)

I got 669 highscore!

Jessica0519 (1)

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

GhostKing007 (138)

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

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

GhostKing007 (138)

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

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

GhostKing007 (138)

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

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

GhostKing007 (138)

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

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

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

GhostKing007 (138)

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

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

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

@GhostKing007

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

GhostKing007 (138)

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

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

GhostKing007 (138)

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

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

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

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

cMsYoungChief (0)

I have the actual Chrome Dino source code.

PixiGem (98)


The games broken, I got my score as 6!

GhostKing007 (138)

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

Whippingdot (652)

gud jub but google dino is better

GhostKing007 (138)

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


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

Atolite (4)

Thats how its done

MeeraAl (16)

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] }

MeeraAl (16)


oof i got a 1000 without hacking ez

Bookie0 (6258)

Why is there a link to mellindustria lol?

GhostKing007 (138)

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

Bookie0 (6258)

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

GhostKing007 (138)

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

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

mollthecoder (37)

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

GhostKing007 (138)

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

iocoder (187)

@GhostKing007 glitch found and its not @JBloves27

that dino.. oh thats gotta hurt!

JBloves27 (1878)

wha with the ping? lol @iocoder

iocoder (187)

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

GhostKing007 (138)

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

iocoder (187)

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

iocoder (187)

@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

pzrepl (0)

cool but could you make it full screen...

GhostKing007 (138)

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

GhostKing007 (138)

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

IGamer123 (76)

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

GhostKing007 (138)

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

IGamer123 (76)

ya use campus? @JonathanSutton
ya nice score

JonathanSutton (5)

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

SamuelSaid (12)

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

mcro (0)

blocked for me

GhostKing007 (138)

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

JBloves27 (1878)

cactus go brrr @GhostKing007

codingcactus (no ping :D)

GhostKing007 (138)

@JBloves27 pterodactyl go brrr

why codingcactus lol?

VulcanWM (2758)

Hey can you help me with the js of a game I am making?

GhostKing007 (138)

@VulcanWM ah ok, invite me to the repl when u need help

FlaminHotValdez (683)

@GhostKing007 @VulcanWM So are we using GhostKing's repl or our team for demigod battle simulator?

GhostKing007 (138)

@FlaminHotValdez team repl, I just made the battle mechanic in my repl