- Timestamp:
- 2013-07-05 11:14:48 (10 years ago)
- Location:
- 2013/27/AkseliJ/Levypallo/Levypallo
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
2013/27/AkseliJ/Levypallo/Levypallo/Levypallo/Kuutio.cs
r4431 r4460 14 14 internal int y; 15 15 16 public static Color[] healthvarit = { Color.Green, Color.Red, Color.Purple, Color.Yellow, Color.Brown};16 public static Image[] healthvarit = { Levypallo.LoadImage("Vihreapalikka"), Levypallo.LoadImage("Punainenpalikka"), Levypallo.LoadImage("Lilapalikka"), Levypallo.LoadImage("Keltainenpalikka"), Levypallo.LoadImage("Ruskeapalikka") }; 17 17 18 18 public Kuutio(int indexY, int indexX, int health, int x, int y) … … 25 25 this.y = y; 26 26 this.health = health; 27 Color= healthvarit[health - 1];27 Image = healthvarit[health - 1]; 28 28 X = indexX * 100 +50; 29 29 Y = (indexY + 2) * 100 + 50; -
2013/27/AkseliJ/Levypallo/Levypallo/Levypallo/Levypallo.cs
r4457 r4460 137 137 if (k.health > 0) 138 138 { 139 k. Color= Kuutio.healthvarit[k.health - 1];139 k.Image = Kuutio.healthvarit[k.health - 1]; 140 140 } 141 141 if (k.health <= 0) -
2013/27/AkseliJ/Levypallo/Levypallo/LevypalloContent/LevypalloContent.contentproj
r4457 r4460 66 66 </Compile> 67 67 </ItemGroup> 68 <ItemGroup> 69 <Compile Include="Punainenpalikka.png"> 70 <Name>Punainenpalikka</Name> 71 <Importer>TextureImporter</Importer> 72 <Processor>TextureProcessor</Processor> 73 </Compile> 74 </ItemGroup> 75 <ItemGroup> 76 <Compile Include="Lilapalikka.png"> 77 <Name>Lilapalikka</Name> 78 <Importer>TextureImporter</Importer> 79 <Processor>TextureProcessor</Processor> 80 </Compile> 81 </ItemGroup> 82 <ItemGroup> 83 <Compile Include="Keltainenpalikka.png"> 84 <Name>Keltainenpalikka</Name> 85 <Importer>TextureImporter</Importer> 86 <Processor>TextureProcessor</Processor> 87 </Compile> 88 </ItemGroup> 89 <ItemGroup> 90 <Compile Include="Ruskeapalikka.png"> 91 <Name>Ruskeapalikka</Name> 92 <Importer>TextureImporter</Importer> 93 <Processor>TextureProcessor</Processor> 94 </Compile> 95 </ItemGroup> 68 96 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 69 97 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset
for help on using the changeset viewer.