- Timestamp:
- 2014-06-12 14:54:33 (9 years ago)
- Location:
- 2014/24/AleksanteriS
- Files:
-
- 107 added
- 2 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/24/AleksanteriS/Tasohyppelypeli1/Tasohyppelypeli1.sln
r4957 r4980 2 2 Microsoft Visual Studio Solution File, Format Version 11.00 3 3 # Visual Studio 2010 4 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tasohyppelypeli1", "Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1.csproj", "{ A7E04855-A99E-411C-90CF-368ABCC1A345}"4 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tasohyppelypeli1", "Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1.csproj", "{DDCFF976-1518-473B-9F2F-DC97554D8978}" 5 5 EndProject 6 Project("{96E2B04D-8817-42C6-938A-82C39BA4D311}") = "Tasohyppelypeli1Content", "Tasohyppelypeli1\Tasohyppelypeli1Content\Tasohyppelypeli1Content.contentproj", "{ 9102B3D4-4D2E-4B71-87B9-7D02839DDA2F}"6 Project("{96E2B04D-8817-42C6-938A-82C39BA4D311}") = "Tasohyppelypeli1Content", "Tasohyppelypeli1\Tasohyppelypeli1Content\Tasohyppelypeli1Content.contentproj", "{1D5EEC82-4D80-4E0C-B5E4-40943DA5A5A8}" 7 7 EndProject 8 8 Global … … 12 12 EndGlobalSection 13 13 GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 { A7E04855-A99E-411C-90CF-368ABCC1A345}.Debug|x86.ActiveCfg = Debug|x8615 { A7E04855-A99E-411C-90CF-368ABCC1A345}.Debug|x86.Build.0 = Debug|x8616 { A7E04855-A99E-411C-90CF-368ABCC1A345}.Release|x86.ActiveCfg = Release|x8617 { A7E04855-A99E-411C-90CF-368ABCC1A345}.Release|x86.Build.0 = Release|x8618 { 9102B3D4-4D2E-4B71-87B9-7D02839DDA2F}.Debug|x86.ActiveCfg = Debug|x8619 { 9102B3D4-4D2E-4B71-87B9-7D02839DDA2F}.Release|x86.ActiveCfg = Release|x8614 {DDCFF976-1518-473B-9F2F-DC97554D8978}.Debug|x86.ActiveCfg = Debug|x86 15 {DDCFF976-1518-473B-9F2F-DC97554D8978}.Debug|x86.Build.0 = Debug|x86 16 {DDCFF976-1518-473B-9F2F-DC97554D8978}.Release|x86.ActiveCfg = Release|x86 17 {DDCFF976-1518-473B-9F2F-DC97554D8978}.Release|x86.Build.0 = Release|x86 18 {1D5EEC82-4D80-4E0C-B5E4-40943DA5A5A8}.Debug|x86.ActiveCfg = Debug|x86 19 {1D5EEC82-4D80-4E0C-B5E4-40943DA5A5A8}.Release|x86.ActiveCfg = Release|x86 20 20 EndGlobalSection 21 21 GlobalSection(SolutionProperties) = preSolution -
2014/24/AleksanteriS/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/Properties/AssemblyInfo.cs
r4957 r4980 23 23 // project is exposed to COM. On other platforms, it unique identifies the 24 24 // title storage container when deploying this assembly to the device. 25 [assembly: Guid(" ef6ce134-1793-485c-99e9-6a7dc327443b")]25 [assembly: Guid("dac7696c-04d0-47ac-ad5f-c1600564f40c")] 26 26 27 27 // Version information for an assembly consists of the following four values: -
2014/24/AleksanteriS/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1.cs
r4957 r4980 15 15 PlatformCharacter pelaaja1; 16 16 17 Image pelaajanKuva = LoadImage("norsu"); 18 Image tahtiKuva = LoadImage("tahti"); 17 Image pelaajanKuva = LoadImage("Companion Cube"); 18 Image tahtiKuva = LoadImage("Companion Cube 2"); 19 Image taustaKuva = LoadImage("Moon"); 19 20 20 SoundEffect maaliAani = LoadSoundEffect(" maali");21 SoundEffect maaliAani = LoadSoundEffect("IDHY"); 21 22 22 23 public override void Begin() 23 24 { 25 MultiSelectWindow alkuValikko = new MultiSelectWindow("Derpal 2","Aloita peli", "Lopeta"); 26 Add(alkuValikko); 27 alkuValikko.Color = Color.White; 28 alkuValikko.AddItemHandler(0, AloitaPeli); 29 //alkuValikko.AddItemHandler(1, ParhaatPisteet); 30 alkuValikko.AddItemHandler(1, Exit); 31 Level.Background.Image = taustaKuva; 32 Level.Background.Color = Color.Black; 33 } 34 35 void AloitaPeli() 36 { 24 37 Gravity = new Vector(0, -1000); 38 39 MediaPlayer.Play("Madeon"); 40 MediaPlayer.Volume = 1.0; 41 MediaPlayer.IsRepeating = true; 42 25 43 26 44 LuoKentta(); … … 28 46 29 47 Camera.Follow(pelaaja1); 30 Camera.ZoomFactor = 1.2;48 Camera.ZoomFactor = 4.5; 31 49 Camera.StayInLevel = true; 32 50 } … … 40 58 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 41 59 Level.CreateBorders(); 42 Level.Background.CreateGradient(Color. White, Color.SkyBlue);60 Level.Background.CreateGradient(Color.Pink, Color.SkyBlue); 43 61 } 44 62 … … 47 65 PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 48 66 taso.Position = paikka; 49 taso.Color = Color.Green;50 67 Add(taso); 51 68 } … … 102 119 { 103 120 maaliAani.Play(); 104 MessageDisplay.Add(" Keräsit tähden!");121 MessageDisplay.Add("Sait Companion Cuben!"); 105 122 tahti.Destroy(); 106 123 } -
2014/24/AleksanteriS/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1.csproj
r4957 r4980 2 2 <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 3 <PropertyGroup> 4 <ProjectGuid>{ A7E04855-A99E-411C-90CF-368ABCC1A345}</ProjectGuid>4 <ProjectGuid>{DDCFF976-1518-473B-9F2F-DC97554D8978}</ProjectGuid> 5 5 <ProjectTypeGuids>{6D335F3A-9D43-41b4-9D22-F6F17C4BE596};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> 6 6 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> … … 15 15 <XnaPlatform>Windows</XnaPlatform> 16 16 <XnaProfile>Reach</XnaProfile> 17 <XnaCrossPlatformGroupID> a75be2b1-0da8-4804-867a-31f228894074</XnaCrossPlatformGroupID>17 <XnaCrossPlatformGroupID>e127416e-ff1c-42d7-bb14-d1ebaef52445</XnaCrossPlatformGroupID> 18 18 <XnaOutputType>Game</XnaOutputType> 19 19 <ApplicationIcon>Game.ico</ApplicationIcon> -
2014/24/AleksanteriS/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1Content/Tasohyppelypeli1Content.contentproj
r4957 r4980 2 2 <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 3 <PropertyGroup> 4 <ProjectGuid>{ 9102B3D4-4D2E-4B71-87B9-7D02839DDA2F}</ProjectGuid>4 <ProjectGuid>{1D5EEC82-4D80-4E0C-B5E4-40943DA5A5A8}</ProjectGuid> 5 5 <ProjectTypeGuids>{96E2B04D-8817-42c6-938A-82C39BA4D311};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> 6 6 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> … … 67 67 </Compile> 68 68 </ItemGroup> 69 <ItemGroup> 70 <Compile Include="Companion Cube 2.png"> 71 <Name>Companion Cube 2</Name> 72 <Importer>TextureImporter</Importer> 73 <Processor>TextureProcessor</Processor> 74 </Compile> 75 </ItemGroup> 76 <ItemGroup> 77 <Compile Include="Companion Cube.png"> 78 <Name>Companion Cube</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 </Compile> 82 </ItemGroup> 83 <ItemGroup> 84 <Compile Include="Moon.png"> 85 <Name>Moon</Name> 86 <Importer>TextureImporter</Importer> 87 <Processor>TextureProcessor</Processor> 88 </Compile> 89 </ItemGroup> 90 <ItemGroup> 91 <Compile Include="Madeon.mp3"> 92 <Name>Madeon</Name> 93 <Importer>Mp3Importer</Importer> 94 <Processor>SongProcessor</Processor> 95 </Compile> 96 </ItemGroup> 97 <ItemGroup> 98 <Compile Include="IDHY.wav"> 99 <Name>IDHY</Name> 100 <Importer>WavImporter</Importer> 101 <Processor>SoundEffectProcessor</Processor> 102 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 103 </Compile> 104 </ItemGroup> 69 105 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 70 106 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2014/24/AleksanteriS/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1Content/kentta1.txt
r4957 r4980 1 *2 ##3 4 * *5 ## ##6 7 * *8 ## ## ##9 10 * * * *11 ## ## ## ##12 13 * * * *14 ## ## ## ## ## 15 16 N 17 ###################### 1 2 * 3 ## ####################### ############################################ 4 ## ###################### # # # # 5 ## ########### * # # # # 6 ##### #### ########### ########## # # # # 7 ##### * * * ## ########### * ########## # # # # 8 *##### ######### # ## ############ * ############ # # # # 9 ######## ######### # #### ############ * ############ # # #***************************************** # 10 ####### ######### # ## ############ * ############ # #***************************************** # 11 ####### N # # # ## ############# * ############# # # #**#***************************************** # 12 ############################################################ ##### ################################### * ########################### ####################################### ###################################################### # 13 *# #* # # # ***** # 14 ############################################################################################################################################# ################################# ################# ####### 15 ### * * * * * * ####### 16 ############################## 17 ##############################################################################################################################################################################################################################################
Note: See TracChangeset
for help on using the changeset viewer.