Changeset 2099 for 2011/24


Ignore:
Timestamp:
2011-06-17 12:38:10 (12 years ago)
Author:
jajusaar
Message:

Valmis.

Location:
2011/24/JaniS/Virus Infection
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • 2011/24/JaniS/Virus Infection/Virus Infection/Virus Infection/Peli.cs

    r2085 r2099  
    3131        Level.BackgroundColor = Color.Black; 
    3232 
     33        Label VI = new Label("VIRUS INFECTION"); 
     34        VI.TextColor = Color.Yellow; 
     35        VI.Position = new Vector(0, 200); 
     36        Add(VI); 
     37        VI.Font = Font.DefaultLarge; 
     38         
    3339        Label kohta1 = new Label("Arcade Mode"); 
    3440        kohta1.Position = new Vector(0, 90); 
     
    4854 
    4955 
    50         ohjeet = new List<>(); 
    51         Level.BackgroundColor = Color.Black; 
     56        //ohjeet = new List<>(); 
    5257 
    5358        foreach (Label valikonKohta in valikonKohdat) 
     
    5863        Mouse.ListenOn(kohta1, MouseButton.Left, ButtonState.Pressed, AloitaPeli, null); 
    5964        Mouse.ListenOn(kohta2, MouseButton.Left, ButtonState.Pressed, AloitaSurvivalMode, null); 
    60         Mouse.ListenOn(kohta3, MouseButton.Left, ButtonState.Pressed, List<> ohjeet, null); 
     65        Mouse.ListenOn(kohta3, MouseButton.Left, ButtonState.Pressed, ohjeet, null); 
    6166        Mouse.ListenOn(kohta4, MouseButton.Left, ButtonState.Pressed, Lopeta, null); 
    6267 
     
    6570        Keyboard.Listen(Key.Escape, ButtonState.Pressed, Lopeta, "Lopeta"); 
    6671 
     72    } 
     73 
     74    void ohjeet() 
     75    { 
     76        ClearAll(); 
     77        Ohjaus(); 
     78 
     79        Label Ohje = new Label("Controls: \n Use Arrow Keys to move. \n  Enter: Restart. \n  Space: Go to menu. \n  Esc: Exit. \n \n Arcade Mode: \n Don't touch the walls or enemies. \n Green area is goal. \n \n Survival Mode: \n Survive so long as you can!"); 
     80        Ohje.Color = Level.BackgroundColor; 
     81        Ohje.TextColor = Color.White; 
     82        Ohje.Position = new Vector(0, 0); 
     83        Add(Ohje); 
    6784    } 
    6885 
     
    87104        ClearAll(); 
    88105 
    89         foreach (Label kohta in valikonKohdat) 
     106       // foreach (Label kohta in valikonKohdat) 
    90107        LuoKentta("SurvivalMode.txt"); 
    91108        Ohjaus(); 
     109        Keyboard.Listen(Key.Enter, ButtonState.Down, AloitaSurAlusta, "Restart"); 
     110         
    92111    } 
    93112 
     
    98117            LuoKentta("Kentta.txt"); 
    99118            Ohjaus(); 
     119            Keyboard.Listen(Key.Enter, ButtonState.Down, AloitaAlusta, "Restart"); 
     120         
    100121        } 
    101122 
     
    207228        Keyboard.Listen(Key.Space, ButtonState.Pressed, Valikko, "Palaa valikkoon"); 
    208229 
    209         Keyboard.Listen(Key.Enter, ButtonState.Down, AloitaAlusta, "Restart"); 
    210          
    211230        Keyboard.Listen(Key.Escape, ButtonState.Pressed, Exit, "Poistu"); 
    212231 
     
    275294    } 
    276295 
    277     void nayttoViestit() 
    278     { 
    279  
    280     } 
    281  
    282296    void AloitaAlusta() 
    283297    { 
     
    285299        LuoKentta("kentta.txt"); 
    286300        Ohjaus(); 
    287  
    288     } 
     301        Keyboard.Listen(Key.Enter, ButtonState.Down, AloitaAlusta, "Restart"); 
     302 
     303    } 
     304 
     305    void AloitaSurAlusta() 
     306    { 
     307        ClearAll(); 
     308        LuoKentta("SurvivalMode.txt"); 
     309        Ohjaus(); 
     310        Keyboard.Listen(Key.Enter, ButtonState.Down, AloitaSurAlusta, "Restart"); 
     311         
     312    } 
     313 
    289314    void rajaytaVirukset() 
    290315    { 
  • 2011/24/JaniS/Virus Infection/Virus Infection/Virus Infection/SurvivalMode.txt

    r2085 r2099  
    33       #################### 
    44   ######................###### 
    5 #######....................####### 
    6 #####........................##### 
    7 ####..........................#### 
     5#######...x................####### 
     6#####...............x........##### 
     7####.x.........x..........x...#### 
    88###.......x....................### 
    9 ###............................### 
    10 ###......................x.....### 
    11 ###............................### 
    12 ###............................### 
     9###...............x............### 
     10###x.....................x.....### 
     11###..........x.................### 
     12###.....x.............x........### 
    1313###............................### 
    1414###.............O..............### 
     15###......x.................x...### 
     16###x.................x.........### 
    1517###............................### 
    16 ###............................### 
    17 ###............................### 
    18 ###............................### 
     18###..........x.................### 
    1919###.....x..............x.......### 
    2020###............................### 
    21 ####..........................#### 
    22 #####........................##### 
    23 #######....................####### 
     21####...............x..........#### 
     22#####......x.................##### 
     23#######..........x.........####### 
    2424   ######................###### 
    2525       #################### 
  • 2011/24/JaniS/Virus Infection/Virus Infection/Virus Infection/Virus Infection.csproj

    r2085 r2099  
    125125      <CopyToOutputDirectory>Always</CopyToOutputDirectory> 
    126126    </Content> 
    127     <Content Include="valo.png"> 
    128       <CopyToOutputDirectory>Always</CopyToOutputDirectory> 
    129     </Content> 
    130127  </ItemGroup> 
    131128  <ItemGroup> 
Note: See TracChangeset for help on using the changeset viewer.