Changeset 4460 for 2013/27


Ignore:
Timestamp:
2013-07-05 11:14:48 (6 years ago)
Author:
akansaja
Message:

Talletus.

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  
    1414      internal int y; 
    1515 
    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") }; 
    1717 
    1818        public Kuutio(int indexY, int indexX, int health, int x, int y) 
     
    2525            this.y = y; 
    2626            this.health = health; 
    27             Color = healthvarit[health - 1]; 
     27            Image = healthvarit[health - 1]; 
    2828            X = indexX * 100 +50; 
    2929            Y = (indexY + 2) * 100 + 50; 
  • 2013/27/AkseliJ/Levypallo/Levypallo/Levypallo/Levypallo.cs

    r4457 r4460  
    137137            if (k.health > 0) 
    138138            { 
    139                 k.Color = Kuutio.healthvarit[k.health - 1]; 
     139                k.Image = Kuutio.healthvarit[k.health - 1]; 
    140140            } 
    141141            if (k.health <= 0) 
  • 2013/27/AkseliJ/Levypallo/Levypallo/LevypalloContent/LevypalloContent.contentproj

    r4457 r4460  
    6666    </Compile> 
    6767  </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> 
    6896  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    6997  <!--  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.