示例#1
0
int main(void)
{
    graphics.CreateMainWindow(800, 600, "TileMap Platform Game Example");
    graphics.SetBackgroundColor(152,209,250);

	LoadMap("Map01.txt");
 
    block_glass.LoadPNGImage("grass.png");
    block_terrain.LoadPNGImage("stone.png");
    
	graphics.SetKeyboardInput(KeyboardInput);
 
    graphics.SetMainLoop(MainLoop);
    graphics.StartMainLoop();
    return 0;
}
示例#2
0
int main(void)
{
	graphics.CreateMainWindow(800, 600, "Keyboard Control Example");
	graphics.SetBackgroundColor(152,209,250);

	//Carrega as imagens
	block_floor.LoadPNGImage("car_ground.png");
	car[0].LoadPNGImage("car_down.png");
	car[1].LoadPNGImage("car_left.png");
	car[2].LoadPNGImage("car_up.png");
	car[3].LoadPNGImage("car_right.png");	

	graphics.SetKeyboardInput(KeyboardInput);
	graphics.SetMainLoop(MainLoop);
	graphics.StartMainLoop();
	return 0;
}