Ignore:
Timestamp:
2015-06-09 18:23:29 (8 years ago)
Author:
empaheik
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2015/24/ohjaajat/Dungeon/Dungeon/Dungeon/Dungeon.cs

    r5964 r5965  
    6767        } 
    6868 
     69        LuoSpawn(); 
     70 
    6971        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    7072        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; 
    7183    } 
    7284 
Note: See TracChangeset for help on using the changeset viewer.