Changeset 8778 for 2017


Ignore:
Timestamp:
2017-06-16 11:37:49 (2 years ago)
Author:
npo17_7
Message:

Kaikki valmista

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

Legend:

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

    r8743 r8778  
    3131        //Valikko(); 
    3232         
    33         LuoReuna(1920, 50, 0, Level.Top + 130); 
    34         LuoReuna(1920, 10, 0, Level.Bottom + -100); 
    35         LuoReuna(95, 2020, 1000, Level.Right); 
    36         LuoReuna(95, 2020, -1000, Level.Left); 
     33        LuoReuna(1920, 50, 0, Level.Top + 170); 
     34        LuoReuna(1920, 10, 0, Level.Bottom + -150); 
     35        LuoReuna(95, 2020, 1010, Level.Right); 
     36        LuoReuna(95, 2020, -1010, Level.Left); 
    3737        LuoPistelaskuri(); 
    3838 
     
    4141        Level.Background.CreateStars(10000); 
    4242 
     43        Label tekstikentta = new Label(200.0, 20.0, "Beat the score 434"); 
     44        Add(tekstikentta); 
     45 
     46        tekstikentta.X = Screen.Left + 130; 
     47        tekstikentta.Y = Screen.Top - 150; 
     48         
     49 
     50        tekstikentta.Color = Color.Gold; 
     51        tekstikentta.TextColor = Color.Maroon; 
     52        tekstikentta.BorderColor = Color.Green; 
    4353 
    4454        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Exit"); 
    4555 
    46          
    47  
     56        IsFullScreen = true; 
    4857 
    4958        Keyboard.Listen(Key.C, ButtonState.Pressed, ShowControlHelp, "Control help menu"); 
     
    118127        Keyboard.Listen(Key.R, ButtonState.Pressed, AloitaAlusta, "Reset"); 
    119128        Keyboard.Listen(Key.Space, ButtonState.Pressed, Explode, "Do not press"); 
     129         
    120130 
    121131    } 
     
    200210        ajastin = new Timer(); 
    201211        ajastin.Interval = 1.5; 
    202         ajastin.Timeout += LisaaVihollisia; 
     212        ajastin.Timeout += delegate { LisaaVihollisia(); if (ajastin.Interval > 0.1) ajastin.Interval -= 0.001; }; 
    203213 
    204214 
     
    236246            pisteLaskuri.AddValue(1); vihu.Destroy(); 
    237247        } 
    238         MessageDisplay.Add("Hit Enemy"); 
     248        //MessageDisplay.Add("Hit Enemy"); 
    239249    } 
    240250 
     
    347357class Vihu : PhysicsObject 
    348358{ 
    349     private IntMeter elamaLaskuri = new IntMeter(20, 0, 20); 
     359    private IntMeter elamaLaskuri = new IntMeter(10, 0, 10); 
    350360    public IntMeter ElamaLaskuri { get { return elamaLaskuri; } } 
    351361 
Note: See TracChangeset for help on using the changeset viewer.