- Timestamp:
- 2010-07-08 14:57:51 (13 years ago)
- Location:
- 2010/27/attakorh/Pallerot
- Files:
-
- 8 added
- 2 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/27/attakorh/Pallerot/Content/Content.contentproj
r1182 r1201 23 23 <Importer>TextureImporter</Importer> 24 24 <Processor>TextureProcessor</Processor> 25 </Compile>26 </ItemGroup>27 <ItemGroup>28 <Compile Include="maali.wav">29 <Name>maali</Name>30 <Importer>WavImporter</Importer>31 <Processor>SoundEffectProcessor</Processor>32 25 </Compile> 33 26 </ItemGroup> … … 75 68 </Compile> 76 69 </ItemGroup> 70 <ItemGroup> 71 <Compile Include="maali.png"> 72 <Name>maali</Name> 73 <Importer>TextureImporter</Importer> 74 <Processor>TextureProcessor</Processor> 75 </Compile> 76 </ItemGroup> 77 <ItemGroup> 78 <Compile Include="laatta1.png"> 79 <Name>laatta1</Name> 80 <Importer>TextureImporter</Importer> 81 <Processor>TextureProcessor</Processor> 82 </Compile> 83 </ItemGroup> 77 84 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 78 85 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2010/27/attakorh/Pallerot/Peli.cs
r1182 r1201 34 34 MessageDisplay.Add("Hypi tornin päälle!"); 35 35 MessageDisplay.Add("Avaa ohjeet painamalla F1."); 36 Level.Background.CreateStars(500); 37 36 Level.Background.CreateGradient(Color.White, Color.DarkGray); 38 37 39 38 … … 65 64 ruudut['s'] = Sivu; 66 65 ruudut['p'] = LuoPiikki; 66 ruudut['l'] = Laatta; 67 67 68 68 ruudut.Insert(ruudunLeveys, ruudunKorkeus); … … 95 95 maali.Tag = "maali"; 96 96 maali.IgnoresCollisionResponse = true; 97 maali.X = 30;98 maali.Y = -60;99 maali.Image = LoadImage(" tahti");97 maali.X = Level.Left; 98 maali.Y = 500; 99 maali.Image = LoadImage("maali"); 100 100 Add(maali); 101 101 } … … 152 152 if (kohde.Tag.ToString() == "maali") 153 153 { 154 PlaySound("maali");155 154 seuraavaKentta(); 156 155 MessageDisplay.Add("Jees! Pääsit läpi kentän " + kenttaNro ); 156 ControllerOne.Vibrate(2.5, 0.9, 4.0, 1.0, 5.9); 157 157 } 158 158 … … 165 165 MessageDisplay.Add("Kuolit! Aloita alusta!"); 166 166 MessageDisplay.Add("Avaa ohjeet painamalla F1."); 167 168 ControllerOne.Vibrate(2.5, 0.9, 4.0, 1.0, 0.4); 169 Level.Background.Image = LoadImage("tausta"); 167 Level.Background.CreateGradient(Color.White, Color.DarkGray); 168 ControllerOne.Vibrate(2.5, 0.9, 4.0, 1.0, 1.5); 170 169 171 170 } 172 171 } 173 172 173 PhysicsObject Laatta() 174 { 175 PhysicsObject laatta = PhysicsObject.CreateStaticObject(50.0, 25.0); 176 laatta.Image = LoadImage("laatta1"); 177 return laatta; 178 } 179 180 174 181 } -
2010/27/attakorh/Pallerot/kentta1.txt
r1182 r1201 1 1 s=================================s 2 s 3 s 4 s 5 s 6 s 7 s 8 s 9 s 10 s 11 s 12 s 13 s 14 s 15 s =s16 s p p ps17 s = = =s18 s =s19 sppppppppp ppp1 ppppppppppppppps2 s s s 3 s s s 4 s s s 5 s s s 6 spppppps s 7 s======s==========================s 8 s s s 9 s s ========================s 10 s = s 11 s ls= s 12 sl s s 13 s s s 14 sl s = = = s 15 s s p p = s 16 sl s s s p p p s 17 s s s = = = s 18 s = === s s == s 19 spppppppppsps 1 ppppppppppppppps 20 20 s=================================s
Note: See TracChangeset
for help on using the changeset viewer.