Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Temple Run Breakdown

This question is about understanding how a game like temple run might be implemented in HTML with/without using the canvas. I have a vague idea about how swipeLeft, swipeRight etc. might be implemented. But I am not able to gauge how the environments might be developed.

I am not asking for any help with the code here .I just want to have your opinions about implementing the environment. Is it just one huge sprite? If so, how will the user see random environments in the game each time he spawns?

like image 545
Harsha Venkatram Avatar asked Apr 30 '26 21:04

Harsha Venkatram


1 Answers

It is not a single sprite. Assuming we're talking about the same Temple Run, it's a 3D game, probably using OpenGL. The fog effect means the game doesn't have to render objects in the distance. If you want to make a similar game, I suggest you look at one of the fine 3D game platforms available for Android and/or iOS.

You can do 3D games in HTML, and there are libraries that help, but unless you're making a website and not a mobile app, then it's better to do it native.

like image 85
Yusuf X Avatar answered May 03 '26 10:05

Yusuf X



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!