- Timestamp:
- 2014-08-01 10:56:59 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/30/MikkoL/Gradiant/LM2/LM2/Gradiant.cs
r5700 r5702 222 222 223 223 GameObject stage_clear; 224 GameObject stage2_clear; 225 GameObject stage3_clear; 226 GameObject stage4_clear; 224 227 225 228 GameObject bg; … … 284 287 ControllerOne.Listen(Button.Start, ButtonState.Pressed, Select_ship, null); 285 288 289 #if DEBUG 286 290 Keyboard.Listen(Key.D1 ,ButtonState.Pressed, cheat_skiptolvl1, null); 287 291 Keyboard.Listen(Key.D2, ButtonState.Pressed, cheat_skiptolvl2, null); … … 289 293 290 294 Keyboard.Listen(Key.D4, ButtonState.Pressed, cheat_skiptolvl4, null); 295 #endif 291 296 } 292 297 void Select_ship() … … 721 726 722 727 //cheat 728 #if DEBUG 723 729 Keyboard.Listen(Key.U, ButtonState.Pressed, cheat_upgrade, null); 724 730 Keyboard.Listen(Key.I, ButtonState.Pressed, cheat_damage, null); 725 731 Keyboard.Listen(Key.O, ButtonState.Pressed, cheat_spread, null); 726 732 Keyboard.Listen(Key.H, ButtonState.Pressed, cheat_fullhp, null); 733 #endif 727 734 728 735 } … … 802 809 void cheat_skiptolvl1() 803 810 { 804 selectsfx.Play();805 811 806 812 ClearControls(); … … 855 861 void cheat_skiptolvl2() 856 862 { 857 selectsfx.Play();858 863 859 864 ClearControls(); … … 908 913 void cheat_skiptolvl3() 909 914 { 910 selectsfx.Play();911 915 912 916 ClearControls(); … … 961 965 void cheat_skiptolvl4() 962 966 { 963 selectsfx.Play();964 967 965 968 ClearControls(); … … 3413 3416 fade.Start(); 3414 3417 3415 stage _clear = new GameObject(290, 39);3416 stage _clear.Image = stage_2_clear;3417 stage _clear.Position = cntr;3418 stage2_clear = new GameObject(290, 39); 3419 stage2_clear.Image = stage_2_clear; 3420 stage2_clear.Position = cntr; 3418 3421 3419 3422 Timer stageclr = new Timer(); … … 3421 3424 stageclr.Timeout += delegate 3422 3425 { 3423 if (stage _clear.IsVisible) stage_clear.IsVisible = false;3424 else stage _clear.IsVisible = true;3426 if (stage2_clear.IsVisible) stage2_clear.IsVisible = false; 3427 else stage2_clear.IsVisible = true; 3425 3428 }; 3426 3429 … … 3429 3432 wait.Timeout += delegate 3430 3433 { 3431 Add(stage _clear, 3);3434 Add(stage2_clear, 3); 3432 3435 stageclr.Start(); 3433 3436 SoundEffect.MasterVolume = 0.2; … … 3461 3464 fade.Start(); 3462 3465 3463 stage _clear = new GameObject(271, 35);3464 stage _clear.Image = stage_3_clear;3465 stage _clear.Position = cntr;3466 stage3_clear = new GameObject(271, 35); 3467 stage3_clear.Image = stage_3_clear; 3468 stage3_clear.Position = cntr; 3466 3469 3467 3470 Timer stageclr = new Timer(); … … 3469 3472 stageclr.Timeout += delegate 3470 3473 { 3471 if (stage _clear.IsVisible) stage_clear.IsVisible = false;3472 else stage _clear.IsVisible = true;3474 if (stage3_clear.IsVisible) stage3_clear.IsVisible = false; 3475 else stage3_clear.IsVisible = true; 3473 3476 }; 3474 3477 … … 3477 3480 wait.Timeout += delegate 3478 3481 { 3479 Add(stage _clear, 3);3482 Add(stage3_clear, 3); 3480 3483 stageclr.Start(); 3481 3484 SoundEffect.MasterVolume = 0.2; … … 3509 3512 fade.Start(); 3510 3513 3511 stage _clear = new GameObject(272, 35);3512 stage _clear.Image = congratulations;3513 stage _clear.Position = cntr;3514 stage4_clear = new GameObject(272, 35); 3515 stage4_clear.Image = congratulations; 3516 stage4_clear.Position = cntr; 3514 3517 3515 3518 Timer stageclr = new Timer(); … … 3517 3520 stageclr.Timeout += delegate 3518 3521 { 3519 if (stage _clear.IsVisible) stage_clear.IsVisible = false;3520 else stage _clear.IsVisible = true;3522 if (stage4_clear.IsVisible) stage4_clear.IsVisible = false; 3523 else stage4_clear.IsVisible = true; 3521 3524 }; 3522 3525 … … 3525 3528 wait.Timeout += delegate 3526 3529 { 3527 Add(stage _clear, 3);3530 Add(stage4_clear, 3); 3528 3531 stageclr.Start(); 3529 3532 SoundEffect.MasterVolume = 0.2;
Note: See TracChangeset
for help on using the changeset viewer.