Changeset 6116 for 2015/24


Ignore:
Timestamp:
2015-06-21 19:11:19 (8 years ago)
Author:
sieerinn
Message:
 
File:
1 edited

Legend:

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

    r6115 r6116  
    381381        barbaariAjastin = new Timer(); 
    382382        barbaarit = new List<Barbaari>(); 
     383        spawnit.Clear(); 
    383384 
    384385        Kontrollit(); 
     
    400401        } 
    401402 
    402         LuoSpawn(); 
     403        LuoSpawn(huoneet.GetLength(0) / 2, 0); 
    403404 
    404405        sykliAjastin = new Timer { Interval = 1.0 }; 
     
    749750    } 
    750751 
    751     void LuoSpawn() 
    752     { 
    753         var spawn = huoneet[(int)(huoneet.GetLength(0) * 0.5), 0]; 
     752    void LuoSpawn(int x, int y) 
     753    { 
     754        var spawn = huoneet[x, y]; 
    754755        spawn.Dug = true; 
    755756        spawnit.Add(spawn); 
Note: See TracChangeset for help on using the changeset viewer.