Changeset 4707 for 2013/30


Ignore:
Timestamp:
2013-07-26 11:33:22 (6 years ago)
Author:
totakahe
Message:

Talletus.

Location:
2013/30/VilleF/Lentokone/Lentokone
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • 2013/30/VilleF/Lentokone/Lentokone/Lentokone/Lentokone.cs

    r4667 r4707  
    88 
    99public class Lentokone : PhysicsGame 
    10 {  
     10{ 
     11 
     12    Font fontti = LoadFont("PisteFontti"); 
    1113    private Animation rasa; 
    1214    private Animation sauruksenLento; 
     
    4446        rasa = LoadAnimation("rasanen"); 
    4547 
    46         Level.Width = 1920; 
    47         Level.Height = 1080; 
     48        Level.Width = 1024; 
     49        Level.Height =  820; 
    4850        Gravity = new Vector(0.0, -500); 
    4951        //MediaPl-ayer.Play(" 
     
    8890        PhysicsObject oikeaReuna = Level.CreateRightBorder(); 
    8991        oikeaReuna.CollisionIgnoreGroup = 2; 
     92        oikeaReuna.IsVisible = false; 
     93 
    9094 
    9195        PhysicsObject vasenReuna = Level.CreateLeftBorder(); 
    9296        vasenReuna.CollisionIgnoreGroup = 2; 
    93  
     97        vasenReuna.IsVisible = false; 
    9498 
    9599    } 
     
    225229        if (KomboLaskuri.Value == 10) 
    226230        { 
    227             Label tekstikentta = new Label("Kissat on koiria"); 
    228             Add(tekstikentta); 
     231            MessageDisplay.Add( "Fatality" ); 
     232            MessageDisplay.TextColor = Color.Red; 
     233            MessageDisplay.MessageTime = new TimeSpan(0, 0, 2); 
     234            MessageDisplay.X = Screen.Left + 500; 
     235            MessageDisplay.Y = 0; 
    229236        } 
    230237        if (KomboLaskuri.Value > 6)    {} 
     
    323330            }; 
    324331        } 
     332 
     333 
    325334        else 
    326335        { 
  • 2013/30/VilleF/Lentokone/Lentokone/LentokoneContent/LentokoneContent.contentproj

    r4667 r4707  
    153153    </Compile> 
    154154  </ItemGroup> 
     155  <ItemGroup> 
     156    <Compile Include="PisteFontti.spritefont"> 
     157      <Name>PisteFontti</Name> 
     158      <Importer>FontDescriptionImporter</Importer> 
     159      <Processor>FontDescriptionProcessor</Processor> 
     160    </Compile> 
     161  </ItemGroup> 
    155162  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    156163  <!--  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.