Computer Science Canada Drawing a box exactly where you want it? |
Author: | vdemons [ Tue May 10, 2011 10:41 pm ] |
Post subject: | Drawing a box exactly where you want it? |
I am trying to make multiple boxes for a game I am working on, forcibly using the drawbox (x1, y1, x2, y2, Color : int) command. I want to make a piano out of a series of boxes but i don't know where the coordinates for the box end up, is there an easier way to do this, maybe a visual grid showing the coordinates or something cause my teacher wants me to use the drawbox command. Please and Thank you in Advance! |
Author: | RandomLetters [ Tue May 10, 2011 10:59 pm ] |
Post subject: | RE:Drawing a box exactly where you want it? |
The coordinates are in pixels, with 0,0 in the bottom left corner, so it's like a graph grid. You can use maxx and maxy to get the coordinate at the edge of the screen. |