Changeset 8930 for 2017/27/KasmirK
- Timestamp:
- 2017-07-05 14:56:31 (6 years ago)
- Location:
- 2017/27/KasmirK
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2.cs
r8899 r8930 12 12 13 13 const double nopeus = 300; 14 const double hyppyNopeus = 100;14 const double hyppyNopeus = 50; 15 15 const int RUUDUN_KOKO = 60; 16 16 17 17 PlatformCharacter pelaaja1; 18 18 Light valo; 19 19 Image pelaajanKuva = LoadImage("the actual thing lol"); 20 20 Image tahtiKuva = LoadImage("tahti"); … … 22 22 SoundEffect maaliAani = LoadSoundEffect("maali"); 23 23 24 private Animation ukkelinKavely; 24 25 public override void Begin() 25 26 { 26 27 28 27 Gravity = new Vector(0.5, 800); 28 ukkelinKavely = LoadAnimation("animaatio"); 29 29 LuoKentta(); 30 30 LisaaNappaimet(); … … 37 37 void LuoKentta() 38 38 { 39 TileMap kentta = TileMap.FromLevelAsset("kentta1"); 40 kentta.SetTileMethod('#', LisaaTaso); 41 kentta.SetTileMethod('*', LisaaTahti); 42 kentta.SetTileMethod('N', LisaaPelaaja); 43 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 44 45 Level.Background.CreateGradient(Color.White, Color.SkyBlue); 39 //ColorTileMap ruudut = ColorTileMap.FromLevelAsset("levelmap"); 40 //ruudut.Execute(20, 20); 41 GameObject tausta = new GameObject(Level.Width, Level.Height); 42 43 Add(tausta, -3); 44 Level.Background.CreateGradient(Color.DarkBrown, Color.Black); 45 Level.AmbientLight = 0.1; 46 valo = new Light(); 47 valo.Intensity = 1.4; 48 valo.Distance = 18; 49 valo.Position = pelaaja1.Position; 50 Add(valo); 51 } 52 53 protected override void Paint(Canvas canvas) 54 { 55 valo.Position = pelaaja1.Position; 56 base.Paint(canvas); 46 57 } 47 58 … … 50 61 PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 51 62 taso.Position = paikka; 52 taso.Color = Color. ForestGreen;63 taso.Color = Color.DarkBrown; 53 64 Add(taso); 54 65 } … … 66 77 void LisaaPelaaja(Vector paikka, double leveys, double korkeus) 67 78 { 79 68 80 pelaaja1 = new PlatformCharacter(leveys, korkeus); 69 81 pelaaja1.Position = paikka; … … 71 83 pelaaja1.Image = pelaajanKuva; 72 84 AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 85 73 86 Add(pelaaja1); 87 74 88 } 75 89 … … 95 109 { 96 110 hahmo.Walk(nopeus); 111 pelaaja1.AnimWalk = ukkelinKavely; 97 112 } 98 113 -
2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2.csproj.Debug.cachefile
r8899 r8930 7 7 Content\mc1.xnb 8 8 Content\the actual thing lol.xnb 9 Content\moving1.xnb 10 Content\moving2.xnb 11 Content\animaatio.xnb 12 Content\animaatio\moving1_0.xnb 13 Content\animaatio\moving2_0.xnb 14 Content\enemystudent.xnb 15 Content\enemystudent2.xnb 16 Content\levelmap.xnb -
2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml
r8899 r8930 74 74 <Time>2017-07-04T13:15:59.8090258+03:00</Time> 75 75 </Item> 76 <Item> 77 <Source>moving1.png</Source> 78 <Name>moving1</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 <Options>None</Options> 82 <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\moving1.xnb</Output> 83 <Time>2017-07-04T14:18:15.0687076+03:00</Time> 84 </Item> 85 <Item> 86 <Source>moving2.png</Source> 87 <Name>moving2</Name> 88 <Importer>TextureImporter</Importer> 89 <Processor>TextureProcessor</Processor> 90 <Options>None</Options> 91 <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\moving2.xnb</Output> 92 <Time>2017-07-04T14:18:20.3416428+03:00</Time> 93 </Item> 94 <Item> 95 <Source>animaatio.ANIM</Source> 96 <Name>animaatio</Name> 97 <Importer>AnimationImporter</Importer> 98 <Processor>AnimationContentProcessor</Processor> 99 <Options>None</Options> 100 <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\animaatio.xnb</Output> 101 <Time>2017-07-05T10:00:20.3268099+03:00</Time> 102 <Request>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\animaatio\moving1_0.xnb</Request> 103 <Request>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\animaatio\moving2_0.xnb</Request> 104 </Item> 105 <Item> 106 <Source>animaatio\moving1.png</Source> 107 <Importer>TextureImporter</Importer> 108 <Processor>TextureProcessor</Processor> 109 <Options>None</Options> 110 <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\animaatio\moving1_0.xnb</Output> 111 <Time>2017-07-04T14:16:06+03:00</Time> 112 </Item> 113 <Item> 114 <Source>animaatio\moving2.png</Source> 115 <Importer>TextureImporter</Importer> 116 <Processor>TextureProcessor</Processor> 117 <Options>None</Options> 118 <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\animaatio\moving2_0.xnb</Output> 119 <Time>2017-07-04T14:17:39+03:00</Time> 120 </Item> 121 <Item> 122 <Source>enemystudent.png</Source> 123 <Name>enemystudent</Name> 124 <Importer>TextureImporter</Importer> 125 <Processor>TextureProcessor</Processor> 126 <Options>None</Options> 127 <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\enemystudent.xnb</Output> 128 <Time>2017-07-05T13:43:52.1288367+03:00</Time> 129 </Item> 130 <Item> 131 <Source>enemystudent2.png</Source> 132 <Name>enemystudent2</Name> 133 <Importer>TextureImporter</Importer> 134 <Processor>TextureProcessor</Processor> 135 <Options>None</Options> 136 <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\enemystudent2.xnb</Output> 137 <Time>2017-07-05T13:43:57.9653491+03:00</Time> 138 </Item> 139 <Item> 140 <Source>levelmap.png</Source> 141 <Name>levelmap</Name> 142 <Importer>TextureImporter</Importer> 143 <Processor>TextureProcessor</Processor> 144 <Options>None</Options> 145 <Output>C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\levelmap.xnb</Output> 146 <Time>2017-07-05T13:52:37.4756469+03:00</Time> 147 </Item> 76 148 <BuildSuccessful>true</BuildSuccessful> 77 149 <Settings> -
2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/obj/x86/Debug/Tasohyppelypeli2.csproj.FileListAbsolute.txt
r8899 r8930 15 15 C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\mc1.xnb 16 16 C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\the actual thing lol.xnb 17 C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\moving1.xnb 18 C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\moving2.xnb 19 C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\animaatio.xnb 20 C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\animaatio\moving1_0.xnb 21 C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\animaatio\moving2_0.xnb 22 C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\enemystudent.xnb 23 C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\enemystudent2.xnb 24 C:\MyTemp\KasmirK\Tasohyppelypeli2\Tasohyppelypeli2\Tasohyppelypeli2\bin\x86\Debug\Content\levelmap.xnb -
2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt
r8899 r8930 7 7 Content\mc1.xnb 8 8 Content\the actual thing lol.xnb 9 Content\moving1.xnb 10 Content\moving2.xnb 11 Content\animaatio.xnb 12 Content\animaatio\moving1_0.xnb 13 Content\animaatio\moving2_0.xnb 14 Content\enemystudent.xnb 15 Content\enemystudent2.xnb 16 Content\levelmap.xnb -
2017/27/KasmirK/Tasohyppelypeli2/Tasohyppelypeli2/Tasohyppelypeli2Content/Tasohyppelypeli2Content.contentproj
r8899 r8930 110 110 </ItemGroup> 111 111 <ItemGroup> 112 <Compile Include=" ukkelin.anim">113 <Name> ukkelin</Name>112 <Compile Include="animaatio.ANIM"> 113 <Name>animaatio</Name> 114 114 <Importer>AnimationImporter</Importer> 115 115 <Processor>AnimationContentProcessor</Processor> 116 </Compile> 117 </ItemGroup> 118 <ItemGroup> 119 <Compile Include="enemystudent.png"> 120 <Name>enemystudent</Name> 121 <Importer>TextureImporter</Importer> 122 <Processor>TextureProcessor</Processor> 123 </Compile> 124 </ItemGroup> 125 <ItemGroup> 126 <Compile Include="enemystudent2.png"> 127 <Name>enemystudent2</Name> 128 <Importer>TextureImporter</Importer> 129 <Processor>TextureProcessor</Processor> 130 </Compile> 131 </ItemGroup> 132 <ItemGroup> 133 <Compile Include="levelmap.png"> 134 <Name>levelmap</Name> 135 <Importer>TextureImporter</Importer> 136 <Processor>TextureProcessor</Processor> 116 137 </Compile> 117 138 </ItemGroup>
Note: See TracChangeset
for help on using the changeset viewer.