9 years ago by Bum
I'm scaling the canvas element so sometimes the canvas extends beyond the width of the room. I want the center of the room to be the center on the browser's screen.
For instance, I have a character intro where enemies march out to the left of the screen followed by their nicknames that display on the center. Spent a good time trying to figure out why the text wasn't centered on the screen. Then I realized it was! It's just that the intro room is more to the left of the screen than I intended. Had a good chuckle.
Any advice?
For instance, I have a character intro where enemies march out to the left of the screen followed by their nicknames that display on the center. Spent a good time trying to figure out why the text wasn't centered on the screen. Then I realized it was! It's just that the intro room is more to the left of the screen than I intended. Had a good chuckle.
Any advice?