- Timestamp:
- 2015-07-02 13:06:47 (7 years ago)
- Location:
- 2015/27/JimiS
- Files:
-
- 10 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/27/JimiS/tasohyppely/hyppely/hyppely/hyppely/bin/x86/Debug/Data/_score.xml
r6727 r6742 9 9 </Field> 10 10 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 11 <Value> 29</Value>11 <Value>51</Value> 12 12 </Field> 13 13 </Item> … … 17 17 </Field> 18 18 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 19 <Value>2 </Value>19 <Value>29</Value> 20 20 </Field> 21 21 </Item> … … 25 25 </Field> 26 26 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 27 <Value> 1</Value>27 <Value>3</Value> 28 28 </Field> 29 29 </Item> 30 30 <Item Index="3" Type="Jypeli.ScoreItem, Jypeli, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null"> 31 31 <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 32 <Value> -</Value>32 <Value>Jimi</Value> 33 33 </Field> 34 34 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 35 <Value> 0</Value>35 <Value>2</Value> 36 36 </Field> 37 37 </Item> 38 38 <Item Index="4" Type="Jypeli.ScoreItem, Jypeli, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null"> 39 39 <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 40 <Value> -</Value>40 <Value>Jimi</Value> 41 41 </Field> 42 42 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 43 <Value> 0</Value>43 <Value>1</Value> 44 44 </Field> 45 45 </Item> 46 46 <Item Index="5" Type="Jypeli.ScoreItem, Jypeli, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null"> 47 47 <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 48 <Value> -</Value>48 <Value>Jimi</Value> 49 49 </Field> 50 50 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 51 <Value> 0</Value>51 <Value>1</Value> 52 52 </Field> 53 53 </Item> -
2015/27/JimiS/tasohyppely/hyppely/hyppely/hyppely/hyppely.cs
r6736 r6742 28 28 EasyHighScore toplista = new EasyHighScore(); 29 29 30 AssaultRifle pelaajan1Ase;31 32 30 33 31 PlatformCharacter pelaaja1; 34 32 35 Image pelaajanKuva = LoadImage("p elaajahahmo");33 Image pelaajanKuva = LoadImage("player"); 36 34 Image tahtiKuva = LoadImage("tahti"); 37 35 Image vihukuva = LoadImage("vihu"); … … 42 40 Image PaaVihu = LoadImage("Päävihollinen"); 43 41 Image rajahdyskuva = LoadImage("rajahdys"); 42 Image ammukset = LoadImage("ammukset"); 43 Image punainen = LoadImage("punainentaso"); 44 44 45 45 46 SoundEffect osuma = LoadSoundEffect("osuma"); … … 106 107 kentta.SetTileMethod('P', LisaaPahis); 107 108 kentta.SetTileMethod('B', LisaaPaaVihu); 109 kentta.SetTileMethod('O', LisaaAmmo); 108 110 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 109 111 … … 128 130 129 131 130 Level.Background.CreateGradient(Color. White, Color.SkyBlue);132 Level.Background.CreateGradient(Color.LightGreen , Color.SkyBlue); 131 133 } 132 134 … … 193 195 PhysicsObject palikka = PhysicsObject.CreateStaticObject(leveys, korkeus); 194 196 palikka.Position = paikka; 195 palikka. Color = Color.LightGreen;197 palikka.Image = punainen; 196 198 Add(palikka); 197 199 } … … 214 216 kolikko.Tag = "tahti"; 215 217 Add(kolikko); 218 } 219 220 void LisaaAmmo(Vector paikka, double leveys, double korkeus) 221 { 222 PhysicsObject ammo = PhysicsObject.CreateStaticObject(leveys, korkeus); 223 ammo.Position = paikka; 224 ammo.Image = ammukset; 225 ammo.Tag = "ammo"; 226 Add(ammo); 216 227 } 217 228 … … 230 241 AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 231 242 AddCollisionHandler(pelaaja1, "pahis", TormaaVihuun); 243 AddCollisionHandler(pelaaja1, "ammo", TormaaAmmoon); 232 244 Add(pelaaja1); 233 245 234 246 pelaaja1.Weapon = new AssaultRifle(30, 10); 235 247 236 pelaaja1.Weapon.Ammo.Value = 100; 248 pelaaja1.Weapon.Ammo.Value = 10; 249 250 pelaaja1.Weapon.FireRate = 0.5; 237 251 238 252 pelaaja1.Weapon.ProjectileCollision = AmmusOsui; 239 253 240 //pelaajan1Ase = new AssaultRifle(30, 10);241 242 //pelaajan1Ase.Ammo.Value = 100;243 244 //pelaajan1Ase.ProjectileCollision = AmmusOsui;245 246 //pelaaja1.Add(pelaajan1Ase);247 254 248 255 pelaajan1Tahdet = new IntMeter(0); … … 289 296 { 290 297 ammus.Destroy(); 298 kohde.Destroy(); 291 299 } 292 300 … … 344 352 Keyboard.Listen(Key.Right, ButtonState.Down, Liikuta, "Liikkuu vasemmalle", pelaaja1, nopeus); 345 353 Keyboard.Listen(Key.Up, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 346 Keyboard.Listen(Key.Space, ButtonState.Down, AmmuAseella, "Ammu", pelaaja n1Ase);354 Keyboard.Listen(Key.Space, ButtonState.Down, AmmuAseella, "Ammu", pelaaja1); 347 355 348 356 ControllerOne.Listen(Button.Back, ButtonState.Pressed, Exit, "Poistu pelistä"); … … 352 360 ControllerOne.Listen(Button.DPadRight, ButtonState.Down, Liikuta, "Pelaaja liikkuu oikealle", pelaaja1, nopeus); 353 361 ControllerOne.Listen(Button.A, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", pelaaja1, hyppyNopeus); 354 ControllerOne.Listen(Button.RightTrigger, ButtonState.Down, AmmuAseella, "Ammu", pelaaja n1Ase);362 ControllerOne.Listen(Button.RightTrigger, ButtonState.Down, AmmuAseella, "Ammu", pelaaja1); 355 363 356 364 PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); … … 372 380 { 373 381 hahmo.Jump(nopeus); 382 } 383 384 void TormaaAmmoon(PhysicsObject hahmo, PhysicsObject ammo) 385 { 386 pelaaja1.Weapon.Ammo.Value += 5; 387 ammo.Destroy(); 374 388 } 375 389 -
2015/27/JimiS/tasohyppely/hyppely/hyppely/hyppely/hyppely.csproj.Debug.cachefile
r6727 r6742 14 14 Content\kentta1.xnb 15 15 Content\rajahdys.xnb 16 Content\ammukset.xnb 17 Content\punainentaso.xnb 18 Content\player.xnb -
2015/27/JimiS/tasohyppely/hyppely/hyppely/hyppely/obj/x86/Debug/ContentPipeline-{9937689A-33E5-40B9-A7B6-3F1206C3B37D}.xml
r6727 r6742 126 126 <Options>None</Options> 127 127 <Output>C:\MyTemp\JimiS\tasohyppely\hyppely\hyppely\hyppely\bin\x86\Debug\Content\kentta1.xnb</Output> 128 <Time>2015-07-02T1 1:00:06.5675735+03:00</Time>128 <Time>2015-07-02T12:37:37.2105735+03:00</Time> 129 129 </Item> 130 130 <Item> … … 136 136 <Output>C:\MyTemp\JimiS\tasohyppely\hyppely\hyppely\hyppely\bin\x86\Debug\Content\rajahdys.xnb</Output> 137 137 <Time>2015-07-02T10:32:37.9543735+03:00</Time> 138 </Item> 139 <Item> 140 <Source>ammukset.png</Source> 141 <Name>ammukset</Name> 142 <Importer>TextureImporter</Importer> 143 <Processor>TextureProcessor</Processor> 144 <Options>None</Options> 145 <Output>C:\MyTemp\JimiS\tasohyppely\hyppely\hyppely\hyppely\bin\x86\Debug\Content\ammukset.xnb</Output> 146 <Time>2015-07-02T12:35:48.8567735+03:00</Time> 147 </Item> 148 <Item> 149 <Source>punainentaso.png</Source> 150 <Name>punainentaso</Name> 151 <Importer>TextureImporter</Importer> 152 <Processor>TextureProcessor</Processor> 153 <Options>None</Options> 154 <Output>C:\MyTemp\JimiS\tasohyppely\hyppely\hyppely\hyppely\bin\x86\Debug\Content\punainentaso.xnb</Output> 155 <Time>2015-07-02T12:49:12.0405735+03:00</Time> 156 </Item> 157 <Item> 158 <Source>player.png</Source> 159 <Name>player</Name> 160 <Importer>TextureImporter</Importer> 161 <Processor>TextureProcessor</Processor> 162 <Options>None</Options> 163 <Output>C:\MyTemp\JimiS\tasohyppely\hyppely\hyppely\hyppely\bin\x86\Debug\Content\player.xnb</Output> 164 <Time>2015-07-02T12:59:49.6259735+03:00</Time> 138 165 </Item> 139 166 <BuildSuccessful>true</BuildSuccessful> -
2015/27/JimiS/tasohyppely/hyppely/hyppely/hyppely/obj/x86/Debug/cachefile-{9937689A-33E5-40B9-A7B6-3F1206C3B37D}-targetpath.txt
r6727 r6742 14 14 Content\kentta1.xnb 15 15 Content\rajahdys.xnb 16 Content\ammukset.xnb 17 Content\punainentaso.xnb 18 Content\player.xnb -
2015/27/JimiS/tasohyppely/hyppely/hyppely/hyppely/obj/x86/Debug/hyppely.csproj.FileListAbsolute.txt
r6727 r6742 22 22 C:\MyTemp\JimiS\tasohyppely\hyppely\hyppely\hyppely\bin\x86\Debug\Content\osuma.xnb 23 23 C:\MyTemp\JimiS\tasohyppely\hyppely\hyppely\hyppely\bin\x86\Debug\Content\rajahdys.xnb 24 C:\MyTemp\JimiS\tasohyppely\hyppely\hyppely\hyppely\bin\x86\Debug\Content\ammukset.xnb 25 C:\MyTemp\JimiS\tasohyppely\hyppely\hyppely\hyppely\bin\x86\Debug\Content\punainentaso.xnb 26 C:\MyTemp\JimiS\tasohyppely\hyppely\hyppely\hyppely\bin\x86\Debug\Content\player.xnb -
2015/27/JimiS/tasohyppely/hyppely/hyppely/hyppelyContent/hyppelyContent.contentproj
r6727 r6742 144 144 </Compile> 145 145 </ItemGroup> 146 <ItemGroup> 147 <Compile Include="ammukset.png"> 148 <Name>ammukset</Name> 149 <Importer>TextureImporter</Importer> 150 <Processor>TextureProcessor</Processor> 151 </Compile> 152 </ItemGroup> 153 <ItemGroup> 154 <Compile Include="punainentaso.png"> 155 <Name>punainentaso</Name> 156 <Importer>TextureImporter</Importer> 157 <Processor>TextureProcessor</Processor> 158 </Compile> 159 </ItemGroup> 160 <ItemGroup> 161 <Compile Include="player.png"> 162 <Name>player</Name> 163 <Importer>TextureImporter</Importer> 164 <Processor>TextureProcessor</Processor> 165 </Compile> 166 </ItemGroup> 146 167 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 147 168 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2015/27/JimiS/tasohyppely/hyppely/hyppely/hyppelyContent/kentta1.txt
r6727 r6742 3 3 ............................................................................................................####.....P*........................................................................................................................................................................................................................ 4 4 .................................P..*.............................................................................AAAAA........................................................................................................................................................................................................................ 5 ............................. ...AAAAA.......................................................................................................................................................... ...............................................................................................................................................5 .............................O..AAAAA.......................................................................................................................................................... ............................................................................................................................................... 6 6 .............................##..............................................................................*................................................................................................................................................................................................................................. 7 7 ........................###.............................................................................P..#####...............................................*............................................................................................................................................................................... 8 .................................................................................................. .....AAAA......................................*..........P..AA..............................................................................................................................................................................8 ..................................................................................................O....AAAA......................................*..........P..AA.............................................................................................................................................................................. 9 9 ...........................#......................................................................###..*.........................................##.......AAAA................................................................................................................................................................................. 10 10 ..........*..................##............*.....................................*....................####..P........................................###......................................................................................*.................................*.............................................................. 11 11 .......#######.......P...*............P....AAAAA......*P.......*.......*..P....AAAAA.......................AAA....*..........................................................................................................................###................*..............##.............................................................. 12 .........*......AAAAAAAAAAAAAAAA....####.......*.P..#####....###....#########...................................AAAA.....................................A.*............................................................................*. ...............*.....###................###.....*....................................................12 .........*......AAAAAAAAAAAAAAAA....####.......*.P..#####....###....#########...................................AAAA.....................................A.*............................................................................*.O..............*.....###................###.....*.................................................... 13 13 ........#####..............................########..........*.........................................P..................................................####..........................................................................###...P..*.......####...........................####................................................... 14 14 ..............#.......V*.............AAA..................AAAAAAA#........P...*..........P............AAAA.................................*...................AAAA...................................P*.....................................#####...............*...............................P...............................*.............
Note: See TracChangeset
for help on using the changeset viewer.