G
G
Googlus2020-08-14 22:29:03
JavaScript
Googlus, 2020-08-14 22:29:03

How to fix width in offline chrome dino?

Hello!

I took the t-rex code from chrome, gave it a width of 1100px before the start everything is displayed fine.
But during the game, the field "breaks", then appears. Cacti and pterodactyls appear from the very right edge and there are no problems with them.

7a68cb0a23.jpg

3ac15e42c6.jpg

The sprite's width is much larger than 1100px.

Tell me how to fix this?

PS change var DEFAULT_WIDTH = 600; gives nothing.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question