Changeset 6716 for 2015/27


Ignore:
Timestamp:
2015-07-01 23:37:11 (8 years ago)
Author:
sieerinn
Message:

Norjalaiset moukarinheittäjät tehty, kranaatti toimii taas junaa vastaan.

Location:
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel
Files:
27 added
5 edited

Legend:

Unmodified
Added
Removed
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/Item.cs

    r6712 r6716  
    260260                expl.ShockwaveReachesObject += delegate(IPhysicsObject o, Vector vector) 
    261261                { 
     262                    if (o.Tag.Equals("boss") && ((TheLegendOfGabriel)Game.Instance).BossHealth != null) 
     263                    { 
     264                        ((TheLegendOfGabriel)Game.Instance).BossHealth.Value--; 
     265                    } 
     266 
    262267                    var cre = o as Creature; 
    263268                    if (cre != null) 
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/LevelCreation.cs

    r6715 r6716  
    147147            if (part.Right < Level.Right) 
    148148            { 
    149                 CreateCoyote(part.Position, TILE_SIZE, TILE_SIZE, Angle.Zero, Shape.Rectangle, "", null); 
     149                CreateNorwegianHammerThrower(part.Position, TILE_SIZE, TILE_SIZE, Angle.Zero, Shape.Rectangle, "", null); 
    150150            } 
    151151        }; 
     
    175175    void CreateCoyote(Vector position, double width, double height, Angle angle, Shape shape, string name, Dictionary<string, string> properties) 
    176176    { 
     177        CreateEnemy(position, width, height, DirectionalAnimations(coyoteLeft, coyoteRight, coyoteUp, coyoteDown)); 
     178    } 
     179 
     180    void CreateNorwegianHammerThrower(Vector position, double width, double height, Angle angle, Shape shape, string name, Dictionary<string, string> properties) 
     181    { 
     182        CreateEnemy(position, width, height, DirectionalAnimations(nWalkLeft, nWalkRight, nWalkUp, nWalkDown)); 
     183    } 
     184 
     185    void CreateEnemy(Vector position, double width, double height, Dictionary<Direction, Animation> anims) 
     186    { 
    177187        var enemy = new Creature(width, height, 1); 
    178         enemy.MoveAnimations = DirectionalAnimations(coyoteLeft, coyoteRight, coyoteUp, coyoteDown); 
     188        enemy.MoveAnimations = anims; 
    179189        enemy.Image = enemy.MoveAnimations[Direction.Right].CurrentFrame; 
    180190        enemy.Position = position; 
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel.cs

    r6715 r6716  
    123123    [AssetName("walkdown")] 
    124124    private Animation playerWalkDown; 
     125 
     126    [AssetName("nwalkright")] 
     127    internal Animation nWalkRight; 
     128    [AssetName("nwalkright", mirror: true)] 
     129    internal Animation nWalkLeft; 
     130    [AssetName("nwalkup")] 
     131    private Animation nWalkUp; 
     132    [AssetName("nwalkdown")] 
     133    private Animation nWalkDown; 
    125134 
    126135    [AssetName("swingup")] 
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabrielContent/TheLegendOfGabrielContent.contentproj

    r6709 r6716  
    367367    </Compile> 
    368368  </ItemGroup> 
     369  <ItemGroup> 
     370    <Compile Include="nwalkdown.anim"> 
     371      <Name>nwalkdown</Name> 
     372      <Importer>AnimationImporter</Importer> 
     373      <Processor>AnimationContentProcessor</Processor> 
     374    </Compile> 
     375    <Compile Include="nwalkright.anim"> 
     376      <Name>nwalkright</Name> 
     377      <Importer>AnimationImporter</Importer> 
     378      <Processor>AnimationContentProcessor</Processor> 
     379    </Compile> 
     380    <Compile Include="nwalkup.anim"> 
     381      <Name>nwalkup</Name> 
     382      <Importer>AnimationImporter</Importer> 
     383      <Processor>AnimationContentProcessor</Processor> 
     384    </Compile> 
     385  </ItemGroup> 
    369386  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    370387  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabrielContent/level1.tmx

    r6715 r6716  
    3939  <object id="41" name="debug" x="280" y="780" width="20" height="20"> 
    4040   <properties> 
    41     <property name="goto" value="bossroom@entrance"/> 
     41    <property name="goto" value="bossroom@enterance"/> 
    4242   </properties> 
    4343  </object> 
Note: See TracChangeset for help on using the changeset viewer.