Changeset 3161


Ignore:
Timestamp:
2012-06-25 14:57:19 (8 years ago)
Author:
jaollipa
Message:

Talletus.

Location:
2012/26/EetuH/Pong
Files:
7 added
3 edited

Legend:

Unmodified
Added
Removed
  • 2012/26/EetuH/Pong/Pong/Pong/Pong.cs

    r3142 r3161  
    99public class Pong : PhysicsGame 
    1010{ 
    11     public override void Beging() 
     11    PhysicsObject pallo; 
     12    public override void Begin() 
    1213    { 
    13         PhysicsObject pallo = new PhysicsObject(100.0, 100.0); 
    14         pallo.Shape 
    1514 
     15        LuoKentta(); 
     16        Vector impulssi = new Vector(500.0, 0.0); 
     17        pallo.Hit(impulssi); 
     18         
     19        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    1620 
     21    } 
     22         void LuoKentta() 
     23    { 
     24         pallo = new PhysicsObject(40.0, 40.0); 
     25        pallo.Shape = Shape.Circle; 
     26        pallo.X = -200.0; 
     27        pallo.Y = 0.0; 
     28        pallo.Restitution = 1.0; 
     29        Add(pallo); 
     30        PhysicsObject maila = PhysicsObject.CreateStaticObject(20.0, 100.0); 
     31        maila.Shape = Shape.Rectangle; 
     32        maila.X = Level.Left + 20.0; 
     33        maila.Y = 0.0; 
     34        maila.Restitution = 1.0; 
     35        Add(maila); 
    1736 
    18         // TODO: Kirjoita ohjelmakoodisi tähän 
     37        Level.CreateBorders(1.0, false); 
     38        Level.BackgroundColor = Color.Black; 
    1939 
    20         PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 
    21         Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
     40        Camera.ZoomToLevel(); 
    2241    } 
    23 } 
     42        void AloitaPeli() 
     43    { 
     44    } 
     45 
     46    } 
     47 
     48  
     49 
  • 2012/26/EetuH/Pong/Pong/Pong/obj/x86/Debug/Pong.csproj.FileListAbsolute.txt

    r3142 r3161  
    11C:\MyTemp\EetuH\Pong\Pong\Pong\obj\x86\Debug\ResolveAssemblyReference.cache 
    22C:\MyTemp\EetuH\Pong\Pong\Pong\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 
     3C:\MyTemp\EetuH\Pong\Pong\Pong\bin\x86\Debug\Pong.exe 
     4C:\MyTemp\EetuH\Pong\Pong\Pong\bin\x86\Debug\Pong.pdb 
     5C:\MyTemp\EetuH\Pong\Pong\Pong\bin\x86\Debug\Jypeli.dll 
     6C:\MyTemp\EetuH\Pong\Pong\Pong\bin\x86\Debug\Jypeli.xml 
     7C:\MyTemp\EetuH\Pong\Pong\Pong\obj\x86\Debug\Pong.exe 
     8C:\MyTemp\EetuH\Pong\Pong\Pong\obj\x86\Debug\Pong.pdb 
Note: See TracChangeset for help on using the changeset viewer.