- Timestamp:
- 2012-07-06 12:47:42 (11 years ago)
- Location:
- 2012/27/MikaelK
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/27/MikaelK/hailstorm/hailstorm/hailstormContent/hailstormContent.contentproj
r3608 r3674 94 94 </Compile> 95 95 </ItemGroup> 96 <ItemGroup> 97 <Compile Include="Eskimo.png"> 98 <Name>Eskimo</Name> 99 <Importer>TextureImporter</Importer> 100 <Processor>TextureProcessor</Processor> 101 </Compile> 102 </ItemGroup> 96 103 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 97 104 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2012/27/MikaelK/hailstorm/hailstorm/hailstormContent/kentta1.txt
r3608 r3674 4 4 5 5 6 7 8 # 6 7 8 # 9 9 # # 10 # # 11 # ##12 # ##13 ## # 14 ## # ## ### ##15 ### # ##### ##16 ### N# ####### ##10 # # 11 # # 12 # # # 13 ## # # # 14 ## ## ### # # 15 ### # ##### # # 16 ### N# ####### # # 17 17 ############ ###################### ### 18 18 # # # # -
2012/27/MikaelK/hailstorm/hailstorm/raekuuro.cs
r3608 r3674 9 9 public class hailstorm : PhysicsGame 10 10 { 11 const double nopeus = 280;11 const double nopeus = 300; 12 12 const double hyppyNopeus = 1100; 13 13 const int RUUDUN_KOKO = 40; 14 14 15 Image Talvi = LoadImage ("Talvi"); 15 16 PlatformCharacter pelaaja1; 16 17 17 Image pelaajanKuva = LoadImage(" meikäläinen");18 Image pelaajanKuva = LoadImage("Eskimo"); 18 19 Image tahtiKuva = LoadImage("tahti"); 19 20 … … 23 24 public override void Begin() 24 25 { 25 if (DataStorage.Exists("pisteet.xml")) 26 27 if (DataStorage.Exists("pisteet.xml")) 26 28 topLista = DataStorage.Load<ScoreList>(topLista, "pisteet.xml"); 27 29 AlkuValikko(); … … 85 87 ControllerOne.Listen(Button.DPadRight, ButtonState.Down, Liikuta, "Pelaaja liikkuu oikealle", pelaaja1, nopeus); 86 88 ControllerOne.Listen(Button.A, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 87 88 ControllerOne.Listen(Button.Back, ButtonState.Pressed, ConfirmExit, "Lopeta peli");89 89 PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 90 90 } … … 153 153 { 154 154 Timer ajastin = new Timer(); 155 ajastin.Interval = 0. 2;155 ajastin.Interval = 0.4; 156 156 ajastin.Timeout += Luorae; 157 157 ajastin.Start(); … … 162 162 { 163 163 Timer ajastin2 = new Timer(); 164 ajastin2.Interval = 5.0;164 ajastin2.Interval = 2.0; 165 165 ajastin2.Timeout += delegate{ 166 166 LuoTahti(RandomGen.NextVector(Level.Left,0,Level.Right,100),RUUDUN_KOKO,RUUDUN_KOKO ); 167 167 }; 168 168 ajastin2.Start(); … … 171 171 void AlkuValikko() 172 172 { 173 ClearAll(); 173 174 MultiSelectWindow AlkuValikko = new MultiSelectWindow("Pelin alkuvalikko", 174 175 "Aloita peli", "Parhaat pisteet", "Lopeta"); … … 195 196 ajastin(); 196 197 ajastin2(); 198 197 199 break; 198 200 case 1: 201 HighScoreWindow topIkkuna = new HighScoreWindow( 202 "Parhaat pisteet", 203 topLista ); 204 topIkkuna.Closed += TallennaPisteet; 205 Add( topIkkuna ); 206 199 207 break; 200 208 case 2: … … 211 219 Layers[-3].RelativeTransition = new Vector(0.5, 0.5); 212 220 } 221 213 222 void TallennaPisteet(Window sender) 214 223 { 215 224 DataStorage.Save<ScoreList>(topLista, "pisteet.xml"); 225 AlkuValikko(); 216 226 } 217 227
Note: See TracChangeset
for help on using the changeset viewer.