Changeset 6854


Ignore:
Timestamp:
2015-07-21 13:03:32 (4 years ago)
Author:
jotapoti
Message:

Tasoloikkapeli, jossa norsun tilalle on vaihdettu hymyilevä naama.

Location:
2015/30/JouniP
Files:
56 added
6 edited

Legend:

Unmodified
Added
Removed
  • 2015/30/JouniP/Pallopeli/Pallopeli/Pallopeli/Pallopeli.cs

    r6827 r6854  
    1111    public override void Begin() 
    1212    { 
    13         //SetWindowSize(800, 600); 
     13        SetWindowSize(800, 600); 
    1414        //Camera.Zoom(1.2); 
    1515        //Level.Size = new Vector(Window.Width, Window.Height); 
     16        Level.Size = Screen.Size; 
    1617        Level.Background.Color = Color.Black; 
    17         Camera.ZoomToLevel(); 
     18        MessageDisplay.Add(Screen.Size.X.ToString()); 
     19         
    1820        Level.CreateBorders(); 
    1921 
    2022        Gravity = new Vector(10, -2000); 
    21  
    22          
    23         //PhysicsObject pallo = new PhysicsObject(50.0, 50.0); 
    24         //pallo.Shape = Shape.Octagon; 
    25         //pallo.Color = Color.HotPink; 
    26         //pallo.X = 0.0; 
    27         //pallo.Y = 0.0; 
    28         //Add(pallo); 
    2923 
    3024        LuoPallo(0.0, 0.0, Color.HotPink, 50.0); 
     
    3529        LuoPallo(-100.0, 0.0, Color.Aquamarine, 50.0); 
    3630 
    37          
     31        Camera.ZoomToLevel(); 
    3832        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    3933    } 
Note: See TracChangeset for help on using the changeset viewer.