Changeset 5407 for 2014/27


Ignore:
Timestamp:
2014-07-04 10:29:17 (9 years ago)
Author:
novaanan
Message:
 
Location:
2014/27/NoelV/turhakepeli/turhakepeli
Files:
2 added
10 edited

Legend:

Unmodified
Added
Removed
  • 2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/obj/x86/Debug/ContentPipeline-{8C608BBB-CC9B-467B-9EA1-3FA736E42C66}.xml

    r5383 r5407  
    163163      <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\kentta02.xnb</Output> 
    164164      <Time>2014-07-03T14:24:58.5133324+03:00</Time> 
     165    </Item> 
     166    <Item> 
     167      <Source>kentta03.png</Source> 
     168      <Name>kentta03</Name> 
     169      <Importer>TextureImporter</Importer> 
     170      <Processor>TextureProcessor</Processor> 
     171      <Options>None</Options> 
     172      <Output>C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\kentta03.xnb</Output> 
     173      <Time>2014-07-04T09:44:22.5863438+03:00</Time> 
    165174    </Item> 
    166175    <BuildSuccessful>true</BuildSuccessful> 
  • 2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/obj/x86/Debug/cachefile-{8C608BBB-CC9B-467B-9EA1-3FA736E42C66}-targetpath.txt

    r5383 r5407  
    1717Content\kuollut.xnb 
    1818Content\kentta02.xnb 
     19Content\kentta03.xnb 
    1920Content\pelaaja.png 
    2021Content\kentta.png 
  • 2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/obj/x86/Debug/turhakepeli.csproj.FileListAbsolute.txt

    r5383 r5407  
    5858C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\vasenYla.png 
    5959C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\pelaajaHyokkaa.png 
     60C:\MyTemp\NoelV\turhakepeli\turhakepeli\turhakepeli\bin\x86\Debug\Content\kentta03.xnb 
  • 2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/turhakepeli.cs

    r5383 r5407  
    107107    { 
    108108        IsPaused = true; 
    109         MultiSelectWindow valikko = new MultiSelectWindow("menu", "back to game", "quit game"); 
     109        MultiSelectWindow valikko = new MultiSelectWindow("Pause", "back to game", "quit game"); 
    110110        valikko.AddItemHandler(1, Exit); 
    111111        valikko.AddItemHandler(0, delegate { IsPaused = false; }); 
     
    122122        //ClearAll(); 
    123123         
    124         // TODO kuollessa kertaa zoomin ja kaikkee 
    125  
     124        // TODO kuollessa kertaa zoomin ja tekee kaikkee 
     125        vihollistenMaara = new IntMeter(0, 0, 0); 
    126126        vihollistenMaara.Value = 0; 
    127127        vihollistenMaara.MaxValue = 0; 
     
    134134 
    135135        //1. Luetaan kuva uuteen ColorTileMappiin, kuvan nimen perässä ei .png-päätettä. 
    136         ColorTileMap ruudut = ColorTileMap.FromLevelAsset(RandomGen.SelectOne("kentta", "kentta02")); 
     136        ColorTileMap ruudut = ColorTileMap.FromLevelAsset(RandomGen.SelectOne("kentta", "kentta02", "kentta03")); 
    137137 
    138138        //2. Kerrotaan mitä aliohjelmaa kutsutaan, kun tietyn värinen pikseli tulee vastaan kuvatiedostossa. 
     
    279279        vihollinen.Position = paikka; 
    280280        Add(vihollinen); 
     281        vihollinen.CanRotate = false; 
    281282        vihollinen.Restitution = 1.5; 
    282283        vihollinen.Tag = "vihu"; 
     
    285286        FollowerBrain seuraajanAivot = new FollowerBrain(pelaaja); 
    286287        seuraajanAivot.Speed = 50.0; 
    287         seuraajanAivot.DistanceClose = 200; 
     288        seuraajanAivot.DistanceFar = 300; 
     289        seuraajanAivot.DistanceClose = 50; 
    288290        seuraajanAivot.TargetClose += delegate 
    289291        { 
     
    296298        vihollistenMaara.MaxValue++; 
    297299        vihollistenMaara.Value = vihollistenMaara.MaxValue; 
     300 
     301        RandomMoverBrain kaukanaAivot = new RandomMoverBrain(); 
     302        kaukanaAivot.Speed = 50.0; 
     303        kaukanaAivot.TurnWhileMoving = true; 
     304 
     305        seuraajanAivot.FarBrain = kaukanaAivot; 
    298306         
    299307    } 
     
    302310        //MessageDisplay.Add("Läpäisit kentän"); 
    303311        ClearAll(); 
     312        vihollistenMaara.ClearTriggers(); 
    304313        AloitaPeli(); 
    305314    } 
     
    490499         energiaPalkki.Y = Screen.Top - 50; 
    491500         energiaPalkki.BindTo(energiaLaskuri); 
    492          energiaPalkki.Color = Color.Blue; 
     501 
     502         energiaPalkki.BarColor = Color.Blue; 
    493503     
    494504         Add(energiaPalkki); 
    495          energiaPalkki.Color = Color.Blue; 
     505        
    496506     } 
     507     void LuoEnkka() 
     508     { 
     509        // PhysicsObject enkka = new PhysicsObject(Vector paikka, double leveys, double korkeus); 
     510        // enkka.Position = paikka; 
     511     } 
     512 
    497513    
    498514    
  • 2014/27/NoelV/turhakepeli/turhakepeli/turhakepeli/turhakepeli.csproj.Debug.cachefile

    r5383 r5407  
    1717Content\kuollut.xnb 
    1818Content\kentta02.xnb 
     19Content\kentta03.xnb 
     20Content\pelaaja.png 
     21Content\kentta.png 
     22Content\valikko.png 
     23Content\hyokkaus.png 
     24Content\hahmo01.png 
     25Content\hahmo02.png 
     26Content\maa.png 
     27Content\ala.png 
     28Content\Sivu.png 
     29Content\oikeaYla.png 
     30Content\SivuOikea.png 
     31Content\oikeaAla.png 
     32Content\vasenAla.png 
     33Content\vasenYla.png 
     34Content\pelaajaHyokkaa.png 
     35Content\kuollut.png 
     36Content\kentta02.png 
  • 2014/27/NoelV/turhakepeli/turhakepeli/turhakepeliContent/turhakepeliContent.contentproj

    r5383 r5407  
    188188    </Compile> 
    189189  </ItemGroup> 
     190  <ItemGroup> 
     191    <Compile Include="kentta03.png"> 
     192      <Name>kentta03</Name> 
     193      <Importer>TextureImporter</Importer> 
     194      <Processor>TextureProcessor</Processor> 
     195    </Compile> 
     196  </ItemGroup> 
    190197  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    191198  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
Note: See TracChangeset for help on using the changeset viewer.