Changeset 6547
- Timestamp:
- 2015-06-29 23:43:37 (6 years ago)
- Location:
- 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel
- Files:
-
- 7 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/LevelCreation.cs
r6546 r6547 4 4 using System.Text; 5 5 using Jypeli; 6 7 /* 8 *Klassisia muistutuksia 9 * 3 10 * 2 Pelaajan päällä näkyvät elementit 11 * 1 Pelaaja 12 * 0 Lisäkoriste 13 * -1 Perustiili 14 * -2 15 */ 16 6 17 7 18 public partial class TheLegendOfGabriel : PhysicsGame … … 29 40 { 30 41 player = new Creature(TILE_SIZE, TILE_SIZE); 42 player.CanRotate = false; 31 43 player.MovementSpeed = 2300; 32 44 player.Position = position; … … 35 47 player.MoveAnimations[Direction.Up] = playerWalkUp; 36 48 player.MoveAnimations[Direction.Down] = playerWalkDown; 37 player.Image = playerWalkDown.CurrentFrame; 49 player.Image = playerWalkDown.CurrentFrame; 38 50 Add(player, 1); 39 51 -
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel.cs
r6546 r6547 51 51 { 52 52 if (!Game.IsPaused) 53 { 53 54 Push(direction.GetVector() * MovementSpeed); 55 } 54 56 } 55 57 … … 95 97 96 98 [AssetName("walkright")] 97 privateAnimation playerWalkRight;99 internal Animation playerWalkRight; 98 100 [AssetName("walkright", mirror: true)] 99 privateAnimation playerWalkLeft;101 internal Animation playerWalkLeft; 100 102 [AssetName("walkup")] 101 103 private Animation playerWalkUp; … … 105 107 #endregion 106 108 107 public override void Begin() 109 public override void Begin() 108 110 { 109 111 SmoothTextures = false; … … 140 142 ClearAll(); 141 143 CreateLevel("level1"); 142 //CreatePlayer(new Vector(-Level.Width/3, Level.Bottom + TILE_SIZE * 2));144 //CreatePlayer(new Vector(-Level.Width/3, Level.Bottom + TILE_SIZE * 2)); 143 145 SetControls(); 144 146 Camera.ZoomToLevel(); -
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabrielContent/TheLegendOfGabrielContent.contentproj
r6545 r6547 109 109 </Compile> 110 110 </ItemGroup> 111 <ItemGroup> 112 <Compile Include="gran.png"> 113 <Name>gran</Name> 114 <Importer>TextureImporter</Importer> 115 <Processor>TextureProcessor</Processor> 116 </Compile> 117 <Compile Include="gun.png"> 118 <Name>gun</Name> 119 <Importer>TextureImporter</Importer> 120 <Processor>TextureProcessor</Processor> 121 </Compile> 122 <Compile Include="helm.png"> 123 <Name>helm</Name> 124 <Importer>TextureImporter</Importer> 125 <Processor>TextureProcessor</Processor> 126 </Compile> 127 <Compile Include="letter.png"> 128 <Name>letter</Name> 129 <Importer>TextureImporter</Importer> 130 <Processor>TextureProcessor</Processor> 131 </Compile> 132 </ItemGroup> 111 133 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 112 134 <!-- 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
r6544 r6547 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 <map version="1.0" orientation="orthogonal" renderorder="right-down" width="25" height="40" tilewidth="20" tileheight="20" nextobjectid="2 5">2 <map version="1.0" orientation="orthogonal" renderorder="right-down" width="25" height="40" tilewidth="20" tileheight="20" nextobjectid="27"> 3 3 <tileset firstgid="1" name="testlevel4" tilewidth="20" tileheight="20"> 4 4 <image source="tileset.png" width="200" height="200"/> … … 19 19 <objectgroup color="#65e2d8" name="exit"> 20 20 <properties> 21 <property name="goto" value="level2@ top"/>21 <property name="goto" value="level2@bottom"/> 22 22 </properties> 23 23 <object id="19" x="100" y="0" width="20" height="20"> … … 35 35 <object id="24" name="Alexander" x="47.3564" y="728.039" width="20" height="20"/> 36 36 </objectgroup> 37 <objectgroup color="#a41b80" name="interactable"/> 37 38 </map>
Note: See TracChangeset
for help on using the changeset viewer.