So basically i’m just trying to make a card game. I’ve got the prototype in Codea running on an Ipad in landscape mode, but I’m having difficulty figuring out what the card dimensions should be for an iphone in either landscape or portrait mode. Here is the project that i posted days ago (https://codea.io/talk/discussion/8198/card-game-dropbox-zip-file-no-installer#latest)
What i did do was make a big list by hand of x, y, x2, y2 values for each potential card, but only In ipad Landscape mode.
There are up to 16 cards, as well as one deck. So seventeen tables of x,y,x2, y2 values. REALLY don’t want to rewrite this by hand for each possible screen orientation and device. I thought I could try making a function to generate this automatically, but no luck - is beyond my knowledge. help?
P.s. I haven’t decided what width and height of cards would be good to fit on a phone screen. I was using 140 x 196 on the iPad, but on a phone screen (320x480) that will not fit. Maybe 70 x 98? The hard part is trying to figure out where everything should go. I don’t want to use any magnification or scrolling, rather just have everythiing fit on screen. If not possible, then… well, function first, practicality after, with a function like that it would still make this easier
P.s.s. Do i have to program again for the dimensions of an iphone 6+ screen? Or is it automatically scaled up from a normal iphone screen?