Changeset 7404 for 2016/24/EemeliL


Ignore:
Timestamp:
2016-06-17 10:03:35 (3 years ago)
Author:
eemjohla
Message:

Peli (ehkä) valmis!

Location:
2016/24/EemeliL/JumpingOnPlatforms
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • 2016/24/EemeliL/JumpingOnPlatforms/JumpingOnPlatforms/JumpingOnPlatforms/JumpingOnPlatforms.cs

    r7387 r7404  
    1010{ 
    1111    double nopeus = 300; 
    12     const double hyppyNopeus = 750; 
     12    double hyppyNopeus = 800; 
    1313    const int RUUDUN_KOKO = 40; 
    1414 
     
    130130        Keyboard.Listen(Key.Left, ButtonState.Down, Liikuta, "Liikkuu vasemmalle", Papukaija, -1.0); 
    131131        Keyboard.Listen(Key.Right, ButtonState.Down, Liikuta, "Liikkuu vasemmalle", Papukaija, 1.0); 
    132         Keyboard.Listen(Key.Up, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", Papukaija, hyppyNopeus); 
    133  
    134         Keyboard.Listen(Key.F10, ButtonState.Pressed, Nopeuta, null, 2000.0); 
    135         Keyboard.Listen(Key.F10, ButtonState.Released, Nopeuta, null, 300.0); 
    136  
    137         Keyboard.Listen(Key.S, ButtonState.Down, Nopeuta, null, 300.0); 
    138  
    139         Keyboard.Listen(Key.F6, ButtonState.Down, Nopeuta, null, 30.0); 
    140  
    141         //Keyboard.Listen(Key.F7, ButtonState.Down, NopeutaHyppy, null, 30.0); 
     132        Keyboard.Listen(Key.Up, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", Papukaija); 
     133 
     134        Keyboard.Listen(Key.R, ButtonState.Pressed, AloitaAlusta, "Aloita peli alusta"); 
     135 
     136        Keyboard.Listen(Key.P, ButtonState.Pressed, Nopeuta, null, 2000.0);         
     137        Keyboard.Listen(Key.N, ButtonState.Pressed, Nopeuta, null, 300.0); 
     138        Keyboard.Listen(Key.S, ButtonState.Pressed, Nopeuta, null, 30.0); 
     139 
     140        Keyboard.Listen(Key.J, ButtonState.Pressed, NopeutaHyppy, null, 3000.0); 
     141        Keyboard.Listen(Key.H, ButtonState.Pressed, NopeutaHyppy, null, 800.0); 
    142142        
    143143        ControllerOne.Listen(Button.Back, ButtonState.Pressed, Exit, "Poistu pelistä"); 
     
    145145        ControllerOne.Listen(Button.DPadLeft, ButtonState.Down, Liikuta, "Pelaaja liikkuu vasemmalle", Papukaija, -1.0); 
    146146        ControllerOne.Listen(Button.DPadRight, ButtonState.Down, Liikuta, "Pelaaja liikkuu oikealle", Papukaija, 1.0); 
    147         ControllerOne.Listen(Button.A, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", Papukaija, hyppyNopeus); 
     147        ControllerOne.Listen(Button.A, ButtonState.Pressed, Hyppaa, "Pelaaja hyppää", Papukaija); 
    148148 
    149149        ControllerOne.Listen(Button.LeftTrigger, ButtonState.Pressed, Nopeuta, null, 2000.0); 
     
    171171    }   
    172172        
    173     void Hyppaa(PlatformCharacter hahmo, double nopeus) 
    174     {   
    175         hahmo.Jump(nopeus); 
     173    void Hyppaa(PlatformCharacter hahmo) 
     174    {   
     175        hahmo.Jump(hyppyNopeus); 
    176176 
    177177    }   
     
    275275    } 
    276276 
    277     //void NopeutaHyppy(double hyppyNopeus) 
    278     //////} 
     277    void NopeutaHyppy(double hyppyNopeus) 
     278    { 
     279        this.hyppyNopeus = hyppyNopeus; 
     280    } 
    279281 
    280282    void ParhaatPisteet() 
     
    322324 
    323325    } 
    324  
    325326     
    326327} 
  • 2016/24/EemeliL/JumpingOnPlatforms/JumpingOnPlatforms/JumpingOnPlatforms/bin/x86/Debug/Data/pisteet.xml

    r7387 r7404  
    66        <Item Index="0" Type="Jypeli.ScoreItem, Jypeli, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null"> 
    77          <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    8             <Value>Eemeli Lauronen (Pelin tekijä):) Public Override void Begin</Value> 
     8            <Value>Eemeli Lauronen (Pelin tekijä)</Value> 
    99          </Field> 
    1010          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    11             <Value>30.0000000000019</Value> 
     11            <Value>30.2300000000019</Value> 
    1212          </Field> 
    1313        </Item> 
    1414        <Item Index="1" Type="Jypeli.ScoreItem, Jypeli, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null"> 
    1515          <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    16             <Value>Eemeli Lauronen (Pelin tekijä):) Public Override void Begin</Value> 
     16            <Value>Eemeli Lauronen (Pelin tekijä)</Value> 
    1717          </Field> 
    1818          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    19             <Value>32.2300000000022</Value> 
     19            <Value>50.9799999999984</Value> 
    2020          </Field> 
    2121        </Item> 
    2222        <Item Index="2" Type="Jypeli.ScoreItem, Jypeli, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null"> 
    2323          <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    24             <Value>-</Value> 
     24            <Value>Eemeli Lauronen (Pelin tekijä)</Value> 
    2525          </Field> 
    2626          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    27             <Value>1000</Value> 
     27            <Value>151.900000000007</Value> 
    2828          </Field> 
    2929        </Item> 
     
    8787    </Field> 
    8888    <Field Name="LastEnteredName" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    89       <Value>Eemeli Lauronen (Pelin tekijä):) Public Override void Begin</Value> 
     89      <Value>Eemeli Lauronen (Pelin tekijä)</Value> 
    9090    </Field> 
    9191  </Object> 
  • 2016/24/EemeliL/JumpingOnPlatforms/JumpingOnPlatforms/JumpingOnPlatforms/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml

    r7387 r7404  
    7272      <Options>None</Options> 
    7373      <Output>C:\MyTemp\EemeliL\JumpingOnPlatforms\JumpingOnPlatforms\JumpingOnPlatforms\bin\x86\Debug\Content\kentta1.xnb</Output> 
    74       <Time>2016-06-16T14:19:31.4470034+03:00</Time> 
     74      <Time>2016-06-17T09:31:25.863236+03:00</Time> 
    7575    </Item> 
    7676    <BuildSuccessful>true</BuildSuccessful> 
  • 2016/24/EemeliL/JumpingOnPlatforms/JumpingOnPlatforms/JumpingOnPlatformsContent/kentta1.txt

    r7387 r7404  
    33           
    44           
    5            V * V    
     5             * V    
    66         ########      A 
    77        * *   *  *    ###  
    88        # #     V #      #  V 
    9     #######  ##   ####  
     9     ######  ##   ####  
    1010#    * * *   V * * V * * V 
    1111   # #  #  # ##    ##   ##  
    12   **** **** ******** **** * 
     12# **** **** ******** **** * 
    1313 *************N************* 
    1414############################   
Note: See TracChangeset for help on using the changeset viewer.