- Timestamp:
- 2011-06-29 14:45:06 (12 years ago)
- Location:
- 2011/26/VilleK
- Files:
-
- 3 added
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/26/VilleK/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/Peli.cs
r2232 r2299 10 10 { 11 11 const double nopeus = 200; 12 const double hyppyNopeus = 1000;13 const int RUUDUN_KOKO = 40;12 const double hyppyNopeus =900; 13 const int RUUDUN_KOKO = 50; 14 14 15 15 PlatformCharacter pelaaja1; 16 16 17 Image pelaajanKuva = LoadImage(" norsu");18 Image t ahtiKuva = LoadImage("tahti");19 17 Image pelaajanKuva = LoadImage("juoppo"); 18 Image tollkinkuva = LoadImage("tolkki"); 19 20 20 SoundEffect maaliAani = LoadSoundEffect("maali"); 21 22 21 public override void Begin() 23 22 { … … 53 52 { 54 53 PhysicsObject tahti = PhysicsObject.CreateStaticObject(RUUDUN_KOKO, RUUDUN_KOKO); 55 tahti.Image = t ahtiKuva;56 tahti.Tag = "t ahti";54 tahti.Image = tollkinkuva; 55 tahti.Tag = "tolkki"; 57 56 return tahti; 58 57 } … … 61 60 { 62 61 pelaaja1 = new PlatformCharacter(40, 40); 63 pelaaja1.Mass = 4.0; 64 pelaaja1.Image = pelaajanKuva; 62 pelaaja1.Mass = 5.0; 63 //pelaaja1.Image = pelaajanKuva; 64 pelaaja1.RightIdleAnimation = new Animation(pelaajanKuva); 65 //juoppo2.image = pelaajankuva 66 pelaaja1.LeftIdleAnimation = new Animation(o); 65 67 AddCollisionHandler(pelaaja1, osuTahteen); 66 68 return pelaaja1; … … 95 97 void osuTahteen(PhysicsObject hahmo, PhysicsObject kohde) 96 98 { 97 if (kohde.Tag.ToString() == "t ahti")99 if (kohde.Tag.ToString() == "tolkki") 98 100 { 99 101 maaliAani.Play(); 100 MessageDisplay.Add("Keräsit t ähden!");102 MessageDisplay.Add("Keräsit tölkin hurraa!"); 101 103 kohde.Destroy(); 102 104 } -
2011/26/VilleK/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1.csproj.Debug.cachefile
r2232 r2299 2 2 Content\norsu.xnb 3 3 Content\tahti.xnb 4 Content\juoppo.xnb 5 Content\tolkki.xnb 6 Content\juoppo2.xnb 4 7 kentta1.txt -
2011/26/VilleK/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/bin/x86/Debug/kentta1.txt
r2232 r2299 1 * 2 ## 3 4 * * 5 ## ## 6 7 * * 8 ## ## ## 9 10 * * * * 11 ## ## ## ## 12 13 * * * * 14 ## ## ## ## ## 15 16 N 17 ###################### 1 * # 2 ## ** # 3 ###### # # # 4 * * ## # 5 ## ## ## # 6 # ## # 7 * * # 8 ####### ### #### ### ### ### ####### # 9 # 10 * * * * # 11 ## ## ## ############################################################################################################# 12 # 13 * * * * # 14 ## ## ## ## ## ################################################## # 15 # 16 N # 17 ############################################################################################################################ 18 ############################################################################################################################ 19 ############################################################################################################################ -
2011/26/VilleK/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/kentta1.txt
r2232 r2299 1 * 2 ## 3 4 * * 5 ## ## 6 7 * * 8 ## ## ## 9 10 * * * * 11 ## ## ## ## 12 13 * * * * 14 ## ## ## ## ## 15 16 N 17 ###################### 1 * # 2 ## ** # 3 ###### # # # 4 * * ## # 5 ## ## ## # 6 # ## # 7 * * # 8 ####### ### #### ### ### ### ####### # 9 # 10 * * * * # 11 ## ## ## ############################################################################################################# 12 # 13 * * * * # 14 ## ## ## ## ## ################################################## # 15 # 16 N # 17 ############################################################################################################################ 18 ############################################################################################################################ 19 ############################################################################################################################ -
2011/26/VilleK/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/obj/x86/Debug/Tasohyppelypeli1.csproj.FileListAbsolute.txt
r2232 r2299 11 11 C:\MyTemp\VilleK\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\obj\x86\Debug\Tasohyppelypeli1.exe 12 12 C:\MyTemp\VilleK\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\obj\x86\Debug\Tasohyppelypeli1.pdb 13 C:\MyTemp\VilleK\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\juoppo.xnb 14 C:\MyTemp\VilleK\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\tolkki.xnb 15 C:\MyTemp\VilleK\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\juoppo2.xnb -
2011/26/VilleK/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/obj/x86/Debug/cachefile-{77DC94E7-E1E0-4BBE-B826-1240D8DA4352}-targetpath.txt
r2232 r2299 2 2 Content\norsu.xnb 3 3 Content\tahti.xnb 4 Content\juoppo.xnb 5 Content\tolkki.xnb 6 Content\juoppo2.xnb -
2011/26/VilleK/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1Content/Tasohyppelypeli1Content.contentproj
r2232 r2299 59 59 </Compile> 60 60 </ItemGroup> 61 <ItemGroup> 62 <Compile Include="juoppo.png"> 63 <Name>juoppo</Name> 64 <Importer>TextureImporter</Importer> 65 <Processor>TextureProcessor</Processor> 66 </Compile> 67 </ItemGroup> 68 <ItemGroup> 69 <Compile Include="tolkki.png"> 70 <Name>tolkki</Name> 71 <Importer>TextureImporter</Importer> 72 <Processor>TextureProcessor</Processor> 73 </Compile> 74 </ItemGroup> 75 <ItemGroup> 76 <Compile Include="juoppo2.png"> 77 <Name>juoppo2</Name> 78 <Importer>TextureImporter</Importer> 79 <Processor>TextureProcessor</Processor> 80 </Compile> 81 </ItemGroup> 61 82 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 62 83 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2011/26/VilleK/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1Content/obj/x86/Debug/ContentPipeline.xml
r2232 r2299 9 9 <Options>None</Options> 10 10 <Output>C:\MyTemp\VilleK\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\maali.xnb</Output> 11 <Time>2011-06-2 8T14:19:14.034763+03:00</Time>11 <Time>2011-06-29T10:14:58.5354836+03:00</Time> 12 12 </Item> 13 13 <Item> … … 18 18 <Options>None</Options> 19 19 <Output>C:\MyTemp\VilleK\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\norsu.xnb</Output> 20 <Time>2011-06-2 8T14:19:14.034763+03:00</Time>20 <Time>2011-06-29T10:14:58.5354836+03:00</Time> 21 21 </Item> 22 22 <Item> … … 27 27 <Options>None</Options> 28 28 <Output>C:\MyTemp\VilleK\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\tahti.xnb</Output> 29 <Time>2011-06-28T14:19:14.034763+03:00</Time> 29 <Time>2011-06-29T10:14:58.5511078+03:00</Time> 30 </Item> 31 <Item> 32 <Source>juoppo.png</Source> 33 <Name>juoppo</Name> 34 <Importer>TextureImporter</Importer> 35 <Processor>TextureProcessor</Processor> 36 <Options>None</Options> 37 <Output>C:\MyTemp\VilleK\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\juoppo.xnb</Output> 38 <Time>2011-06-29T12:23:15.141454+03:00</Time> 39 </Item> 40 <Item> 41 <Source>tolkki.png</Source> 42 <Name>tolkki</Name> 43 <Importer>TextureImporter</Importer> 44 <Processor>TextureProcessor</Processor> 45 <Options>None</Options> 46 <Output>C:\MyTemp\VilleK\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\tolkki.xnb</Output> 47 <Time>2011-06-29T13:31:24.3649924+03:00</Time> 48 </Item> 49 <Item> 50 <Source>juoppo2.png</Source> 51 <Name>juoppo2</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\MyTemp\VilleK\Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1\bin\x86\Debug\Content\juoppo2.xnb</Output> 56 <Time>2011-06-29T13:51:47.7482839+03:00</Time> 30 57 </Item> 31 58 <BuildSuccessful>true</BuildSuccessful> … … 43 70 <Assembly> 44 71 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 45 <Value>2010-08-23T1 2:41:18+03:00</Value>72 <Value>2010-08-23T13:41:18+03:00</Value> 46 73 </Assembly> 47 74 <Assembly> 48 75 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 49 <Value>2010-08-23T1 2:41:18+03:00</Value>76 <Value>2010-08-23T13:41:18+03:00</Value> 50 77 </Assembly> 51 78 <Assembly> 52 79 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 53 <Value>2010-08-23T1 2:41:18+03:00</Value>80 <Value>2010-08-23T13:41:18+03:00</Value> 54 81 </Assembly> 55 82 <Assembly> 56 83 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 57 <Value>2010-08-23T1 2:41:18+03:00</Value>84 <Value>2010-08-23T13:41:18+03:00</Value> 58 85 </Assembly> 59 86 <Assembly> 60 87 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 61 <Value>2010-08-23T1 2:41:18+03:00</Value>88 <Value>2010-08-23T13:41:18+03:00</Value> 62 89 </Assembly> 63 90 <Assembly> 64 91 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 65 <Value>2010-08-23T1 2:41:18+03:00</Value>92 <Value>2010-08-23T13:41:18+03:00</Value> 66 93 </Assembly> 67 94 <Assembly> 68 95 <Key>C:\WINNT\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 69 <Value>201 1-06-13T15:57:02.10327+03:00</Value>96 <Value>2010-12-30T13:14:59.7761957+02:00</Value> 70 97 </Assembly> 71 98 </Assemblies> -
2011/26/VilleK/ponggi/ponggi/ponggiContent/obj/x86/Debug/ContentPipeline.xml
r2193 r2299 16 16 <Assembly> 17 17 <Key>C:\WINNT\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 18 <Value>201 1-06-13T15:57:02.10327+03:00</Value>18 <Value>2010-12-30T13:14:59.7761957+02:00</Value> 19 19 </Assembly> 20 20 </Assemblies>
Note: See TracChangeset
for help on using the changeset viewer.