Exemplo n.º 1
0
 protected override void OnLoad(EventArgs e)
 {
     base.OnLoad(e);
     GL.Enable(EnableCap.Texture2D);
     _textures[0] = new TextureLoader().LoadTexture("wood.jpg");
     _textures[1] = new TextureLoader().LoadTexture("water.jpeg");
     _textures[2] = new TextureLoader().LoadTexture("persKover1.png");
     _textures[3] = new TextureLoader().LoadTexture("grass.jpg");
     _textures[4] = new TextureLoader().LoadTexture("dog1.png");
     _textures[5] = new TextureLoader().LoadTexture("fireball2.png");
     _textures[6] = new TextureLoader().LoadTexture("dust1.png");
     _textures[7] = new TextureLoader().LoadTexture("Cancer1.png");
     _textures[8] = new TextureLoader().LoadTexture("portal1.png");
     roomDrawer = new RoomDrawer(_textures);
     playerDrawer = new PlayerDrawer(_textures);
 }
Exemplo n.º 2
0
 protected override void OnLoad(EventArgs e)
 {
     base.OnLoad(e);
     GL.Enable(EnableCap.Texture2D);
     _textures[0]  = new TextureLoader().LoadTexture("Textures/wood.png");
     _textures[1]  = new TextureLoader().LoadTexture("Textures/water.png");
     _textures[2]  = new TextureLoader().LoadTexture("Textures/Kover.png");
     _textures[3]  = new TextureLoader().LoadTexture("Textures/grass.png");
     _textures[4]  = new TextureLoader().LoadTexture("Textures/DogLeft.png");
     _textures[5]  = new TextureLoader().LoadTexture("Textures/fireball2.png");
     _textures[6]  = new TextureLoader().LoadTexture("Textures/dust1.png");
     _textures[7]  = new TextureLoader().LoadTexture("Textures/CancerLeft.png");
     _textures[8]  = new TextureLoader().LoadTexture("Textures/portal1.png");
     _textures[9]  = new TextureLoader().LoadTexture("Textures/Boot.png");
     _textures[10] = new TextureLoader().LoadTexture("Textures/Arka11.png");
     _textures[11] = new TextureLoader().LoadTexture("Textures/Arka21.png");
     _textures[12] = new TextureLoader().LoadTexture("Textures/Arka31.png");
     _textures[13] = new TextureLoader().LoadTexture("Textures/Arka41.png");
     _textures[14] = new TextureLoader().LoadTexture("Textures/Background.png");
     _textures[15] = new TextureLoader().LoadTexture("Textures/newgame.png");
     _textures[16] = new TextureLoader().LoadTexture("Textures/CancerRight.png");
     _textures[17] = new TextureLoader().LoadTexture("Textures/DogRight.png");
     _textures[18] = new TextureLoader().LoadTexture("Textures/Pizza.png");
     _textures[19] = new TextureLoader().LoadTexture("Textures/BigHeart.png");
     _textures[20] = new TextureLoader().LoadTexture("Textures/Glasses.png");
     _textures[21] = new TextureLoader().LoadTexture("Textures/Zelie.png");
     _textures[22] = new TextureLoader().LoadTexture("Textures/Pulemet.png");
     _textures[23] = new TextureLoader().LoadTexture("Textures/Milk.png");
     _textures[24] = new TextureLoader().LoadTexture("Textures/Molotok.png");
     _textures[25] = new TextureLoader().LoadTexture("Textures/Heart.png");
     _textures[26] = new TextureLoader().LoadTexture("Textures/WolfLeft.png");
     _textures[27] = new TextureLoader().LoadTexture("Textures/WolfRight.png");
     _textures[28] = new TextureLoader().LoadTexture("Textures/SnakeLeft.png");
     _textures[29] = new TextureLoader().LoadTexture("Textures/SnakeRight.png");
     _textures[30] = new TextureLoader().LoadTexture("Textures/TreeLeft.png");
     _textures[31] = new TextureLoader().LoadTexture("Textures/TreeRight.png");
     _textures[32] = new TextureLoader().LoadTexture("Textures/SkeletonLeft.png");
     _textures[33] = new TextureLoader().LoadTexture("Textures/SkeletonRight.png");
     _textures[34] = new TextureLoader().LoadTexture("Textures/GhostLeft.png");
     _textures[35] = new TextureLoader().LoadTexture("Textures/GhostRight.png");
     _textures[36] = new TextureLoader().LoadTexture("Textures/PoisonLeft.png");
     _textures[37] = new TextureLoader().LoadTexture("Textures/PoisonRight.png");
     _textures[38] = new TextureLoader().LoadTexture("Textures/JeludLeft.png");
     _textures[39] = new TextureLoader().LoadTexture("Textures/JeludRight.png");
     _textures[40] = new TextureLoader().LoadTexture("Textures/Grass1.png");
     _textures[41] = new TextureLoader().LoadTexture("Textures/Bone.png");
     _textures[42] = new TextureLoader().LoadTexture("Textures/Energy.png");
     _textures[43] = new TextureLoader().LoadTexture("Textures/StoneFloor1.png");
     _textures[44] = new TextureLoader().LoadTexture("Textures/StoneFloor2.png");
     _textures[45] = new TextureLoader().LoadTexture("Textures/StoneWall1.png");
     _textures[46] = new TextureLoader().LoadTexture("Textures/StoneWall2.png");
     _textures[47] = new TextureLoader().LoadTexture("Textures/DeathLeft.png");
     _textures[48] = new TextureLoader().LoadTexture("Textures/DeathRight.png");
     _textures[49] = new TextureLoader().LoadTexture("Textures/MelLeft.png");
     _textures[50] = new TextureLoader().LoadTexture("Textures/MelRight.png");
     _textures[51] = new TextureLoader().LoadTexture("Textures/BlackboardLeft.png");
     _textures[52] = new TextureLoader().LoadTexture("Textures/BlackboardRight.png");
     _textures[53] = new TextureLoader().LoadTexture("Textures/Bag1Left.png");
     _textures[54] = new TextureLoader().LoadTexture("Textures/Bag1Right.png");
     _textures[55] = new TextureLoader().LoadTexture("Textures/BagLeft.png");
     _textures[56] = new TextureLoader().LoadTexture("Textures/BagRight.png");
     _textures[57] = new TextureLoader().LoadTexture("Textures/BookLeft.png");
     _textures[58] = new TextureLoader().LoadTexture("Textures/Linoleum.png");
     _textures[59] = new TextureLoader().LoadTexture("Textures/SchoolWall.png");
     _textures[60] = new TextureLoader().LoadTexture("Textures/Newgameh.png");
     _textures[61] = new TextureLoader().LoadTexture("Textures/Continue.png");
     _textures[62] = new TextureLoader().LoadTexture("Textures/Continueh.png");
     _textures[63] = new TextureLoader().LoadTexture("Textures/Exit.png");
     _textures[64] = new TextureLoader().LoadTexture("Textures/Exith.png");
     _textures[65] = new TextureLoader().LoadTexture("Textures/Controls.png");
     _textures[66] = new TextureLoader().LoadTexture("Textures/Controlsh.png");
     _textures[67] = new TextureLoader().LoadTexture("Textures/Mainmenu.png");
     _textures[68] = new TextureLoader().LoadTexture("Textures/Mainmenuh.png");
     _textures[69] = new TextureLoader().LoadTexture("Textures/LeverLeft.png");
     _textures[70] = new TextureLoader().LoadTexture("Textures/LeverMid.png");
     _textures[71] = new TextureLoader().LoadTexture("Textures/LeverRight.png");
     _textures[72] = new TextureLoader().LoadTexture("Textures/ControlBackground.png");
     _textures[73] = new TextureLoader().LoadTexture("Textures/Win.png");
     _textures[74] = new TextureLoader().LoadTexture("Textures/Lose1.png");
     _textures[75] = new TextureLoader().LoadTexture("Textures/Paper.png");
     _textures[76] = new TextureLoader().LoadTexture("Textures/Task1.png");
     _textures[77] = new TextureLoader().LoadTexture("Textures/Task2.png");
     _textures[78] = new TextureLoader().LoadTexture("Textures/DamageText.png");
     _textures[79] = new TextureLoader().LoadTexture("Textures/SpeedText.png");
     _textures[80] = new TextureLoader().LoadTexture("Textures/RangeText.png");
     _textures[81] = new TextureLoader().LoadTexture("Textures/EmptyHeart.png");
     _textures[82] = new TextureLoader().LoadTexture("Textures/Arkac11.png");
     _textures[83] = new TextureLoader().LoadTexture("Textures/Arkac21.png");
     _textures[84] = new TextureLoader().LoadTexture("Textures/Arkac31.png");
     _textures[85] = new TextureLoader().LoadTexture("Textures/Arkac41.png");
     _textures[86] = new TextureLoader().LoadTexture("Textures/BoyLeft.png");
     _textures[87] = new TextureLoader().LoadTexture("Textures/BoyRight.png");
     _textures[88] = new TextureLoader().LoadTexture("Textures/NextRooms.png");
     _textures[89] = new TextureLoader().LoadTexture("Textures/ThisRoom.png");
     Console.WriteLine("Textures were loaded");
 }