Saturday 4 January 2014

Screen Resolutions

During the testing i realised not every phone has the same screen resolution, so heres my first task.

So another google got me to this page. Now i obviously don't want to use the whole tutorial here i just want to know how to get the resolution. 

I used the first bit of code on that tutorial to give me variables for both the width and the height and i put it into the rooms creation code. To test it had worked i made an object that would draw the variable and sure enough it all worked to my surprise.

Now i went back to the creation code of the room and made it so that it set the room size the same as the variable when it launched. That was my first task, sorted as simple as that.

-
T
S

No comments:

Post a Comment