The chrome trex game!
I re-made the Trex game!
Hey repl.it! I made the trex game using p5.js! I totally recommend it for animation! I'm going to add sound soon, so stay tuned for that! Love you guys! Peace. (oh and btw this is the part where i have really bad grammar on purpose to annoy you ppl so rate it out of ten in the comment section)
I made another version about 10 months ago, a bit more gravity but really good job. https://T-rex.9532228.repl.co
@9532228 jeez you have so many Repls but never post xD.
@9532228 would love to see you around Repl Talk!
Thanks! @9532228
dude @HeadSucksAtLife
@LTI2 ikr! Very buggy because of the cactus images.
Sorry I’ll make the debug square smaller @LTI2
Its to set up all the p5.js files @lightningrock
i know, but the format?!
@HeadSucksAtLife
Sorry lol @lightningrock
@lightningrock Finally, someone who cares about formatting too! Lol.
@HeadSucksAtLife Btw, please defer the execution of any ECMAScript until after the DOM is done being parsed.
This game is basically T-REX DINO GAME but, 0.5x speed
Thats wut its supposed to be lol @abdullahrajput9
But 0.5 x kinda slow NGL @HeadSucksAtLife
Sorry @abdullahrajput9
y u do this to me [email protected]
A little laggy but great
Thanks @peternielsen112
Lol thanks @InvisibleOne
@HeadSucksAtLife How do u make ur PFP that?
It is better that the usual game. I mean the animation is good. I like it!
Thanks dude! I really appreciate it @GEISTCODER
Can it be run offline, though?
@Axrevyn sadly, no
@HeadSucksAtLife make a webmanifest to let it run offline!
I was going way to fast so i just gave up
lol @ConorTseng
It's still cool tho!
Thank you! @HarnamanKhaira
What is the highest score? If there is one
HAHA! I love it.
Thanks!! @elijahnik1
score 4793
wow, mad respect to you. @ConorTseng
Someone created that for me when I asked them to upload sounds @Bookie0
@HeadSucksAtLife ummm that isn't from the sounds file, it's from the p5.dom.in.js
file..
No its for the sounds files which i haven't yet imported @Bookie0
@HeadSucksAtLife hummm you should cite ur sources then..
how do u even jump?
space key @ilovebeef
dude I'm an idiot @HeadSucksAtLife
What? @ilovebeef
im an idiot or not knowing [email protected]
oh lol @ilovebeef
Hey @HeadSucksAtLife, well done! Your game is great. I think it would be good if you centred the game in the middle of the screen. All you have to do is update the body in style.css, like this:
body { margin: 0; padding: 0; display: flex; align-items: center; flex-direction: column; justify-content: center; height: 100vh; }
Okay! tysm! @RolandJLevy
@HeadSucksAtLife np! :)
nice
Thanks @gwynethwingell
Great repl! But I dont really like the font. Looks too simple, just insert this into the CSS and you got an 8-bit font! Also its the same one used in the real dino game.
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap'); body { font-family: 'Press Start 2P'; }
Okay, thank you!! @CarlosRosiles
Sadly, @CarlosRosiles it isn't working.
@HeadSucksAtLife oh. Worked for me. Maybe because I dont really see any normal HTML. Everything must be in the javascript files.
for p5, its something like:
font = loadFont("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap"); // ^^ put that in preload ^^ // VV use this VV textFont(font);
Yeh @CarlosRosiles
After I used that, the game got stuck at 'loading...'@Coder100
Can’t you just do chrome://dino
on any chrome browser??? Why make a Repl?
I was bored and wanted to increase my mind's capacity... @RayhanADev
@HeadSucksAtLife lol you need to fix these things to make it truly chrome dinosaur
- ground moves faster than cactus
- cant control jump height
- only space bar works for jumping
- no pterosaurs :(
- no ducking
also yes pls fix the font it burns my eyes
Yessir! @realTronsi
Can't you just do:
<wifi="off"> <a href="google.ca">dino game</a>
LOL @DynamicSquid
@DynamicSquid Can't you just check the open source Chromium C++ files until you find the source and just take it?
(I may or may not have done this, and it may or may not currently be one of my Repls)
i don't get this
@ch1cken cactus images weren’t cut properly because of lazy image editing xD.
D:< @RayhanADev
yea that art got me too @ch1cken