Changeset 4891


Ignore:
Timestamp:
2014-06-06 12:25:05 (9 years ago)
Author:
jotapoti
Message:
 
Location:
2014/23/ErikT/peli12/peli12
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • 2014/23/ErikT/peli12/peli12/peli12/peli12.cs

    r4881 r4891  
    2020    int kerattavatpullot = 0; 
    2121    int keratutpullot = 0; 
    22     int kenttaNro = 1; 
    23     const int MAX_LEVEL = 5; 
     22    int kenttaNro = 4; 
     23    const int MAX_LEVEL = 4; 
    2424 
    2525    PlatformCharacter pelaaja; 
     
    2727    Image tasoKuva3 = LoadImage("hiekkakivi"); 
    2828    Image tasoKuva2 = LoadImage("ruohoa"); 
    29     Image taustaKuva = LoadImage("kukukukukuku"); 
    3029    Image pelaajanKuva = LoadImage("markoboy1"); 
    3130    Image pulloKuva = LoadImage("pullokuva"); 
     
    6059        Level.Background.Color = Color.Gray; 
    6160        Level.Background.FitToLevel(); 
    62     } 
    63  
    64     void LisaaBossi(Vector paikka, double leveys, double korkeus) 
    65     { 
    66         PlatformCharacter bossi = new PlatformCharacter(300.0, 300.0); 
    67         Add(bossi); 
    68  
    69         FollowerBrain seuraajanAivot = new FollowerBrain(pelaaja); 
    70         seuraajanAivot.Speed = 60; 
    71         seuraajanAivot.DistanceFar = 200; 
    72         seuraajanAivot.DistanceClose = 100; 
    73         seuraajanAivot.StopWhenTargetClose = true; 
    74  
    75         seuraajanAivot.TargetClose += KunLahella; 
    76     } 
    77  
    78     void KunLahella(); 
    79     { 
    80          
    81     } 
    82  
    83          
     61    }        
    8462 
    8563    void LisaaVihollinen(Vector paikka, double leveys, double korkeus) 
  • 2014/23/ErikT/peli12/peli12/peli12Content/kentta2.txt

    r4881 r4891  
    11################################ 
    22                               # 
    3  *               *       G  *  #  
     3 *               *          *  #  
    44#####     #####    #############         
    55  *        G         *         #        
    66#######   #######   ############ 
    77                               # 
    8          *          *     G    # 
     8         *          *          # 
    99       ####   ####L############# 
    1010                 ###           # 
     
    1212      ###                      #  
    1313  * G         *           *    # 
    14 ######   ########   #####LLL####                   
    15                         #####  # 
     14######   ################LL#####                   
     15                               #####   # 
    1616   N   *            *    G     # 
    1717###########  ################### 
  • 2014/23/ErikT/peli12/peli12/peli12Content/kentta3.txt

    r4881 r4891  
    77      MMM       *           *  M                   M 
    88               MMMM       MMMM           G   *     M 
    9   *       MMM       MMM                MMMMMMMMMMMMM  
    10 MMMMMM                      G         M            M  
     9  *       MMM       MMM                MMMLMMMMMMMMM  
     10MMMMMM                      G         M   M        M  
    1111                          MMMM     MMM             M   
    12         MMM                                        M            
     12        MMM                                        M           M 
    1313    *G M     *       MMM      MMM                  M 
    1414MMMMMMMM  M   MMM                   *              M 
     
    1616                                      M            M 
    1717                      MM       MMM     M           M 
    18   *  M   MMM              MMM           M  * G   * M 
    19 MMMMMM             *   G    *            MMMMMMMMMMM  
    20               MMMLLMMMMMMMMMMMMMMM                M                        
     18  *  M   MMM              MMM           M  *     * M 
     19MMMMMM             *   G    *            MMMMMMLLMMM  
     20              MMMLLMMMMMMMMMMMMMMM            MMMM M                        
    2121           MMM  MMMM                               M    
    2222                       *                 *         M 
     
    2525             MMMMM            MMMM             MMMMM 
    2626  N    G       *                *      G       *   M 
    27 MMMMMMMMMMMMMMMMMMMMMMM    MMMMMMMMMMMMMMMMMMMMMMMMM 
    28                       MLLLLM 
     27MMMMMMMMMMMMMMMMMMMMMMM    MMMMMMMMMMMMMLMMMMMMMMMMM 
     28                      MLLLLM           MMM  
    2929                      MMMMMM 
  • 2014/23/ErikT/peli12/peli12/peli12Content/kentta4.txt

    r4881 r4891  
    88MMMMMMMMM               M  *                       M 
    99          MM   G *   M   M              *          M  
    10               MMMMMMMM     MMMMMMM  MMMMMMMMMMM    M  
    11        *  MMMM        M                           MM   
     10              MMMMLMMM     MMMMMMM  MMMMMMMMMMM    M  
     11       *  MMMM    M   M                           MM   
    1212      MMMM  M  N       M  *         G    *         M   M         
    1313     M      MMMMM      MMMMMMM  MMMMMMMMMMMMMMMMM  M 
     
    2121      MMM         M  M M       M  MMM    MMM    M  M 
    2222            G  *  M  M*M      M       *         M  M                               
    23    MMMMMMMMMMMMMMMM  M M     M       MMM        M  M 
    24 M                           M            MMM    M  M 
     23   MMMMMMMMMMMMMMLM  M M     M       MMM        M  M 
     24M                M          M            MMM    M  M 
    2525           G *                   G                 M 
    26 MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM 
     26MMMMMMMMMMMMMMMMMMMMMM  MMMMMMMMMLLMMMMMMMMMMMMMMMMM 
     27                     MLLM       MMMM 
     28                                         MMMM 
  • 2014/23/ErikT/peli12/peli12/peli12Content/peli12Content.contentproj

    r4881 r4891  
    211211    </Compile> 
    212212  </ItemGroup> 
    213   <ItemGroup> 
    214     <Compile Include="kentta5.txt"> 
    215       <Name>kentta5</Name> 
    216       <Importer>TextFileImporter</Importer> 
    217       <Processor>TextFileContentProcessor</Processor> 
    218     </Compile> 
    219   </ItemGroup> 
    220213  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    221214  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
Note: See TracChangeset for help on using the changeset viewer.