Quantcast
Channel: 2D Latest Topics
Viewing all articles
Browse latest Browse all 623

Canvas elements responsive

$
0
0

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.


Viewing all articles
Browse latest Browse all 623

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>