- Timestamp:
- 2014-07-04 11:15:55 (9 years ago)
- Location:
- 2014/27/NikoA
- Files:
-
- 5 added
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/27/NikoA/kokeilu/kokeilu/kokeilu/kokeilu.cs
r5411 r5416 9 9 public class kokeilu : PhysicsGame 10 10 { 11 const double nopeus = 200;12 const double hyppyNopeus = 700;11 const double nopeus = 300; 12 const double hyppyNopeus = 800; 13 13 const int RUUDUN_KOKO = 30; 14 14 IntMeter pisteLaskuri; … … 34 34 35 35 Camera.Follow(pelaaja1); 36 Camera.ZoomFactor = 1. 2;36 Camera.ZoomFactor = 1.8; 37 37 Camera.StayInLevel = true; 38 39 40 MediaPlayer.Play("elliot_berger"); 41 MediaPlayer.IsRepeating = true; 42 38 43 } 39 44 40 45 void LuoKentta() 41 46 { 42 TileMap kentta = TileMap.FromLevelAsset("kentta1"); 43 kentta.SetTileMethod('#', LisaaTaso); 44 kentta.SetTileMethod('*', LisaaTahti); 45 kentta.SetTileMethod('N', LisaaPelaaja); 46 kentta.SetTileMethod('V', LuoVihu); 47 kentta.SetTileMethod('x', LisaaAnsa); 48 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 47 48 ColorTileMap ruudut = ColorTileMap.FromLevelAsset("kenttapaint"); 49 ruudut.SetTileMethod(Color.FromHexCode("267F00"), LisaaPelaaja); 50 ruudut.SetTileMethod(Color.FromHexCode("000000"), LisaaTaso); 51 ruudut.SetTileMethod(Color.FromHexCode("0026FF"), LisaaTahti); 52 ruudut.SetTileMethod(Color.FromHexCode("FF0000"), LuoVihu); 53 ruudut.SetTileMethod(Color.FromHexCode("FFD800"), LisaaAnsa); 54 ruudut.Execute(60, 50); 49 55 Level.CreateBorders(); 50 56 //Level.Background.CreateGradient(Color.White, Color.White); … … 59 65 taso.Image = LoadImage("texture"); 60 66 Add(taso); 67 61 68 } 62 69 … … 80 87 AddCollisionHandler(pelaaja1, "ansa", TormaaAnsaan); 81 88 AddCollisionHandler(pelaaja1, "vihu", TormaaVihuun); 82 pelaaja1.Height = 40;83 pelaaja1.Width = 40;89 pelaaja1.Height = 60; 90 pelaaja1.Width = 60; 84 91 Add(pelaaja1); 85 92 … … 160 167 Norsu.Brain = tasoAivot; 161 168 Norsu.Tag = "vihu"; 169 Norsu.Position = paikka; 162 170 163 171 -
2014/27/NikoA/kokeilu/kokeilu/kokeilu/kokeilu.csproj.Debug.cachefile
r5362 r5416 15 15 Content\Megusta.xnb 16 16 Content\Dogecoin.xnb 17 Content\kenttapaint.xnb 18 Content\elliot_berger.xnb 19 Content\elliot_berger.wma -
2014/27/NikoA/kokeilu/kokeilu/kokeilu/obj/x86/Debug/ContentPipeline-{44E802C6-CBAF-4358-82D1-537B47A53768}.xml
r5362 r5416 126 126 <Options>None</Options> 127 127 <Output>C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\piikki.xnb</Output> 128 <Time>2014-07-0 3T13:38:37.8502853+03:00</Time>128 <Time>2014-07-04T11:12:57.8358257+03:00</Time> 129 129 </Item> 130 130 <Item> … … 145 145 <Output>C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\Dogecoin.xnb</Output> 146 146 <Time>2014-07-03T14:16:53.9632605+03:00</Time> 147 </Item> 148 <Item> 149 <Source>kenttapaint.png</Source> 150 <Name>kenttapaint</Name> 151 <Importer>TextureImporter</Importer> 152 <Processor>TextureProcessor</Processor> 153 <Options>None</Options> 154 <Output>C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\kenttapaint.xnb</Output> 155 <Time>2014-07-04T11:06:25.4345895+03:00</Time> 156 </Item> 157 <Item> 158 <Source>elliot_berger.mp3</Source> 159 <Name>elliot_berger</Name> 160 <Importer>Mp3Importer</Importer> 161 <Processor>SongProcessor</Processor> 162 <Options>None</Options> 163 <Output>C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\elliot_berger.xnb</Output> 164 <Extra>C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\elliot_berger.wma</Extra> 165 <Time>2014-07-04T11:08:08.1278578+03:00</Time> 147 166 </Item> 148 167 <BuildSuccessful>true</BuildSuccessful> -
2014/27/NikoA/kokeilu/kokeilu/kokeilu/obj/x86/Debug/cachefile-{44E802C6-CBAF-4358-82D1-537B47A53768}-targetpath.txt
r5362 r5416 15 15 Content\Megusta.xnb 16 16 Content\Dogecoin.xnb 17 Content\kenttapaint.xnb 18 Content\elliot_berger.xnb 19 Content\elliot_berger.wma -
2014/27/NikoA/kokeilu/kokeilu/kokeilu/obj/x86/Debug/kokeilu.csproj.FileListAbsolute.txt
r5362 r5416 23 23 C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\Megusta.xnb 24 24 C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\Dogecoin.xnb 25 C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\kenttapaint.xnb 26 C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\elliot_berger.xnb 27 C:\MyTemp\NikoA\kokeilu\kokeilu\kokeilu\bin\x86\Debug\Content\elliot_berger.wma -
2014/27/NikoA/kokeilu/kokeilu/kokeiluContent/kokeiluContent.contentproj
r5362 r5416 151 151 </Compile> 152 152 </ItemGroup> 153 <ItemGroup> 154 <Compile Include="kenttapaint.png"> 155 <Name>kenttapaint</Name> 156 <Importer>TextureImporter</Importer> 157 <Processor>TextureProcessor</Processor> 158 </Compile> 159 </ItemGroup> 160 <ItemGroup> 161 <Compile Include="elliot_berger.mp3"> 162 <Name>elliot_berger</Name> 163 <Importer>Mp3Importer</Importer> 164 <Processor>SongProcessor</Processor> 165 </Compile> 166 </ItemGroup> 153 167 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 154 168 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset
for help on using the changeset viewer.