- Timestamp:
- 2012-06-07 15:50:08 (11 years ago)
- Location:
- 2012/23/LeoS
- Files:
-
- 43 added
- 2 deleted
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/23/LeoS/leoS.sln
r2798 r2840 4 4 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "leoS", "leoS\leoS\leoS.csproj", "{6196B3C5-D76A-4434-9C26-D0D3AA645667}" 5 5 EndProject 6 Project("{ 96E2B04D-8817-42C6-938A-82C39BA4D311}") = "leoSContent", "leoS\leoSContent\leoSContent.contentproj", "{25605763-3341-4275-93D9-4B0A394A16A7}"6 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "leoSContent", "leoS\leoSContent\leoSContent.contentproj", "{25605763-3341-4275-93D9-4B0A394A16A7}" 7 7 EndProject 8 8 Global 9 9 GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 Debug|Mixed Platforms = Debug|Mixed Platforms 11 Debug|Windows Phone = Debug|Windows Phone 10 12 Debug|x86 = Debug|x86 13 Release|Mixed Platforms = Release|Mixed Platforms 14 Release|Windows Phone = Release|Windows Phone 11 15 Release|x86 = Release|x86 12 16 EndGlobalSection 13 17 GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 {6196B3C5-D76A-4434-9C26-D0D3AA645667}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 19 {6196B3C5-D76A-4434-9C26-D0D3AA645667}.Debug|Mixed Platforms.Build.0 = Debug|x86 20 {6196B3C5-D76A-4434-9C26-D0D3AA645667}.Debug|Windows Phone.ActiveCfg = Debug|x86 21 {6196B3C5-D76A-4434-9C26-D0D3AA645667}.Debug|Windows Phone.Build.0 = Debug|x86 14 22 {6196B3C5-D76A-4434-9C26-D0D3AA645667}.Debug|x86.ActiveCfg = Debug|x86 15 23 {6196B3C5-D76A-4434-9C26-D0D3AA645667}.Debug|x86.Build.0 = Debug|x86 24 {6196B3C5-D76A-4434-9C26-D0D3AA645667}.Release|Mixed Platforms.ActiveCfg = Release|x86 25 {6196B3C5-D76A-4434-9C26-D0D3AA645667}.Release|Mixed Platforms.Build.0 = Release|x86 26 {6196B3C5-D76A-4434-9C26-D0D3AA645667}.Release|Windows Phone.ActiveCfg = Release|x86 27 {6196B3C5-D76A-4434-9C26-D0D3AA645667}.Release|Windows Phone.Build.0 = Release|x86 16 28 {6196B3C5-D76A-4434-9C26-D0D3AA645667}.Release|x86.ActiveCfg = Release|x86 17 29 {6196B3C5-D76A-4434-9C26-D0D3AA645667}.Release|x86.Build.0 = Release|x86 30 {25605763-3341-4275-93D9-4B0A394A16A7}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 31 {25605763-3341-4275-93D9-4B0A394A16A7}.Debug|Windows Phone.ActiveCfg = Debug|x86 18 32 {25605763-3341-4275-93D9-4B0A394A16A7}.Debug|x86.ActiveCfg = Debug|x86 33 {25605763-3341-4275-93D9-4B0A394A16A7}.Release|Mixed Platforms.ActiveCfg = Release|x86 34 {25605763-3341-4275-93D9-4B0A394A16A7}.Release|Windows Phone.ActiveCfg = Release|x86 19 35 {25605763-3341-4275-93D9-4B0A394A16A7}.Release|x86.ActiveCfg = Release|x86 20 36 EndGlobalSection -
2012/23/LeoS/leoS/leoS/bin/x86/Debug/Content/kentta1.txt
r2824 r2840 1 1 2 * # 3 * # 4 * # # # 5 * # # # 6 * # # * * * * * * * * * # 7 ########## * # # # 8 # * # # # 9 # * # # # # # #10 ## # T # * # # # # # # 2 * # 3 * # 4 * # # # 5 * # # # 6 * # # * * * * * * * * * # 7 ########## * # # # 8 # * # # # 9 # * # # # ## 10 ## # T # * # # # # # # 11 11 ### #### ## ### ###### ## ### # * * * * # 12 # # # # 13 # # # 14 # # # 15 # ####### ############ 16 ## ### # 17 # # # 18 # # # 19 W # T # #######12 # # # # 13 # # # 14 # # # 15 # ####### ############ 16 ## ### # 17 # # # 18 # # # 19 # T # ####### 20 20 P #### #### #### # T T 21 ############ ######### 21 ############ ######### -
2012/23/LeoS/leoS/leoS/leoS.cs
r2828 r2840 12 12 bool pelaajaIlmassa = false; 13 13 SoundEffect hyppyAani = LoadSoundEffect("Jump"); 14 Image extrakuva = LoadImage("Antigravity"); 14 15 15 16 16 17 public override void Begin() 17 18 { 19 MediaPlayer.Play("Tausta"); 20 Alustukset(); 21 } 22 23 void Alustukset() 24 { 18 25 ClearAll(); 19 MultiSelectWindow valikko = new MultiSelectWindow 20 "Level 4", " Exit Game"); valikko.ItemSelected += PainettiinValikonNappia;26 MultiSelectWindow valikko = new MultiSelectWindow("Menu", "Read This Before\nYou Start Game", "Level 1", "Level 2", "Level 3", 27 "Level 4", "Level 5", "Exit Game"); valikko.ItemSelected += PainettiinValikonNappia; 21 28 valikko.Color = Color.Gold; 22 29 valikko.DefaultCancel = -1; … … 24 31 } 25 32 26 27 28 33 void AloitaPeli(string levelFile) 29 34 { 30 31 32 33 34 35 LataaKentta(levelFile); 35 36 37 36 Level.Background.CreateGradient(Color.Teal, Color.Ruby); 38 37 Gravity = new Vector(0, -400); 39 38 LuoAikaLaskuri3(); 40 39 41 //MediaPlayer.Play("Tausta"); 40 42 41 43 42 Surface alareuna = Surface.CreateBottom(Level); … … 54 53 } 55 54 56 57 55 void PainettiinValikonNappia(int valinta) 58 56 { … … 72 70 break; 73 71 case 4: 74 AloitaPeli 2("kentta4");72 AloitaPeli("kentta4"); 75 73 break; 76 74 case 5: 75 AloitaPeli2("kentta5"); 76 break; 77 case 6: 77 78 Exit(); 78 79 break; 80 79 81 } 80 82 } 81 83 void LataaKentta(string levelFile) 82 84 { 83 85 TileMap ruudut = TileMap.FromLevelAsset(levelFile); … … 105 107 } 106 108 107 108 109 void PelaajaOsuiReunaan(PhysicsObject tormaaja, PhysicsObject kohde) 109 110 { … … 118 119 tekstikentta.Font = Font.DefaultLarge; 119 120 LuoAikaLaskuri(); 120 121 122 121 } 123 122 … … 143 142 void AsetaOhjaimet() 144 143 { 145 Keyboard.Listen(Key.Escape, ButtonState. Pressed, ConfirmExit, "Poistu");144 Keyboard.Listen(Key.Escape, ButtonState.Down, Alustukset, "Poistu"); 146 145 Keyboard.Listen(Key.Right, ButtonState.Pressed, Etene, "Pelaaja 1: hyppää", pelaaja); 147 146 Keyboard.Listen(Key.Up, ButtonState.Pressed, Hyppy, "Pelaaja 1: Liiku", pelaaja); … … 161 160 pelaaja.Velocity = nopeus; 162 161 pelaajaIlmassa = true; 163 //hyppyAani.Play();162 hyppyAani.Play(); 164 163 165 164 } … … 167 166 { 168 167 Label tekstikentta = new Label("teksti"); 169 tekstikentta.Text = " You Reach the End";168 tekstikentta.Text = "the End of Map Reached"; 170 169 tekstikentta.Color = Color.Aqua; 171 170 tekstikentta.TextColor = Color.Red; … … 219 218 Add(tekstikentta); 220 219 kohde.Destroy(); 220 Explosion rajahdys = new Explosion(600.0); 221 rajahdys.Position = pelaaja.Position; 222 Add(rajahdys); 221 223 LuoAikaLaskuri(); 222 224 } 223 225 void AloitaPeli2(string levelFile) 224 226 { 225 226 227 227 LataaKentta(levelFile); 228 228 Level.Background.CreateGradient(Color.Teal, Color.Ruby); 229 229 Gravity = new Vector(0, 400); 230 231 MediaPlayer.Play("Tausta2");232 230 233 231 Surface yläreuna = Surface.CreateTop(Level); … … 238 236 Surface oikeareuna = Surface.CreateRight(Level); 239 237 oikeareuna.IsVisible = false; 238 oikeareuna.Color = Color.Ultramarine; 240 239 oikeareuna.Tag = "muuri"; 241 240 Add(oikeareuna); 242 241 AsetaOhjaimet(); 243 242 Camera.Follow(pelaaja); 243 LuoAikaLaskuri3(); 244 244 245 245 } … … 259 259 Timer aikaLaskuri = new Timer(); 260 260 aikaLaskuri.Interval = 2.5; 261 aikaLaskuri.Timeout += delegate { Begin(); };261 aikaLaskuri.Timeout += delegate { Alustukset(); }; 262 262 aikaLaskuri.Start(1); 263 263 } … … 267 267 268 268 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";270 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"; 270 271 271 tekstikentta.TextColor = Color.Red; 272 272 tekstikentta.Font = Font.DefaultLargeBold; … … 285 285 Timer aikaLaskuri = new Timer(); 286 286 aikaLaskuri.Interval = 5; 287 aikaLaskuri.Timeout += delegate { Begin(); };287 aikaLaskuri.Timeout += delegate { Alustukset(); }; 288 288 aikaLaskuri.Start(); 289 289 … … 292 292 { 293 293 Timer aikaLaskuri = new Timer(); 294 aikaLaskuri.Interval = 30;294 aikaLaskuri.Interval = 120; 295 295 aikaLaskuri.Timeout += delegate { AikaLoppui(); }; 296 aikaLaskuri.Start(); 297 Label aikaKentta = new Label();298 aikaKentta.TextColor = Color.Red;299 aikaKentta.Color = Color.Yellow;300 aikaKentta.X = 0.0;301 aikaKentta.Y = -400.0;302 aikaKentta.BindTo(aikaLaskuri.SecondCounter);303 Add(aikaKentta);296 aikaLaskuri.Start(); 297 Label aikaKentta = new Label(); 298 aikaKentta.TextColor = Color.Red; 299 aikaKentta.Color = Color.Yellow; 300 aikaKentta.X = 0.0; 301 aikaKentta.Y = -400.0; 302 aikaKentta.BindTo(aikaLaskuri.SecondCounter); 303 Add(aikaKentta); 304 304 305 305 } … … 313 313 LuoAikaLaskuri4(); 314 314 } 315 316 317 315 void LuoAikaLaskuri4() 316 { 317 Timer aikaLaskuri = new Timer(); 318 318 aikaLaskuri.Interval = 2; 319 aikaLaskuri.Timeout += delegate { Begin(); };319 aikaLaskuri.Timeout += delegate { Alustukset(); }; 320 320 aikaLaskuri.Start(); 321 } 322 321 } 322 323 324 323 325 } 324 326 -
2012/23/LeoS/leoS/leoS/leoS.csproj.Debug.cachefile
r2828 r2840 1 Content\Pelikuutio.xnb2 1 Content\kentta1.xnb 3 2 Content\kentta2.xnb … … 8 7 Content\Jump.xnb 9 8 Content\Antigravity.xnb 9 Content\kentta5.xnb 10 10 Content\Tausta.wma 11 11 Content\Tausta2.wma -
2012/23/LeoS/leoS/leoS/obj/x86/Debug/cachefile-{25605763-3341-4275-93D9-4B0A394A16A7}-targetpath.txt
r2828 r2840 1 Content\Pelikuutio.xnb2 1 Content\kentta1.xnb 3 2 Content\kentta2.xnb … … 10 9 Content\Jump.xnb 11 10 Content\Antigravity.xnb 11 Content\kentta5.xnb 12 12 Content\kentta1.txt -
2012/23/LeoS/leoS/leoS/obj/x86/Debug/leoS.csproj.FileListAbsolute.txt
r2828 r2840 17 17 J:\LeoS\LeoS\leoS\leoS\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 18 18 J:\LeoS\LeoS\leoS\leoS\obj\x86\Debug\leoS.exe 19 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\Pelikuutio.xnb20 19 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta1.xnb 21 20 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\leoS.exe … … 35 34 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\Jump.xnb 36 35 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\Antigravity.xnb 36 J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta5.xnb -
2012/23/LeoS/leoS/leoSContent/kentta1.txt
r2824 r2840 1 1 2 * # 3 * # 4 * # # # 5 * # # # 6 * # # * * * * * * * * * # 7 ########## * # # # 8 # * # # # 9 # * # # # # # #10 ## # T # * # # # # # # 2 * # 3 * # 4 * # # # 5 * # # # 6 * # # * * * * * * * * * # 7 ########## * # # # 8 # * # # # 9 # * # # # ## 10 ## # T # * # # # # # # 11 11 ### #### ## ### ###### ## ### # * * * * # 12 # # # # 13 # # # 14 # # # 15 # ####### ############ 16 ## ### # 17 # # # 18 # # # 19 W # T # #######12 # # # # 13 # # # 14 # # # 15 # ####### ############ 16 ## ### # 17 # # # 18 # # # 19 # T # ####### 20 20 P #### #### #### # T T 21 ############ ######### 21 ############ ######### -
2012/23/LeoS/leoS/leoSContent/kentta2.txt
r2828 r2840 5 5 # 6 6 # 7 # 8 # 9 # 10 # 11 # 12 # 13 # 14 # 15 # 16 # 17 # 18 # 19 # 20 # 21 # 22 # 23 # 24 # 25 # 26 # 27 # 28 # 29 # 30 # 31 # 32 # # 33 # # 34 # # 35 # ####################### # 36 # # 37 # # 38 # # 39 # ########### # 40 # # # 41 # # # 42 # # # 43 # # 44 # # 45 # # 46 # # 47 # # 48 ############################## # #### ##### # # 49 # # # # ################# # 50 # ####### # # # # # # # 51 # # # # # 52 # # # # ### # 53 # # # # # # 54 # # # ### # # 55 # ########### # # 56 # # # # 57 # # # 7 # # # 58 8 # #### ### ## # # # # 59 9 * # # T # # # -
2012/23/LeoS/leoS/leoSContent/kentta4.txt
r2820 r2840 1 ##### ###### # ### #### #### ########## # 2 P # ###### ##### ##### # ######## 3 # # * 4 # **** # * 5 # # * * 6 # # * * 7 ######### * # # * * 8 * # # # # * 9 #####*###*######*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#* * 10 # # # # * 11 12 13 14 15 16 17 18 19 1 P *## ## * 2 ###### * * 3 * *#* 4 * #### * * 5 * * # * 6 * # * #**#* ##########* ###### ### ##### # 7 * # # # * # *#* * * * * * # 8 ##################### ######## # # # * # * ****** * * ****** # 9 *###### # * * * * * # 10 T ##### ************ *** ***** # 11 T ****### # 12 T ####### *#* ###### 13 T -
2012/23/LeoS/leoS/leoSContent/leoSContent.contentproj
r2828 r2840 45 45 </ItemGroup> 46 46 <ItemGroup> 47 <Compile Include="Pelikuutio.png">48 <Name>Pelikuutio</Name>49 <Importer>TextureImporter</Importer>50 <Processor>TextureProcessor</Processor>51 </Compile>52 </ItemGroup>53 <ItemGroup>54 47 <Compile Include="kentta1.txt"> 55 48 <CopyToOutputDirectory>Always</CopyToOutputDirectory> … … 81 74 </ItemGroup> 82 75 <ItemGroup> 83 <Compile Include="kentta4.txt">84 <Name>kentta4</Name>85 <Importer>TextFileImporter</Importer>86 <Processor>TextFileContentProcessor</Processor>87 </Compile>88 </ItemGroup>89 <ItemGroup>90 76 <Compile Include="Tausta2.mp3"> 91 77 <Name>Tausta2</Name> 92 78 <Importer>Mp3Importer</Importer> 93 79 <Processor>SongProcessor</Processor> 80 </Compile> 81 </ItemGroup> 82 <ItemGroup> 83 <Compile Include="Antigravity.png"> 84 <Name>Antigravity</Name> 85 <Importer>TextureImporter</Importer> 86 <Processor>TextureProcessor</Processor> 94 87 </Compile> 95 88 </ItemGroup> … … 102 95 </ItemGroup> 103 96 <ItemGroup> 104 <Compile Include="Antigravity.png"> 105 <Name>Antigravity</Name> 106 <Importer>TextureImporter</Importer> 107 <Processor>TextureProcessor</Processor> 97 <Compile Include="kentta4.txt"> 98 <Name>kentta4</Name> 99 <Importer>TextFileImporter</Importer> 100 <Processor>TextFileContentProcessor</Processor> 101 </Compile> 102 </ItemGroup> 103 <ItemGroup> 104 <Compile Include="kentta5.txt"> 105 <Name>kentta5</Name> 106 <Importer>TextFileImporter</Importer> 107 <Processor>TextFileContentProcessor</Processor> 108 108 </Compile> 109 109 </ItemGroup> -
2012/23/LeoS/leoS/leoSContent/obj/x86/Debug/ContentPipeline.xml
r2828 r2840 2 2 <XnaContent xmlns:Pipeline="Microsoft.Xna.Framework.Content.Pipeline"> 3 3 <Asset Type="Pipeline:BuildItemCollection"> 4 <Item>5 <Source>Pelikuutio.png</Source>6 <Name>Pelikuutio</Name>7 <Importer>TextureImporter</Importer>8 <Processor>TextureProcessor</Processor>9 <Options>None</Options>10 <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\Pelikuutio.xnb</Output>11 <Time>2012-06-05T11:14:00.3164247+03:00</Time>12 </Item>13 4 <Item> 14 5 <Source>kentta1.txt</Source> … … 18 9 <Options>None</Options> 19 10 <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta1.xnb</Output> 20 <Time>2012-06-0 6T21:54:58.6389427+03:00</Time>11 <Time>2012-06-07T14:27:33.1723106+03:00</Time> 21 12 </Item> 22 13 <Item> … … 27 18 <Options>None</Options> 28 19 <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta2.xnb</Output> 29 <Time>2012-06-07T 09:53:17.0894083+03:00</Time>20 <Time>2012-06-07T14:20:29.8583106+03:00</Time> 30 21 </Item> 31 22 <Item> … … 55 46 <Options>None</Options> 56 47 <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta4.xnb</Output> 57 <Time>2012-06-0 6T16:33:17.9995956+03:00</Time>48 <Time>2012-06-07T14:14:17.7443106+03:00</Time> 58 49 </Item> 59 50 <Item> … … 74 65 <Options>None</Options> 75 66 <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\Jump.xnb</Output> 76 <Time>2012-06-0 6T19:14:48.3999495+03:00</Time>67 <Time>2012-06-07T11:59:37.1293208+03:00</Time> 77 68 </Item> 78 69 <Item> … … 84 75 <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\Antigravity.xnb</Output> 85 76 <Time>2012-06-07T09:07:21.2011363+03:00</Time> 77 </Item> 78 <Item> 79 <Source>kentta5.txt</Source> 80 <Name>kentta5</Name> 81 <Importer>TextFileImporter</Importer> 82 <Processor>TextFileContentProcessor</Processor> 83 <Options>None</Options> 84 <Output>J:\LeoS\LeoS\leoS\leoS\bin\x86\Debug\Content\kentta5.xnb</Output> 85 <Time>2012-06-07T15:05:17.9320082+03:00</Time> 86 86 </Item> 87 87 <BuildSuccessful>true</BuildSuccessful>
Note: See TracChangeset
for help on using the changeset viewer.