Changeset 2780 for 2012/23/JimB/Zong


Ignore:
Timestamp:
2012-06-04 20:46:03 (8 years ago)
Author:
jijoback
Message:

Parantelin.

Location:
2012/23/JimB/Zong/Zong/Zong
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 2012/23/JimB/Zong/Zong/Zong/Zong.cs

    r2770 r2780  
    1111    Vector nopeusYlos = new Vector(0, 425); 
    1212    Vector nopeusAlas = new Vector(0, -425); 
     13    Vector nopeusOikea = new Vector(425, 0); 
     14    Vector nopeusVasen = new Vector(-425, 0); 
    1315 
    1416    PhysicsObject maila1; 
     
    2426    public override void Begin() 
    2527    { 
    26         // TODO: Kirjoita ohjelmakoodisi tähän 
    2728 
    2829        LuoKentta(); 
     
    3435    void LuoKentta() 
    3536    { 
    36         pallo = new PhysicsObject(45, 45); 
     37        pallo = new PhysicsObject(20, 50); 
    3738        pallo.Shape = Shape.Circle; 
    3839        pallo.Color = Color.Black; 
     
    106107        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta Peli"); 
    107108         
    108         Keyboard.Listen(Key.A, ButtonState.Down, AsetaNopeus, "Pelaaja 1: Liikuta mailaa ylös", maila1, nopeusYlos); 
     109        Keyboard.Listen(Key.W, ButtonState.Down, AsetaNopeus, "Pelaaja 1: Liikuta mailaa ylös", maila1, nopeusYlos); 
     110        Keyboard.Listen(Key.W, ButtonState.Released, AsetaNopeus, null, maila1, Vector.Zero); 
     111        Keyboard.Listen(Key.S, ButtonState.Down, AsetaNopeus, "Pelaaja 1: Liikuta mailaa alas", maila1, nopeusAlas); 
     112        Keyboard.Listen(Key.S, ButtonState.Released, AsetaNopeus, null, maila1, Vector.Zero); 
     113        Keyboard.Listen(Key.D, ButtonState.Down, AsetaNopeus, "OJHJJH", maila1, nopeusOikea); 
     114        Keyboard.Listen(Key.D, ButtonState.Released, AsetaNopeus, null, maila1, Vector.Zero); 
     115        Keyboard.Listen(Key.A, ButtonState.Down, AsetaNopeus, "OJHJJH", maila1, nopeusVasen); 
    109116        Keyboard.Listen(Key.A, ButtonState.Released, AsetaNopeus, null, maila1, Vector.Zero); 
    110         Keyboard.Listen(Key.Z, ButtonState.Down, AsetaNopeus, "Pelaaja 1: Liikuta mailaa alas", maila1, nopeusAlas); 
    111         Keyboard.Listen(Key.Z, ButtonState.Released, AsetaNopeus, null, maila1, Vector.Zero); 
    112117 
    113118        Keyboard.Listen(Key.Up, ButtonState.Down, AsetaNopeus, "Pelaaja 2: Liikuta mailaa ylös", maila2, nopeusYlos); 
     
    115120        Keyboard.Listen(Key.Down, ButtonState.Down, AsetaNopeus, "Pelaaja 2: Liikuta mailaa alas", maila2, nopeusAlas); 
    116121        Keyboard.Listen(Key.Down, ButtonState.Released, AsetaNopeus, null, maila2, Vector.Zero); 
     122        Keyboard.Listen(Key.Right, ButtonState.Down, AsetaNopeus, "OJHJJH", maila2, nopeusOikea); 
     123        Keyboard.Listen(Key.Right, ButtonState.Released, AsetaNopeus, null, maila2, Vector.Zero); 
     124        Keyboard.Listen(Key.Left, ButtonState.Down, AsetaNopeus, "OJHJJHg", maila2, nopeusVasen); 
     125        Keyboard.Listen(Key.Left, ButtonState.Released, AsetaNopeus, null, maila2, Vector.Zero); 
    117126 
    118127        Keyboard.Listen(Key.F1, ButtonState.Pressed, ShowControlHelp, "Näytä ohjeet"); 
  • 2012/23/JimB/Zong/Zong/Zong/Zong.csproj

    r2770 r2780  
    1919    <ApplicationIcon>Game.ico</ApplicationIcon> 
    2020    <Thumbnail>GameThumbnail.png</Thumbnail> 
     21    <IsWebBootstrapper>false</IsWebBootstrapper> 
     22    <ReferencePath>$(registry:HKEY_LOCAL_MACHINE\Software\Jypeli@Install_Dir)\lib\x86</ReferencePath> 
    2123    <PublishUrl>publish\</PublishUrl> 
    2224    <Install>true</Install> 
     
    3133    <ApplicationRevision>0</ApplicationRevision> 
    3234    <ApplicationVersion>1.0.0.%2a</ApplicationVersion> 
    33     <IsWebBootstrapper>false</IsWebBootstrapper> 
    3435    <UseApplicationTrust>false</UseApplicationTrust> 
    3536    <BootstrapperEnabled>true</BootstrapperEnabled> 
    36     <ReferencePath>$(registry:HKEY_LOCAL_MACHINE\Software\Jypeli@Install_Dir)\lib\x86</ReferencePath> 
    3737  </PropertyGroup> 
    3838  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> 
     
    6363  <ItemGroup> 
    6464    <Reference Include="Jypeli"> 
     65    </Reference> 
     66    <Reference Include="Jypeli4, Version=4.2.1.0, Culture=neutral, processorArchitecture=x86"> 
     67      <SpecificVersion>False</SpecificVersion> 
     68      <HintPath>..\..\..\..\..\..\..\..\..\..\..\Program Files (x86)\Jypeli\lib\x86\Jypeli4.dll</HintPath> 
    6569    </Reference> 
    6670    <Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86"> 
Note: See TracChangeset for help on using the changeset viewer.