Changeset 7722 for 2016/27/TuukkaH


Ignore:
Timestamp:
2016-07-04 14:56:18 (3 years ago)
Author:
karkaite
Message:
 
Location:
2016/27/TuukkaH/Pong
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/TuukkaH/Pong/Pong/Pong/Pong.cs

    r7693 r7722  
    88 
    99public class Pong : PhysicsGame 
     10     
    1011{ 
     12    PhysicsObject pallo; 
    1113    public override void Begin() 
     14        { 
     15        LuoKentta(); 
     16        AloitaPeli(); 
     17        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli");  
     18         
     19         
     20 
     21    } 
     22 
     23 
     24    void LuoKentta() 
    1225    { 
    13         PhysicsObject pallo = new PhysicsObject(40.0, 40.0); 
     26        pallo = new PhysicsObject(40.0, 40.0); 
    1427        Add(pallo); 
    1528        pallo.X = -0.0; 
    1629        pallo.Y = 0.0; 
    17         Vector impulssi = new Vector(500.0, 500.0); 
    18         pallo.Hit(impulssi); 
     30         
     31         
    1932        Level.CreateBorders(1.0, false); 
    2033        pallo.Restitution = 1.0; 
    2134        Level.Background.Color = Color.Blue; 
     35        pallo.Color = Color.Aqua; 
     36        Camera.ZoomToLevel(); 
    2237        // TODO: Kirjoita ohjelmakoodisi tähän 
    2338        pallo.Shape = Shape.Circle; 
    2439        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 
    25         Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
     40        PhysicsObject maila = PhysicsObject.CreateStaticObject(20.0, 100.0); 
     41        maila.Shape = Shape.Rectangle; 
     42        maila.X = Level.Left + 20.0; 
     43        maila.Y = 0.0; 
     44        maila.Restitution = 1.0; 
     45        Add(maila); 
     46        maila.Color = Color.Aqua; 
     47        maila.Y = -0.0; 
     48       maila.X = Level.Left-20.0; 
     49 
     50 
     51 
     52 
    2653    } 
    27     
     54    void AloitaPeli() 
     55    { 
     56        Vector impulssi = new Vector(500.0, 500.0); 
     57        pallo.Hit(impulssi); 
     58    } 
     59 
    2860} 
     61 
  • 2016/27/TuukkaH/Pong/Pong/Pong/obj/x86/Debug/ContentPipeline-{C0D9FD93-6810-4B22-B0CA-9724FC3766F6}.xml

    r7693 r7722  
    99      <BuildConfiguration>Debug</BuildConfiguration> 
    1010      <CompressContent>false</CompressContent> 
    11       <RootDirectory>C:\MyTemp\Pong\Pong\PongContent\</RootDirectory> 
    12       <LoggerRootDirectory>C:\MyTemp\Pong\Pong\Pong\</LoggerRootDirectory> 
    13       <IntermediateDirectory>C:\MyTemp\Pong\Pong\Pong\obj\x86\Debug\</IntermediateDirectory> 
    14       <OutputDirectory>C:\MyTemp\Pong\Pong\Pong\bin\x86\Debug\Content\</OutputDirectory> 
     11      <RootDirectory>C:\MyTemp\TuukkaH\Pong\Pong\PongContent\</RootDirectory> 
     12      <LoggerRootDirectory>C:\MyTemp\TuukkaH\Pong\Pong\Pong\</LoggerRootDirectory> 
     13      <IntermediateDirectory>C:\MyTemp\TuukkaH\Pong\Pong\Pong\obj\x86\Debug\</IntermediateDirectory> 
     14      <OutputDirectory>C:\MyTemp\TuukkaH\Pong\Pong\Pong\bin\x86\Debug\Content\</OutputDirectory> 
    1515    </Settings> 
    1616    <Assemblies> 
  • 2016/27/TuukkaH/Pong/Pong/Pong/obj/x86/Debug/Pong.csproj.FileListAbsolute.txt

    r7693 r7722  
    77C:\MyTemp\Pong\Pong\Pong\obj\x86\Debug\Pong.exe 
    88C:\MyTemp\Pong\Pong\Pong\obj\x86\Debug\Pong.pdb 
     9C:\MyTemp\TuukkaH\Pong\Pong\Pong\bin\x86\Debug\Pong.exe 
     10C:\MyTemp\TuukkaH\Pong\Pong\Pong\bin\x86\Debug\Pong.pdb 
     11C:\MyTemp\TuukkaH\Pong\Pong\Pong\bin\x86\Debug\Jypeli.dll 
     12C:\MyTemp\TuukkaH\Pong\Pong\Pong\bin\x86\Debug\Jypeli.xml 
     13C:\MyTemp\TuukkaH\Pong\Pong\Pong\obj\x86\Debug\Pong.csprojResolveAssemblyReference.cache 
     14C:\MyTemp\TuukkaH\Pong\Pong\Pong\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 
     15C:\MyTemp\TuukkaH\Pong\Pong\Pong\obj\x86\Debug\Pong.exe 
     16C:\MyTemp\TuukkaH\Pong\Pong\Pong\obj\x86\Debug\Pong.pdb 
  • 2016/27/TuukkaH/Pong/Pong/PongContent/obj/x86/Debug/PongContent.contentproj.FileListAbsolute.txt

    r7693 r7722  
    11C:\MyTemp\Pong\Pong\PongContent\obj\x86\Debug\PongContent.contentprojResolveAssemblyReference.cache 
     2C:\MyTemp\TuukkaH\Pong\Pong\PongContent\obj\x86\Debug\PongContent.contentprojResolveAssemblyReference.cache 
Note: See TracChangeset for help on using the changeset viewer.