Jump to content

How to rotate canvas


Recommended Posts

Greetings everyone,

I always wanted to create my own game but I never took a time to learn how to do it.

Today, I find myself on a college project where I have to create a game then I've chosen Phaser to help me.

So... I'm creating a game of a spaceship that must dodge from falling rocks.

This game must run on a tablet and on a smartphone properly.

I want it to be displayed always in a portrait orientation. 

This is how its looking on the browser



How to rotate the canvas to the right when the game is open on a screen that has its width greater than its height?




Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...