Changeset 5673 for 2014/30


Ignore:
Timestamp:
2014-07-25 11:18:16 (9 years ago)
Author:
lailrant
Message:

Tasohyppelypelin viimeistelyä.

Location:
2014/30/LauriR
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • 2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus/obj/x86/Debug/ContentPipeline-{D6EAC6A9-8675-4ACB-8A67-C6CE954765FB}.xml

    r5642 r5673  
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\LauriR\tesohyppelytestaus\tesohyppelytestaus\tesohyppelytestaus\bin\x86\Debug\Content\kentta1.xnb</Output> 
    38       <Time>2014-07-24T14:53:43.0376121+03:00</Time> 
     38      <Time>2014-07-25T11:16:08.7243146+03:00</Time> 
    3939    </Item> 
    4040    <Item> 
  • 2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestaus.cs

    r5642 r5673  
    99public class tesohyppelytestaus : PhysicsGame 
    1010{ 
     11 
    1112 
    1213    const double nopeus = 200; 
     
    144145        MessageDisplay.Add("Keräsit kranaatin :/"); 
    145146        tahti.Destroy(); 
     147 
     148        pisteLaskuri.Value += 2; 
    146149    } 
    147150 
     
    161164        MessageDisplay.Add("Keräsit kultaisensienen JEE :D"); 
    162165        sieni.Destroy(); 
     166 
     167        pisteLaskuri.Value += 5; 
    163168    } 
    164169 
     
    177182    { 
    178183        maaliAani.Play(); 
    179         MessageDisplay.Add("oisuit kissaan hävisit pelin"); 
     184        MessageDisplay.Add("oisuit kissaan auts"); 
    180185        //hahmo.Destroy(); 
    181186        hahmo.Position = viimeisinCheckpoint; 
     187 
     188        pisteLaskuri.Value -= 2; 
    182189    } 
    183190 
     
    200207        //hahmo.Destroy(); 
    201208        hahmo.Position = viimeisinCheckpoint; 
     209 
     210        pisteLaskuri.Value -= 2; 
    202211    } 
    203212 
     
    214223    { 
    215224        maaliAani.Play(); 
    216         MessageDisplay.Add("voitto"); 
     225        MessageDisplay.Add("voitit pelin!"); 
     226        pisteLaskuri.Value += 50;  //49 
    217227    } 
    218228 
     
    247257        pisteNaytto.BindTo(pisteLaskuri); 
    248258        Add(pisteNaytto); 
    249     } 
    250  
    251  
     259 
     260        IntMeter keratytEsineet = new IntMeter(0); 
     261        pisteLaskuri.MaxValue = 99; 
     262        pisteLaskuri.UpperLimit += KaikkiKeratty; 
     263 
     264        IntMeter pelaajanElamat = new IntMeter(3); 
     265        pisteLaskuri.MinValue = -50; 
     266        pisteLaskuri.LowerLimit += PelaajaHaviaa; 
     267    } 
     268 
     269    void KaikkiKeratty() 
     270    { 
     271        MessageDisplay.Add("Pelaaja 1 voitti pelin."); 
     272    } 
     273 
     274    void PelaajaHaviaa() 
     275    { 
     276        MessageDisplay.Add("Pelaaja 1 hävisi pelin."); 
     277    } 
    252278 
    253279   
  • 2014/30/LauriR/tesohyppelytestaus/tesohyppelytestaus/tesohyppelytestausContent/kentta1.txt

    r5642 r5673  
    44S        
    55#      
    6     ##           *     *     *    K      * 
     6    ##           *     *     *    K      *     
    77          ##    ##    ##    ##    ##    ##   ## 
    88 
    9                  K     S     K           *     K   *  
     9                 K     S     K           *     K   *M  
    1010          ##    ##    ##    ##    ##    ##    ##   ## 
    1111       M 
    12 P     *#PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 
     12P     *#PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP        *  
    1313#     ########################################## 
    1414       #                            # 
     
    2323       #                          M # 
    2424P  #  P#     #PP##PPP##PP##PP##PP####             
    25 #     ##     #SSSSSSSSSSSSSSSSSSSSSS#            
     25#     ##     #SSSSSSSSSSSSSSSSSSSSSS#                           
    2626#*    *#     #SSSSSSSSSSSSSSSSSSSSSS# 
    27 ###  ###     #SSSSSSSSSSSSSSSSSSSSSS#   
    28 #*           #SSSSSSSSSSSSSSSSSSSSSS# 
    29 #   M       *#SSSSSSSSSSSSSSSSSSSSSS# 
    30 #####################################PPPPPPPPPPPPPPPPPPPPPPP  PPPPPPPPPPPP 
    31                                                           #    # 
    32                                                           #  E # 
    33                                                           #    #      
    34                                                           ###### 
     27###  ###     #SSSSSSSSSSSSSSSSSSSSSS#           #    # 
     28#*           #SSSSSSSSSSSSSSSSSSSSSS#       # 
     29#   M       *#SSSSSSSSSSSSSSSSSSSSSS#S  # 
     30#######################################PPPPPPPPPPPPPPPPPPPPP  PPPPPPPPPPPP 
     31###########################################################    # 
     32                                                          #    ############## 
     33                                                          #                 #   
     34                                                          #             E   # 
     35                                                          #                 # 
     36                                                          ######PPP########## 
    3537                                                                                                        
    3638                                               
Note: See TracChangeset for help on using the changeset viewer.