Changeset 8805 for 2017/24


Ignore:
Timestamp:
2017-06-18 14:55:59 (2 years ago)
Author:
npo17_7
Message:

Hyvä minä

Location:
2017/24/MatiasK/SimpleGame
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • 2017/24/MatiasK/SimpleGame/SimpleGame/SimpleGame/SimpleGame.cs

    r8804 r8805  
    1616    Timer ajastin; 
    1717    LaserGun pelaajan1Ase; 
     18    //Label Name; 
    1819 
    1920    public override void Begin() 
     
    4142        Level.Background.CreateStars(10000); 
    4243 
    43         Label tekstikentta = new Label(205.0, 20.0, "Beat the score 500"); 
     44        Label tekstikentta = new Label(205.0, 20.0, "Beat the score 1056"); 
    4445        Add(tekstikentta); 
    4546 
     
    4748        tekstikentta.Y = Screen.Top - 150; 
    4849 
    49         Label NNae = new Label(200.0, 50.0, "Astropoint(Beta)"); 
    50         Add(NNae); 
    51  
    52         NNae.X = Screen.Left + 960; 
    53         NNae.Y = Screen.Top - 10; 
    54  
    55          
    56  
    57         NNae.Color = Color.BlueGray; 
    58         NNae.TextColor = Color.BloodRed; 
    59         NNae.BorderColor = Color.DarkGray; 
    60  
     50         
    6151        tekstikentta.Color = Color.Gold; 
    6252        tekstikentta.TextColor = Color.Maroon; 
     
    9282        pelaajan1Ase.IsVisible = false; 
    9383 
    94         Mouse.Listen(MouseButton.Left, ButtonState.Pressed, AmmuAseella, "Shoot", pelaajan1Ase); 
     84        Mouse.Listen(MouseButton.Left, ButtonState.Down, AmmuAseella, "Shoot", pelaajan1Ase); 
    9585 
    9686        MediaPlayer.IsRepeating = true; 
     
    223213        ajastin.Interval = 1.5; 
    224214        ajastin.Timeout += delegate { LisaaVihollisia(); if (ajastin.Interval > 0.1) ajastin.Interval -= 0.001; }; 
    225  
    226          
     215               
    227216 
    228217        ajastin.Timeout += LisaaVihollisia2; 
     
    280269    void BestScore() 
    281270    { 
     271                 
    282272    } 
    283273 
     
    293283 
    294284        valikonKohdat = new List<Label>(); // Alustetaan lista, johon valikon kohdat tulevat 
     285 
     286        //Name = new Label(200.0, 50.0, "Astropoint(Beta)"); 
     287        //Add(Name); 
     288 
     289        //Name.X = Screen.Left + 960; 
     290        //Name.Y = Screen.Top - 10; 
     291 
     292        //Name.Color = Color.BlueGray; 
     293        //Name.TextColor = Color.BloodRed; 
     294        //Name.BorderColor = Color.DarkGray; 
    295295 
    296296        Label kohta1 = new Label("Start Game");  // Luodaan uusi Label-olio, joka toimii uuden pelin aloituskohtana 
     
    370370class Vihu : PhysicsObject 
    371371{ 
    372     private IntMeter elamaLaskuri = new IntMeter(3, 0, 3); 
     372    private IntMeter elamaLaskuri = new IntMeter(10, 0, 10); 
    373373    public IntMeter ElamaLaskuri { get { return elamaLaskuri; } } 
    374374 
Note: See TracChangeset for help on using the changeset viewer.