Skip to content
Sign upLog in
← Back to Community

The chrome trex game!

Profile icon
[deleted]

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)

Voters
Profile icon
maxina
Profile icon
thisisnotfu
Profile icon
Jasperscode
Profile icon
tobycurrie1
Profile icon
BCP
Profile icon
TheRussianRuss1
Profile icon
InvisibleOne
Profile icon
arnavratna
Profile icon
TheOceanFace
Profile icon
DominicHuieWhit
Comments
hotnewtop
Profile icon
ch1ck3n

image


i don't get this

Profile icon
RayhanADev

@ch1cken
cactus images weren’t cut properly because of lazy image editing xD.

Profile icon
[deleted]

D:<

@RayhanADev

Profile icon
GEISTCODER

yea that art got me too

@ch1cken

Profile icon
9532228

I made another version about 10 months ago, a bit more gravity but really good job. https://T-rex.9532228.repl.co

Profile icon
RayhanADev

@9532228
jeez you have so many Repls but never post xD.

Profile icon
RayhanADev

@9532228
would love to see you around Repl Talk!

Profile icon
[deleted]

Thanks!

@9532228

Profile icon
LTI2

Screen Shot 2020-11-05 at 5.10.41 PM


dude
@HeadSucksAtLife

Profile icon
RayhanADev

@LTI2
ikr! Very buggy because of the cactus images.

Profile icon
[deleted]

Sorry I’ll make the debug square smaller

@LTI2

Profile icon
lightningrock

What even is this html
image

Profile icon
[deleted]

Its to set up all the p5.js files

@lightningrock

Profile icon
lightningrock

i know, but the format?!


@HeadSucksAtLife

Profile icon
[deleted]

Sorry lol

@lightningrock

Profile icon
xxpertHacker

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

Profile icon
OldWizard209

This game is basically T-REX DINO GAME but, 0.5x speed

Profile icon
[deleted]

Thats wut its supposed to be lol

@abdullahrajput9

Profile icon
OldWizard209

But 0.5 x kinda slow NGL

@HeadSucksAtLife

Profile icon
[deleted]

Sorry

@abdullahrajput9

Profile icon
[deleted]

great game but...
Screenshot 2020-11-10 at 1.23.20 PM

Profile icon
[deleted]

y u do this to me [email protected]

Profile icon
peternielsen112

A little laggy but great

Profile icon
[deleted]

Thanks

@peternielsen112

Profile icon
InvisibleOne

Nice game

Screen Shot 2020-11-08 at 2.03.52 PM

Profile icon
[deleted]

Lol thanks

@InvisibleOne

Profile icon
InvisibleOne

np

@HeadSucksAtLife

Profile icon
AZ7

Screen Shot 2020-11-08 at 9.23.30 AM

I got a score of 940

Profile icon
[deleted]

Pog

@AZ7

Profile icon
dudeactualdev

@HeadSucksAtLife
How do u make ur PFP that?

Profile icon
[deleted]

pog

@RyanGardiner1

Profile icon
GEISTCODER

It is better that the usual game. I mean the animation is good. I like it!

Profile icon
[deleted]

Thanks dude! I really appreciate it

@GEISTCODER

Profile icon
GEISTCODER

:)

@HeadSucksAtLife

Profile icon
Axrevyn

Can it be run offline, though?

Profile icon
[deleted]

@Axrevyn
sadly, no

Profile icon
ch1ck3n

@HeadSucksAtLife
make a webmanifest to let it run offline!

Profile icon
[deleted]

I was going way to fast so i just gave up

Profile icon
[deleted]

lol

@ConorTseng

Profile icon
HarnamanKhaira

It's still cool tho!

Profile icon
[deleted]

Thank you!

@HarnamanKhaira

Profile icon
HarnamanKhaira
Profile icon
HarnamanKhaira

What is the highest score? If there is one

Profile icon
elijahnik1

HAHA! I love it.

Profile icon
[deleted]

Thanks!!

@elijahnik1

Profile icon
[deleted]

score 4793

Profile icon
[deleted]

wow, mad respect to you.

@ConorTseng

Profile icon
Bookie0

Screen Shot 2020-11-05 at 10.14.14 AM

bruh what is this lol

Profile icon
[deleted]

Someone created that for me when I asked them to upload sounds

@Bookie0

Profile icon
Bookie0

@HeadSucksAtLife
ummm that isn't from the sounds file, it's from the p5.dom.in.js file..

Profile icon
[deleted]

No its for the sounds files which i haven't yet imported

@Bookie0

Profile icon
Bookie0

@HeadSucksAtLife
hummm you should cite ur sources then..

Profile icon
[deleted]

how do u even jump?

Profile icon
[deleted]

space key

@ilovebeef

Profile icon
[deleted]

dude I'm an idiot

@HeadSucksAtLife

Profile icon
[deleted]

What?

@ilovebeef

Profile icon
[deleted]

im an idiot or not knowing [email protected]

Profile icon
[deleted]

oh lol

@ilovebeef

Profile icon
RolandJLevy

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; }
Profile icon
[deleted]

Okay! tysm!

@RolandJLevy

Profile icon
RolandJLevy

@HeadSucksAtLife
np! :)

Profile icon
zplusfour

cool