- Timestamp:
- 2015-06-09 18:23:29 (8 years ago)
- Location:
- 2015/24/ohjaajat/Dungeon
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/24/ohjaajat/Dungeon/Dungeon/Dungeon/Dungeon.cs
r5964 r5965 67 67 } 68 68 69 LuoSpawn(); 70 69 71 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 70 72 Keyboard.Listen(Key.F1, ButtonState.Pressed, Begin, null); 73 } 74 75 void LuoSpawn() 76 { 77 Room spawnHuone = huoneet[(int)(huoneet.GetLength(0) * 0.5), 0]; 78 spawnHuone.Image = null; 79 spawnHuone.Dug = true; 80 81 Direction oviSuunta = ((spawnHuone.Position - new Vector(0, RUUDUN_KOKO * 0.5)).Angle.MainDirection); 82 spawnHuone.Walls[oviSuunta].Image = reikaSeinaKuva; 71 83 } 72 84
Note: See TracChangeset
for help on using the changeset viewer.