I need codes for a simple house (using rectangles, lines and other basic shapes)
It has to be on the ground (bottom)
house with a roof, door and windows
Thanks for any help! :)
Printable View
I need codes for a simple house (using rectangles, lines and other basic shapes)
It has to be on the ground (bottom)
house with a roof, door and windows
Thanks for any help! :)
Take a piece of grid paper and draw the house. Then figure out the coordinates of the end points of all the lines.
Given those points you should be able to call the drawLine() method to draw the house.
The Graphics.fillRect( ... ) method can draw an appartment building; no doors and no windows though ... it's more like a prison building, no matter what Color you're using.
kind regards,
Jos
I've never seen a shocking pink prison building ...
Light blue and orange ain't neither shocking nor pink ;)
You could use Graphics.drawOval(...) for the politicians' heads