Changeset 8533 for 2017/24


Ignore:
Timestamp:
2017-06-12 14:59:08 (2 years ago)
Author:
npo17_6
Message:
 
Location:
2017/24/SamuelN
Files:
4 added
10 edited

Legend:

Unmodified
Added
Removed
  • 2017/24/SamuelN/Bottleflip/Bottleflip/Bottleflip/Bottleflip.cs

    r8505 r8533  
    1111    public override void Begin() 
    1212    { 
     13        AloitaPeli(); 
     14    } 
     15    void AloitaPeli() 
     16    { 
     17        Color vari = RandomGen.NextColor(); 
     18        Color vari2 = RandomGen.NextColor(); 
     19        ClearAll(); 
    1320        Gravity = new Vector(0, -800); 
    14         IsFullScreen = true; 
    15  
    16         Color vari = RandomGen.NextColor(); 
     21        //IsFullScreen = true; 
     22        IsMouseVisible = true; 
     23        Level.Background.Color = vari2; 
    1724 
    1825        PhysicsObject pullo = new PhysicsObject(40, 120); 
     26        Camera.ZoomFactor = 1; 
    1927        pullo.Image = LoadImage("pullo"); 
    20         pullo.Y = -380; 
     28        pullo.Shape = Shape.FromImage(LoadImage("pullo")); 
    2129        Add(pullo); 
    2230 
    23         PhysicsObject alareuna = PhysicsObject.CreateStaticObject(2000, 100); 
     31 
     32        PhysicsObject alareuna = PhysicsObject.CreateStaticObject(2000, 200); 
    2433        alareuna.Y = -500; 
    2534        alareuna.Color = vari; 
     35        alareuna.Tag = "alareuna"; 
    2636        Add(alareuna); 
    2737 
    28         PhysicsObject ylareuna = PhysicsObject.CreateStaticObject(2000, 100); 
    29         ylareuna.Y = 500; 
    30         ylareuna.Color = vari; 
    31         Add(ylareuna); 
     38        PhysicsObject vasenreuna = PhysicsObject.CreateStaticObject(200, 3000); 
     39        vasenreuna.X = -1050; 
     40        vasenreuna.Y = 900; 
     41        Add(vasenreuna); 
    3242 
    33         PhysicsObject reuna1 = PhysicsObject.CreateStaticObject(100, 1000); 
    34         reuna1.X = 910; 
    35         reuna1.Color = vari; 
    36         Add(reuna1); 
    37  
    38         PhysicsObject reuna2 = PhysicsObject.CreateStaticObject(100, 1000); 
    39         reuna2.X = -910; 
    40         reuna2.Color = vari; 
    41         Add(reuna2); 
     43        PhysicsObject oikeareuna = PhysicsObject.CreateStaticObject(200, 3000); 
     44        oikeareuna.X = 1100; 
     45        oikeareuna.Y = 900; 
     46        Add(oikeareuna); 
    4247 
    4348        PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 
    4449        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    45         Keyboard.Listen(Key.Space, ButtonState.Released, Pyori, "Lopeta peli", pullo); 
     50        Keyboard.Listen(Key.R, ButtonState.Pressed, AloitaPeli, "Restart"); 
     51        Mouse.Listen(MouseButton.Left, ButtonState.Released, Pyori, "Heitä pullo", pullo); 
    4652    } 
    4753    void Pyori(PhysicsObject pullo) 
    4854    { 
    49         pullo.Hit(new Vector(500, 500)); 
    50         pullo.AngularVelocity = 40; 
     55        pullo.Hit(new Vector(0, 100)); 
     56        pullo.AngularVelocity = 30; 
    5157    } 
    5258} 
  • 2017/24/SamuelN/Bottleflip/Bottleflip/Bottleflip/obj/x86/Debug/Bottleflip.csproj.FileListAbsolute.txt

    r8505 r8533  
    77C:\MyTemp\Samuel_N\Bottleflip\Bottleflip\Bottleflip\obj\x86\Debug\Bottleflip.pdb 
    88C:\MyTemp\Samuel_N\Bottleflip\Bottleflip\Bottleflip\bin\x86\Debug\Content\pullo.xnb 
     9C:\MyTemp\SamuelN\Bottleflip\Bottleflip\Bottleflip\bin\x86\Debug\Content\pullo.xnb 
     10C:\MyTemp\SamuelN\Bottleflip\Bottleflip\Bottleflip\bin\x86\Debug\Bottleflip.exe 
     11C:\MyTemp\SamuelN\Bottleflip\Bottleflip\Bottleflip\bin\x86\Debug\Bottleflip.pdb 
     12C:\MyTemp\SamuelN\Bottleflip\Bottleflip\Bottleflip\bin\x86\Debug\Jypeli.dll 
     13C:\MyTemp\SamuelN\Bottleflip\Bottleflip\Bottleflip\bin\x86\Debug\Jypeli.xml 
     14C:\MyTemp\SamuelN\Bottleflip\Bottleflip\Bottleflip\obj\x86\Debug\Bottleflip.csprojResolveAssemblyReference.cache 
     15C:\MyTemp\SamuelN\Bottleflip\Bottleflip\Bottleflip\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 
     16C:\MyTemp\SamuelN\Bottleflip\Bottleflip\Bottleflip\obj\x86\Debug\Bottleflip.exe 
     17C:\MyTemp\SamuelN\Bottleflip\Bottleflip\Bottleflip\obj\x86\Debug\Bottleflip.pdb 
  • 2017/24/SamuelN/Bottleflip/Bottleflip/Bottleflip/obj/x86/Debug/ContentPipeline-{536D966A-8C7A-41D4-A0E3-DF5A9112B885}.xml

    r8505 r8533  
    88      <Processor>TextureProcessor</Processor> 
    99      <Options>None</Options> 
    10       <Output>C:\MyTemp\Samuel_N\Bottleflip\Bottleflip\Bottleflip\bin\x86\Debug\Content\pullo.xnb</Output> 
     10      <Output>C:\MyTemp\SamuelN\Bottleflip\Bottleflip\Bottleflip\bin\x86\Debug\Content\pullo.xnb</Output> 
    1111      <Time>2017-06-12T12:06:16.7330895+03:00</Time> 
    1212    </Item> 
     
    1818      <BuildConfiguration>Debug</BuildConfiguration> 
    1919      <CompressContent>false</CompressContent> 
    20       <RootDirectory>C:\MyTemp\Samuel_N\Bottleflip\Bottleflip\BottleflipContent\</RootDirectory> 
    21       <LoggerRootDirectory>C:\MyTemp\Samuel_N\Bottleflip\Bottleflip\Bottleflip\</LoggerRootDirectory> 
    22       <IntermediateDirectory>C:\MyTemp\Samuel_N\Bottleflip\Bottleflip\Bottleflip\obj\x86\Debug\</IntermediateDirectory> 
    23       <OutputDirectory>C:\MyTemp\Samuel_N\Bottleflip\Bottleflip\Bottleflip\bin\x86\Debug\Content\</OutputDirectory> 
     20      <RootDirectory>C:\MyTemp\SamuelN\Bottleflip\Bottleflip\BottleflipContent\</RootDirectory> 
     21      <LoggerRootDirectory>C:\MyTemp\SamuelN\Bottleflip\Bottleflip\Bottleflip\</LoggerRootDirectory> 
     22      <IntermediateDirectory>C:\MyTemp\SamuelN\Bottleflip\Bottleflip\Bottleflip\obj\x86\Debug\</IntermediateDirectory> 
     23      <OutputDirectory>C:\MyTemp\SamuelN\Bottleflip\Bottleflip\Bottleflip\bin\x86\Debug\Content\</OutputDirectory> 
    2424    </Settings> 
    2525    <Assemblies> 
Note: See TracChangeset for help on using the changeset viewer.