Changeset 6799 for 2015/27


Ignore:
Timestamp:
2015-07-03 12:25:36 (8 years ago)
Author:
miausilj
Message:
 
Location:
2015/27/MiroS/Raiskintapeli
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • 2015/27/MiroS/Raiskintapeli/Raiskintapeli/Raiskintapeli/TankkiPeli.cs

    r6780 r6799  
    2828        Level.Height = Screen.Height; 
    2929 
     30        tankkienLkm = tankkienLkm * vaikeusaste; 
    3031        //Level.CreateBorders(); 
    3132        LuoKentta(kentanNimi);   
     
    157158    void LuoMappi(int vaikeusaste) 
    158159    { 
    159         for (int i = 0; i < tankkienLkm * vaikeusaste; i++) 
     160        for (int i = 0; i < tankkienLkm; i++) 
    160161        { 
    161162            LuoVihulainen(); 
    162163        } 
    163164 
    164         this.tuhotutTankit = new IntMeter(0, 0, vaikeusaste * 1); 
     165        this.tuhotutTankit = new IntMeter(0, 0, tankkienLkm); 
    165166 
    166167        //this.tuhotutTankit.UpperLimit += delegate { 
     
    169170        //    Begin(); 
    170171        //}; 
    171  
    172         tuhotutTankit.AddTrigger(vaikeusaste * (tankkienLkm - 1), TriggerDirection.Up, delegate (int arvo) { 
     172        tuhotutTankit.UpperLimit += delegate { 
    173173            SeuraavaKentta(); 
    174174            vaikeusaste++; 
    175175            Begin(); 
    176         }); 
     176        }; 
    177177    } 
    178178    void SeuraavaKentta() 
     
    182182            kentanNimi = "kentta2"; 
    183183        } 
    184         else if (kentanNimi == "kentta2") 
    185         { 
    186             kentanNimi = "kentta3"; 
    187         } 
    188184        else 
    189185        { 
    190186            Exit(); 
     187 
    191188        } 
    192189    } 
     
    233230         
    234231         
    235         Level.Background.Color = Color.Orange; 
     232        Level.Background.Color = Color.Black; 
    236233 
    237234 
  • 2015/27/MiroS/Raiskintapeli/Raiskintapeli/Raiskintapeli/obj/x86/Debug/ContentPipeline-{81739508-248F-43AA-A768-73E659A05863}.xml

    r6780 r6799  
    4545      <Options>None</Options> 
    4646      <Output>C:\MyTemp\MiroS\Raiskintapeli\Raiskintapeli\Raiskintapeli\bin\x86\Debug\Content\kentta1.xnb</Output> 
    47       <Time>2015-07-02T14:34:55.6913156+03:00</Time> 
     47      <Time>2015-07-03T12:05:10.4867553+03:00</Time> 
    4848    </Item> 
    4949    <Item> 
     
    5454      <Options>None</Options> 
    5555      <Output>C:\MyTemp\MiroS\Raiskintapeli\Raiskintapeli\Raiskintapeli\bin\x86\Debug\Content\Kentta2.xnb</Output> 
    56       <Time>2015-07-03T10:50:40.6513553+03:00</Time> 
     56      <Time>2015-07-03T12:24:11.3233553+03:00</Time> 
    5757    </Item> 
    5858    <BuildSuccessful>true</BuildSuccessful> 
Note: See TracChangeset for help on using the changeset viewer.