- Timestamp:
- 2015-07-01 23:37:11 (8 years ago)
- 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 260 260 expl.ShockwaveReachesObject += delegate(IPhysicsObject o, Vector vector) 261 261 { 262 if (o.Tag.Equals("boss") && ((TheLegendOfGabriel)Game.Instance).BossHealth != null) 263 { 264 ((TheLegendOfGabriel)Game.Instance).BossHealth.Value--; 265 } 266 262 267 var cre = o as Creature; 263 268 if (cre != null) -
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/LevelCreation.cs
r6715 r6716 147 147 if (part.Right < Level.Right) 148 148 { 149 Create Coyote(part.Position, TILE_SIZE, TILE_SIZE, Angle.Zero, Shape.Rectangle, "", null);149 CreateNorwegianHammerThrower(part.Position, TILE_SIZE, TILE_SIZE, Angle.Zero, Shape.Rectangle, "", null); 150 150 } 151 151 }; … … 175 175 void CreateCoyote(Vector position, double width, double height, Angle angle, Shape shape, string name, Dictionary<string, string> properties) 176 176 { 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 { 177 187 var enemy = new Creature(width, height, 1); 178 enemy.MoveAnimations = DirectionalAnimations(coyoteLeft, coyoteRight, coyoteUp, coyoteDown);188 enemy.MoveAnimations = anims; 179 189 enemy.Image = enemy.MoveAnimations[Direction.Right].CurrentFrame; 180 190 enemy.Position = position; -
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel.cs
r6715 r6716 123 123 [AssetName("walkdown")] 124 124 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; 125 134 126 135 [AssetName("swingup")] -
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabrielContent/TheLegendOfGabrielContent.contentproj
r6709 r6716 367 367 </Compile> 368 368 </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> 369 386 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 370 387 <!-- 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 39 39 <object id="41" name="debug" x="280" y="780" width="20" height="20"> 40 40 <properties> 41 <property name="goto" value="bossroom@ent rance"/>41 <property name="goto" value="bossroom@enterance"/> 42 42 </properties> 43 43 </object>
Note: See TracChangeset
for help on using the changeset viewer.