- Timestamp:
- 2011-06-17 12:38:10 (12 years ago)
- 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 31 31 Level.BackgroundColor = Color.Black; 32 32 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 33 39 Label kohta1 = new Label("Arcade Mode"); 34 40 kohta1.Position = new Vector(0, 90); … … 48 54 49 55 50 ohjeet = new List<>(); 51 Level.BackgroundColor = Color.Black; 56 //ohjeet = new List<>(); 52 57 53 58 foreach (Label valikonKohta in valikonKohdat) … … 58 63 Mouse.ListenOn(kohta1, MouseButton.Left, ButtonState.Pressed, AloitaPeli, null); 59 64 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); 61 66 Mouse.ListenOn(kohta4, MouseButton.Left, ButtonState.Pressed, Lopeta, null); 62 67 … … 65 70 Keyboard.Listen(Key.Escape, ButtonState.Pressed, Lopeta, "Lopeta"); 66 71 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); 67 84 } 68 85 … … 87 104 ClearAll(); 88 105 89 foreach (Label kohta in valikonKohdat)106 // foreach (Label kohta in valikonKohdat) 90 107 LuoKentta("SurvivalMode.txt"); 91 108 Ohjaus(); 109 Keyboard.Listen(Key.Enter, ButtonState.Down, AloitaSurAlusta, "Restart"); 110 92 111 } 93 112 … … 98 117 LuoKentta("Kentta.txt"); 99 118 Ohjaus(); 119 Keyboard.Listen(Key.Enter, ButtonState.Down, AloitaAlusta, "Restart"); 120 100 121 } 101 122 … … 207 228 Keyboard.Listen(Key.Space, ButtonState.Pressed, Valikko, "Palaa valikkoon"); 208 229 209 Keyboard.Listen(Key.Enter, ButtonState.Down, AloitaAlusta, "Restart");210 211 230 Keyboard.Listen(Key.Escape, ButtonState.Pressed, Exit, "Poistu"); 212 231 … … 275 294 } 276 295 277 void nayttoViestit()278 {279 280 }281 282 296 void AloitaAlusta() 283 297 { … … 285 299 LuoKentta("kentta.txt"); 286 300 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 289 314 void rajaytaVirukset() 290 315 { -
2011/24/JaniS/Virus Infection/Virus Infection/Virus Infection/SurvivalMode.txt
r2085 r2099 3 3 #################### 4 4 ######................###### 5 #######... .................#######6 #####............... .........#####7 ####. .........................####5 #######...x................####### 6 #####...............x........##### 7 ####.x.........x..........x...#### 8 8 ###.......x....................### 9 ###............... .............###10 ### ......................x.....###11 ###.......... ..................###12 ###..... .......................###9 ###...............x............### 10 ###x.....................x.....### 11 ###..........x.................### 12 ###.....x.............x........### 13 13 ###............................### 14 14 ###.............O..............### 15 ###......x.................x...### 16 ###x.................x.........### 15 17 ###............................### 16 ###............................### 17 ###............................### 18 ###............................### 18 ###..........x.................### 19 19 ###.....x..............x.......### 20 20 ###............................### 21 ####............... ...........####22 #####...... ..................#####23 #######.......... ..........#######21 ####...............x..........#### 22 #####......x.................##### 23 #######..........x.........####### 24 24 ######................###### 25 25 #################### -
2011/24/JaniS/Virus Infection/Virus Infection/Virus Infection/Virus Infection.csproj
r2085 r2099 125 125 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 126 126 </Content> 127 <Content Include="valo.png">128 <CopyToOutputDirectory>Always</CopyToOutputDirectory>129 </Content>130 127 </ItemGroup> 131 128 <ItemGroup>
Note: See TracChangeset
for help on using the changeset viewer.