- Timestamp:
- 2012-06-08 10:09:48 (11 years ago)
- Location:
- 2012/23/LeoS/leoS
- Files:
-
- 10 added
- 2 deleted
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/23/LeoS/leoS/leoS/leoS.cs
r2843 r2859 12 12 bool pelaajaIlmassa = false; 13 13 SoundEffect hyppyAani = LoadSoundEffect("Jump"); 14 15 16 14 17 15 public override void Begin() 18 16 { 19 17 MediaPlayer.Play("Tausta"); 18 IsFullScreen = true; 20 19 Alustukset(); 21 20 } … … 25 24 ClearAll(); 26 25 MultiSelectWindow valikko = new MultiSelectWindow("Menu", "Read This Before\nYou Start Game", "Level 1", "Level 2", "Level 3", 27 "Level 4", " Skill Level 1","Exit Game"); valikko.ItemSelected += PainettiinValikonNappia;26 "Level 4", "Level 5", "Level 6", "Skill Level 1","Skill Level 2", "Skill Level 3", "Exit Game"); valikko.ItemSelected += PainettiinValikonNappia; 28 27 valikko.Color = Color.Gold; 29 28 valikko.DefaultCancel = -1; … … 52 51 Camera.Follow(pelaaja); 53 52 } 54 53 54 void AloitaPeli2(string levelFile) 55 { 56 LataaKentta(levelFile); 57 Level.Background.CreateGradient(Color.Teal, Color.Ruby); 58 Gravity = new Vector(0, 400); 59 60 Surface yläreuna = Surface.CreateTop(Level); 61 yläreuna.IsVisible = false; 62 yläreuna.Tag = "reuna"; 63 Add(yläreuna); 64 65 Surface oikeareuna = Surface.CreateRight(Level); 66 oikeareuna.IsVisible = false; 67 oikeareuna.Color = Color.Ultramarine; 68 oikeareuna.Tag = "muuri"; 69 Add(oikeareuna); 70 AsetaOhjaimet(); 71 Camera.Follow(pelaaja); 72 LuoAikaLaskuri3(); 73 74 } 75 55 76 void PainettiinValikonNappia(int valinta) 56 77 { … … 73 94 break; 74 95 case 5: 96 AloitaPeli("kentta6,2"); 97 break; 98 case 6: 99 AloitaPeli("kentta7"); 100 break; 101 case 7: 102 AloitaPeli2("kentta6"); 103 break; 104 case 8: 75 105 AloitaPeli2("kentta5"); 76 106 break; 77 case 6: 107 case 9: 108 AloitaPeli2("kentta7,2"); 109 break; 110 case 10: 78 111 Exit(); 79 112 break; … … 81 114 } 82 115 } 116 83 117 void LataaKentta(string levelFile) 84 118 { … … 223 257 LuoAikaLaskuri(); 224 258 } 225 void AloitaPeli2(string levelFile) 226 { 227 LataaKentta(levelFile); 228 Level.Background.CreateGradient(Color.Teal, Color.Ruby); 229 Gravity = new Vector(0, 400); 230 231 Surface yläreuna = Surface.CreateTop(Level); 232 yläreuna.IsVisible = false; 233 yläreuna.Tag = "reuna"; 234 Add(yläreuna); 235 236 Surface oikeareuna = Surface.CreateRight(Level); 237 oikeareuna.IsVisible = false; 238 oikeareuna.Color = Color.Ultramarine; 239 oikeareuna.Tag = "muuri"; 240 Add(oikeareuna); 241 AsetaOhjaimet(); 242 Camera.Follow(pelaaja); 243 LuoAikaLaskuri3(); 244 245 } 259 246 260 void Hyppy2(PhysicsObject pelaaja) 247 261 { … … 258 272 { 259 273 Timer aikaLaskuri = new Timer(); 260 aikaLaskuri.Interval = 2. 5;274 aikaLaskuri.Interval = 2.0; 261 275 aikaLaskuri.Timeout += delegate { Alustukset(); }; 262 276 aikaLaskuri.Start(1); … … 267 281 268 282 Label tekstikentta = new Label("teksti"); 269 tekstikentta.Text = "Jump with UP-Button,Move forward with RIGHT-Button and Jump down with DOWN-Button, \nyou have 2 minutes to reach the goal,if you ran out of time,\nyou will automatically return to Menu";283 tekstikentta.Text = "Jump=UP-Button, Move forward=RIGHT-Button, to flying mode=press Right repeatedly\nFall down=DOWN-Button, Return to Menu=Esc, you have 2 minutes to reach the end\nif you ran out of time,you will automatically return to Menu"; 270 284 271 285 tekstikentta.TextColor = Color.Red; … … 274 288 275 289 Label tekstikentta2 = new Label("teksti"); 276 tekstikentta2.Text = "This screen is readable about 5seconds";290 tekstikentta2.Text = "This screen is readable about 7 seconds"; 277 291 tekstikentta2.TextColor = Color.Yellow; 278 292 tekstikentta2.Font = Font.DefaultLargeBold; … … 284 298 { 285 299 Timer aikaLaskuri = new Timer(); 286 aikaLaskuri.Interval = 5;300 aikaLaskuri.Interval = 7; 287 301 aikaLaskuri.Timeout += delegate { Alustukset(); }; 288 302 aikaLaskuri.Start(); … … 320 334 aikaLaskuri.Start(); 321 335 } 322 323 324 325 336 } 326 337 -
2012/23/LeoS/leoS/leoS/leoS.csproj.Debug.cachefile
r2840 r2859 6 6 Content\Tausta2.xnb 7 7 Content\Jump.xnb 8 Content\Antigravity.xnb9 8 Content\kentta5.xnb 9 Content\kentta6.xnb 10 Content\kentta6,2.xnb 11 Content\kentta7.xnb 12 Content\kentta7,2.xnb 13 Content\Random.xnb 10 14 Content\Tausta.wma 11 15 Content\Tausta2.wma -
2012/23/LeoS/leoS/leoS/obj/x86/Debug/cachefile-{25605763-3341-4275-93D9-4B0A394A16A7}-targetpath.txt
r2840 r2859 8 8 Content\Tausta2.wma 9 9 Content\Jump.xnb 10 Content\Antigravity.xnb11 10 Content\kentta5.xnb 11 Content\kentta6.xnb 12 Content\kentta6,2.xnb 13 Content\kentta7.xnb 14 Content\kentta7,2.xnb 15 Content\Random.xnb 12 16 Content\kentta1.txt -
2012/23/LeoS/leoS/leoS/obj/x86/Debug/leoS.csproj.FileListAbsolute.txt
r2840 r2859 33 33 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\Tausta2.wma 34 34 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\Jump.xnb 35 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\Antigravity.xnb36 35 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta5.xnb 36 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta6.xnb 37 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta6,2.xnb 38 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta7.xnb 39 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta7,2.xnb 40 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\Random.xnb -
2012/23/LeoS/leoS/leoSContent/kentta2.txt
r2840 r2859 1 2 ### 3 # 4 # 5 # 6 # 1 # 7 2 # # # 8 # #### ### ## # # # #9 * # # T# # #3 # #### ### ## # # # # 4 * # # # # # 10 5 * # # # # # # 11 6 * # T # # # # 12 7 ###### * # # ################### # 13 * # T 14 * # ######## # 15 # # * # T # T16 # # ******* # # 17 # # # # 18 # # ## # # # T T # ########## # # # # # # 19 P # # ########## # # T # # # 20 ############ ###### ########## ##### ##8 * # T T T T ################################# ############# 9 * # ######## # 10 # # * # T # 11 # # ******* # # 12 # # # # 13 # # ## # # # T T # ########## # # # # # # 14 P # # ########## # # T # # # 15 ############ ###### ########## ###### # -
2012/23/LeoS/leoS/leoSContent/kentta5.txt
r2843 r2859 1 1 ##### # # * # * # # 2 P # # # # # # # * # # ###########33 # # * 2 P # # # # # # # * # # # ########### 3 # # * # # # * # *#* # 4 4 # 5 5 # -
2012/23/LeoS/leoS/leoSContent/leoSContent.contentproj
r2840 r2859 81 81 </ItemGroup> 82 82 <ItemGroup> 83 <Compile Include="Antigravity.png">84 <Name>Antigravity</Name>85 <Importer>TextureImporter</Importer>86 <Processor>TextureProcessor</Processor>87 </Compile>88 </ItemGroup>89 <ItemGroup>90 83 <Compile Include="Jump.wav"> 91 84 <Name>Jump</Name> … … 108 101 </Compile> 109 102 </ItemGroup> 103 <ItemGroup> 104 <Compile Include="kentta6.txt"> 105 <Name>kentta6</Name> 106 <Importer>TextFileImporter</Importer> 107 <Processor>TextFileContentProcessor</Processor> 108 </Compile> 109 </ItemGroup> 110 <ItemGroup> 111 <Compile Include="kentta6,2.txt"> 112 <Name>kentta6,2</Name> 113 <Importer>TextFileImporter</Importer> 114 <Processor>TextFileContentProcessor</Processor> 115 </Compile> 116 </ItemGroup> 117 <ItemGroup> 118 <Compile Include="kentta7.txt"> 119 <Name>kentta7</Name> 120 <Importer>TextFileImporter</Importer> 121 <Processor>TextFileContentProcessor</Processor> 122 </Compile> 123 </ItemGroup> 124 <ItemGroup> 125 <Compile Include="Random.png"> 126 <Name>Random</Name> 127 <Importer>TextureImporter</Importer> 128 <Processor>TextureProcessor</Processor> 129 </Compile> 130 </ItemGroup> 131 <ItemGroup> 132 <Compile Include="kentta7,2.txt"> 133 <Name>kentta7,2</Name> 134 <Importer>TextFileImporter</Importer> 135 <Processor>TextFileContentProcessor</Processor> 136 </Compile> 137 </ItemGroup> 110 138 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 111 139 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2012/23/LeoS/leoS/leoSContent/obj/x86/Debug/ContentPipeline.xml
r2843 r2859 18 18 <Options>None</Options> 19 19 <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta2.xnb</Output> 20 <Time>2012-06-07T1 4:20:29.8583106+03:00</Time>20 <Time>2012-06-07T19:28:12.3272248+03:00</Time> 21 21 </Item> 22 22 <Item> … … 68 68 </Item> 69 69 <Item> 70 <Source>Antigravity.png</Source>71 <Name>Antigravity</Name>72 <Importer>TextureImporter</Importer>73 <Processor>TextureProcessor</Processor>74 <Options>None</Options>75 <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\Antigravity.xnb</Output>76 <Time>2012-06-07T09:07:21.2011363+03:00</Time>77 </Item>78 <Item>79 70 <Source>kentta5.txt</Source> 80 71 <Name>kentta5</Name> … … 83 74 <Options>None</Options> 84 75 <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta5.xnb</Output> 85 <Time>2012-06-07T16:45:01.8492111+03:00</Time> 76 <Time>2012-06-07T18:38:14.7552811+03:00</Time> 77 </Item> 78 <Item> 79 <Source>kentta6.txt</Source> 80 <Name>kentta6</Name> 81 <Importer>TextFileImporter</Importer> 82 <Processor>TextFileContentProcessor</Processor> 83 <Options>None</Options> 84 <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta6.xnb</Output> 85 <Time>2012-06-07T19:56:56.993565+03:00</Time> 86 </Item> 87 <Item> 88 <Source>kentta6,2.txt</Source> 89 <Name>kentta6,2</Name> 90 <Importer>TextFileImporter</Importer> 91 <Processor>TextFileContentProcessor</Processor> 92 <Options>None</Options> 93 <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta6,2.xnb</Output> 94 <Time>2012-06-08T09:29:32.617727+03:00</Time> 95 </Item> 96 <Item> 97 <Source>kentta7.txt</Source> 98 <Name>kentta7</Name> 99 <Importer>TextFileImporter</Importer> 100 <Processor>TextFileContentProcessor</Processor> 101 <Options>None</Options> 102 <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta7.xnb</Output> 103 <Time>2012-06-08T09:54:51.6402935+03:00</Time> 104 </Item> 105 <Item> 106 <Source>kentta7,2.txt</Source> 107 <Name>kentta7,2</Name> 108 <Importer>TextFileImporter</Importer> 109 <Processor>TextFileContentProcessor</Processor> 110 <Options>None</Options> 111 <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta7,2.xnb</Output> 112 <Time>2012-06-08T10:06:50.9112935+03:00</Time> 113 </Item> 114 <Item> 115 <Source>Random.png</Source> 116 <Name>Random</Name> 117 <Importer>TextureImporter</Importer> 118 <Processor>TextureProcessor</Processor> 119 <Options>None</Options> 120 <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\Random.xnb</Output> 121 <Time>2012-06-07T14:32:18.3233106+03:00</Time> 86 122 </Item> 87 123 <BuildSuccessful>true</BuildSuccessful>
Note: See TracChangeset
for help on using the changeset viewer.