- Timestamp:
- 2011-06-09 21:39:30 (11 years ago)
- Location:
- 2011/23/iltakuop/Blocks/Blocks
- Files:
-
- 2 added
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/23/iltakuop/Blocks/Blocks/Blocks/Peli.cs
r1828 r1837 31 31 int isoMaila = 0; 32 32 int pieniMaila = 0; 33 int isoPallo = 0; 34 int pieniPallo = 0; 33 35 //Vector nopeusVasen = new Vector(-600, 0); 34 36 … … 78 80 public override void Begin() 79 81 { 80 for (int i = 1; i < 8; i++)82 for (int i = 1; i < 10; i++) 81 83 { 82 84 kuvat.Add(LoadImage("Power" + i)); … … 517 519 { 518 520 PudotaPower(kohde, 7); 521 } 522 else if ((Power > 29) && (Power < 35)) 523 { 524 PudotaPower(kohde, 8); 525 } 526 else if ((Power > 34) && (Power < 40)) 527 { 528 PudotaPower(kohde, 9); 519 529 } 520 530 } … … 848 858 } 849 859 860 } 861 862 else if (kohde.Tag.ToString() == "Power9") 863 { 864 865 if (pieniPallo == 1) 866 { 867 PalautaPallo(); 868 } 869 else if (isoPallo == 0) 870 { 871 pallo.Size = new Vector(24, 24); 872 isoPallo = 1; 873 Timer.SingleShot(20, PalautaPallo); 874 } 875 876 kohde.Destroy(); 877 } 878 else if (kohde.Tag.ToString() == "Power8") 879 { 880 if (isoPallo == 1) 881 { 882 PalautaPallo(); 883 } 884 else if (pieniPallo == 0) 885 { 886 kohde.Destroy(); 887 pieniPallo = 1; 888 pallo.Size = new Vector(12, 12); 889 Timer.SingleShot(20, PalautaPallo); 890 } 850 891 851 892 } … … 877 918 878 919 pieniMaila = 0; 920 } 921 922 } 923 924 void PalautaPallo() 925 { 926 if (isoPallo == 1) 927 { 928 isoPallo = 0; 929 } 930 if (pieniPallo == 1) 931 { 932 pieniPallo = 0; 879 933 } 880 934 -
2011/23/iltakuop/Blocks/Blocks/BlocksContent/BlocksContent.contentproj
r1824 r1837 72 72 </ItemGroup> 73 73 <ItemGroup> 74 <Compile Include=" Bonus - Pallo+.png">75 <Name> Bonus - Pallo+</Name>76 <Importer>TextureImporter</Importer> 77 <Processor>TextureProcessor</Processor> 78 </Compile> 79 </ItemGroup> 80 <ItemGroup> 81 <Compile Include=" Bonus - Pallo–.png">82 <Name> Bonus - Pallo–</Name>74 <Compile Include="Power9.png"> 75 <Name>Power9</Name> 76 <Importer>TextureImporter</Importer> 77 <Processor>TextureProcessor</Processor> 78 </Compile> 79 </ItemGroup> 80 <ItemGroup> 81 <Compile Include="Power8.png"> 82 <Name>Power8</Name> 83 83 <Importer>TextureImporter</Importer> 84 84 <Processor>TextureProcessor</Processor>
Note: See TracChangeset
for help on using the changeset viewer.