Jump to content

Canvas elements responsive


function
 Share

Recommended Posts

Hi guys. I am new here and new in canvas gaming development.

I want to ask how to change the whole "structure" of a drawn layout according to media queries. E.g.

Say we have drawn 3 rectangles of 100px each and all are next to each other. How could we tell the first one to occupy 300px (thus a whole row) and the other two to go below it and occupy 50% percent of the canvas width ( something like css media queries...)???

 

Thanks in advance.

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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