Esempio n. 1
0
void drawGame(void)
{
    if (toDraw) {
        arduboy.clear();
        if (state != STATE_PAUSE) {
            drawChips();
            drawFloors();
        }
        drawPlayer();
        drawStrings();
        isBlink = !isBlink;
        toDraw = false;
    }
}
Esempio n. 2
0
void display(){
	clearDisplay();
	setupCamera();
	displayLighting();
	//code here
	drawWalls();
	drawRoof();
	drawBase();
	drawDomes();
	drawFloors();
	glPushMatrix();
	{
		glTranslatef(0,4500,0);
		drawSmallBuilding();
		glTranslatef(0,-8200,0);
		glRotatef(180,0,0,1);
		drawSmallBuilding();
	}glPopMatrix();
	drawMainBuildingBigPillers();
	//drawGrid(GRID_SIZE,CAMERA_DISTANCE,canDrawGrid);
	glutSwapBuffers();
}
Esempio n. 3
0
File: mario.c Progetto: juampi/cs50
void drawPyramids(int pyramid_height)
{
    for(int floor_width = 1; floor_width <= pyramid_height; floor_width++)
        drawFloors(floor_width, pyramid_height);
}