1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
void drawBox(unsigned int x, unsigned int y, unsigned int width, unsigned int height, unsigned int color)
{
// Use low level code here to make a box
}
void drawCircle(unsigned int x, unsigned int y, unsigned int radius, int color)
{
// Use low level code here to make a circle
}
void drawCircleInsideBox(unsigned int x, unsigned int y, unsigned int radius, int boxColor, int circleColor)
{
drawCircle(x, y, circleColor);
drawBox(x - radius, y - radius, radius * 2, radius * 2, boxColor);
}
// etc..
// Insert more basic shapes
// etc..
void drawPlayer(int x, int y)
{
// Use your shapes to draw a player representation
}
|