Changeset 9260 for 2017/31


Ignore:
Timestamp:
2017-07-31 11:50:25 (22 months ago)
Author:
npo17_69
Message:
 
Location:
2017/31/TaavettiV/Trumpsimulator/Trumpsimulator
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • 2017/31/TaavettiV/Trumpsimulator/Trumpsimulator/Trumpsimulator/Trumpsimulator.cs

    r9259 r9260  
    66using Jypeli.Effects; 
    77using Jypeli.Widgets; 
     8 
     9class Pelihahmo : PlatformCharacter 
     10{ 
     11    private IntMeter elamaLaskuri = new IntMeter(3, 0, 3); 
     12    public IntMeter ElamaLaskuri { get { return elamaLaskuri; } } 
     13 
     14    public Pelihahmo(double leveys, double korkeus) 
     15        : base(leveys, korkeus) 
     16    { 
     17        elamaLaskuri.LowerLimit += delegate { this.Destroy(); }; 
     18    } 
     19 
     20} 
     21 
    822 
    923public class Trumpsimulator : PhysicsGame 
     
    4357        Level.CreateBorders(); 
    4458        Level.Background.CreateGradient(Color.White, Color.SeaGreen); 
     59        Level.Background.Image = LoadImage("trump"); 
    4560    } 
    4661 
  • 2017/31/TaavettiV/Trumpsimulator/Trumpsimulator/TrumpsimulatorContent/TrumpsimulatorContent.contentproj

    r9259 r9260  
    8888    </Compile> 
    8989  </ItemGroup> 
     90  <ItemGroup> 
     91    <Compile Include="trump.png"> 
     92      <Name>trump</Name> 
     93      <Importer>TextureImporter</Importer> 
     94      <Processor>TextureProcessor</Processor> 
     95    </Compile> 
     96  </ItemGroup> 
    9097  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    9198  <!--  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.