Changeset 7881


Ignore:
Timestamp:
2016-07-06 13:27:44 (3 years ago)
Author:
pepihlaj
Message:
 
Location:
2016/27/PekkaP/FinnishTroops
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/PekkaP/FinnishTroops/FinnishTroops/FinnishTroops/FinnishTroops.cs

    r7865 r7881  
    4848    void LisaaPahis(Vector paikka, double leveys, double korkeus) 
    4949    { 
    50         PlatformCharacter pahis = new PlatformCharacter(leveys*0.8, korkeus*0.9); 
     50        Vihu pahis = new Vihu (leveys*0.8, korkeus*0.9); 
    5151        pahis.Image = pahisKuva; 
     52        pahis.Position = paikka; 
    5253        Add(pahis); 
    5354        pahis.Tag = "PahisSotilas"; 
    54  
     55         
    5556        PlatformWandererBrain tasoAivot = new PlatformWandererBrain(); 
    5657        tasoAivot.JumpSpeed = 700; 
     
    6061        pahis.Brain = tasoAivot; 
    6162 
    62     } 
    63     class Vihu : PhysicsObject 
    64     { 
    65         private IntMeter elamaLaskuri = new IntMeter(3, 0, 3); 
    66         public IntMeter ElamaLaskuri { get { return elamaLaskuri; } } 
    67  
    68         public Vihu(double leveys, double korkeus) 
    69             : base(leveys, korkeus) 
    70         { 
    71             elamaLaskuri.LowerLimit += delegate { this.Destroy(); }; 
    72         } 
    7363    } 
    7464 
     
    206196} 
    207197} 
     198 
     199class Vihu : PlatformCharacter 
     200{ 
     201    private IntMeter elamaLaskuri = new IntMeter(3, 0, 3); 
     202    public IntMeter ElamaLaskuri { get { return elamaLaskuri; } } 
     203 
     204    public Vihu(double leveys, double korkeus) 
     205        : base(leveys, korkeus) 
     206    { 
     207        elamaLaskuri.LowerLimit += delegate { this.Destroy(); }; 
     208         
     209    } 
     210} 
     211 
     212class PeliHahmo : PhysicsObject 
     213{ 
     214    public int Elamat { get; set; } 
     215    public bool OnHidas { get; set; } 
     216    public int KenganNumero { get; set; } 
     217    public int Rahat { get; set; } 
     218    public Vector RespausKoordinaatit { get; set; } 
     219 
     220    public PeliHahmo(double leveys, double korkeus) 
     221        : base(leveys, korkeus) 
     222    { 
     223        Elamat = 3; 
     224        OnHidas = false; 
     225        KenganNumero = 42; 
     226        Rahat = 1000; 
     227        RespausKoordinaatit = Vector.Zero; 
     228    } 
     229} 
  • 2016/27/PekkaP/FinnishTroops/FinnishTroops/FinnishTroops/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml

    r7865 r7881  
    4545      <Options>None</Options> 
    4646      <Output>C:\MyTemp\PekkaP\FinnishTroops\FinnishTroops\FinnishTroops\bin\x86\Debug\Content\kentta1.xnb</Output> 
    47       <Time>2016-07-05T14:51:46.5543593+03:00</Time> 
     47      <Time>2016-07-06T13:11:34.6251453+03:00</Time> 
    4848    </Item> 
    4949    <Item> 
  • 2016/27/PekkaP/FinnishTroops/FinnishTroops/FinnishTroopsContent/kentta1.txt

    r7785 r7881  
    1    .............................................. 
    2    .*........*.......*..*........*.....*.......*. 
     1   #............................................# 
     2   #*........*.......*..*........*.....*.......*# 
    33   ###....#####....########....############....## 
    4    ................*............................. 
    5    .......#........#......M..*...........*....*.. 
     4   #...............*............................# 
     5   #......#........#........*...........*....*..# 
    66   ########...#######....#########.....########## 
    7    ...........*.....*............................ 
    8    ...........#.....#....#.............#......... 
    9    ###.........*...###...##.*..##....###.*..###.. 
    10    ......*.....#...*........#....*.......#....... 
    11    ..N...#.....#...#........#....#.......#....... 
     7   #..........*.....*...........................# 
     8   #..........#.....#....#.............#........# 
     9   ###.........*...###...##.*..##....###.*..###.# 
     10   #.....*.....#...*........#....*.......#......# 
     11   #.N...#.....#...#........#....#.......#MMMMMM# 
    1212   ############################################## 
Note: See TracChangeset for help on using the changeset viewer.