Answer the question
In order to leave comments, you need to log in
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.
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 questionAsk a Question
731 491 924 answers to any question