Changeset 7838 for 2016


Ignore:
Timestamp:
2016-07-06 09:51:50 (3 years ago)
Author:
jotapoti
Message:

vihollisilla on aivot ja vihut pomppivat

Location:
2016/27/JouniP/VenienteFragore/VenienteFragore
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/JouniP/VenienteFragore/VenienteFragore/VenienteFragore/VenienteFragore.cs

    r7837 r7838  
    5757    { 
    5858        // TODO lisaa tekoaly talle ilkealle tyypille! 
    59         PhysicsObject tyyppi = new PhysicsObject(leveys, korkeus); 
     59        PlatformCharacter tyyppi = new PlatformCharacter(leveys, korkeus); 
    6060        tyyppi.Position = paikka; 
    6161        tyyppi.Image = ilkeanOmenanKuva; 
    6262        tyyppi.Tag = "pahis"; 
    6363        Add(tyyppi); 
     64 
     65        PlatformWandererBrain tasoAivot = new PlatformWandererBrain(); 
     66        tasoAivot.Speed = 100; 
     67        tasoAivot.FallsOffPlatforms = true; 
     68        tasoAivot.TriesToJump = true; 
     69        tyyppi.Brain = tasoAivot; 
     70         
     71 
    6472    } 
    6573    void LisaaLuola(Vector paikka, double leveys, double korkeus) 
  • 2016/27/JouniP/VenienteFragore/VenienteFragore/VenienteFragore/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml

    r7774 r7838  
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\JouniP\VenienteFragore\VenienteFragore\VenienteFragore\bin\x86\Debug\Content\kentta1.xnb</Output> 
    38       <Time>2016-07-05T12:56:24.6561004+03:00</Time> 
     38      <Time>2016-07-06T09:51:04.7072654+03:00</Time> 
    3939    </Item> 
    4040    <Item> 
  • 2016/27/JouniP/VenienteFragore/VenienteFragore/VenienteFragoreContent/kentta1.txt

    r7774 r7838  
    22.........##......................... 
    33.................................... 
    4 .......*....*....................... 
     4.......*z...*....................... 
    55.......##..##....................... 
    66.................................... 
     
    1212.................................... 
    1313.*....*.......*...*................. 
    14 .##..##..##..##..##..*********...... 
     14.##..##......##..##..*********...... 
    1515.............O....***********....... 
    16 ......z....N.......************...O. 
     16......z..#.N.......************...O. 
    1717#################################### 
Note: See TracChangeset for help on using the changeset viewer.