Changeset 4980 for 2014/24


Ignore:
Timestamp:
2014-06-12 14:54:33 (9 years ago)
Author:
aldiskan
Message:
 
Location:
2014/24/AleksanteriS
Files:
107 added
2 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • 2014/24/AleksanteriS/Tasohyppelypeli1/Tasohyppelypeli1.sln

    r4957 r4980  
    22Microsoft Visual Studio Solution File, Format Version 11.00 
    33# Visual Studio 2010 
    4 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tasohyppelypeli1", "Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1.csproj", "{A7E04855-A99E-411C-90CF-368ABCC1A345}" 
     4Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tasohyppelypeli1", "Tasohyppelypeli1\Tasohyppelypeli1\Tasohyppelypeli1.csproj", "{DDCFF976-1518-473B-9F2F-DC97554D8978}" 
    55EndProject 
    6 Project("{96E2B04D-8817-42C6-938A-82C39BA4D311}") = "Tasohyppelypeli1Content", "Tasohyppelypeli1\Tasohyppelypeli1Content\Tasohyppelypeli1Content.contentproj", "{9102B3D4-4D2E-4B71-87B9-7D02839DDA2F}" 
     6Project("{96E2B04D-8817-42C6-938A-82C39BA4D311}") = "Tasohyppelypeli1Content", "Tasohyppelypeli1\Tasohyppelypeli1Content\Tasohyppelypeli1Content.contentproj", "{1D5EEC82-4D80-4E0C-B5E4-40943DA5A5A8}" 
    77EndProject 
    88Global 
     
    1212        EndGlobalSection 
    1313        GlobalSection(ProjectConfigurationPlatforms) = postSolution 
    14                 {A7E04855-A99E-411C-90CF-368ABCC1A345}.Debug|x86.ActiveCfg = Debug|x86 
    15                 {A7E04855-A99E-411C-90CF-368ABCC1A345}.Debug|x86.Build.0 = Debug|x86 
    16                 {A7E04855-A99E-411C-90CF-368ABCC1A345}.Release|x86.ActiveCfg = Release|x86 
    17                 {A7E04855-A99E-411C-90CF-368ABCC1A345}.Release|x86.Build.0 = Release|x86 
    18                 {9102B3D4-4D2E-4B71-87B9-7D02839DDA2F}.Debug|x86.ActiveCfg = Debug|x86 
    19                 {9102B3D4-4D2E-4B71-87B9-7D02839DDA2F}.Release|x86.ActiveCfg = Release|x86 
     14                {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 
    2020        EndGlobalSection 
    2121        GlobalSection(SolutionProperties) = preSolution 
  • 2014/24/AleksanteriS/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/Properties/AssemblyInfo.cs

    r4957 r4980  
    2323// project is exposed to COM. On other platforms, it unique identifies the 
    2424// 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")] 
    2626 
    2727// Version information for an assembly consists of the following four values: 
  • 2014/24/AleksanteriS/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1.cs

    r4957 r4980  
    1515    PlatformCharacter pelaaja1; 
    1616 
    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"); 
    1920 
    20     SoundEffect maaliAani = LoadSoundEffect("maali"); 
     21    SoundEffect maaliAani = LoadSoundEffect("IDHY"); 
    2122 
    2223    public override void Begin() 
    2324    { 
     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    { 
    2437        Gravity = new Vector(0, -1000); 
     38 
     39        MediaPlayer.Play("Madeon"); 
     40        MediaPlayer.Volume = 1.0; 
     41        MediaPlayer.IsRepeating = true; 
     42 
    2543 
    2644        LuoKentta(); 
     
    2846 
    2947        Camera.Follow(pelaaja1); 
    30         Camera.ZoomFactor = 1.2; 
     48        Camera.ZoomFactor = 4.5; 
    3149        Camera.StayInLevel = true; 
    3250    } 
     
    4058        kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
    4159        Level.CreateBorders(); 
    42         Level.Background.CreateGradient(Color.White, Color.SkyBlue); 
     60        Level.Background.CreateGradient(Color.Pink, Color.SkyBlue); 
    4361    } 
    4462 
     
    4765        PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 
    4866        taso.Position = paikka; 
    49         taso.Color = Color.Green; 
    5067        Add(taso); 
    5168    } 
     
    102119    { 
    103120        maaliAani.Play(); 
    104         MessageDisplay.Add("Keräsit tähden!"); 
     121        MessageDisplay.Add("Sait Companion Cuben!"); 
    105122        tahti.Destroy(); 
    106123    } 
  • 2014/24/AleksanteriS/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1.csproj

    r4957 r4980  
    22<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 
    33  <PropertyGroup> 
    4     <ProjectGuid>{A7E04855-A99E-411C-90CF-368ABCC1A345}</ProjectGuid> 
     4    <ProjectGuid>{DDCFF976-1518-473B-9F2F-DC97554D8978}</ProjectGuid> 
    55    <ProjectTypeGuids>{6D335F3A-9D43-41b4-9D22-F6F17C4BE596};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> 
    66    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 
     
    1515    <XnaPlatform>Windows</XnaPlatform> 
    1616    <XnaProfile>Reach</XnaProfile> 
    17     <XnaCrossPlatformGroupID>a75be2b1-0da8-4804-867a-31f228894074</XnaCrossPlatformGroupID> 
     17    <XnaCrossPlatformGroupID>e127416e-ff1c-42d7-bb14-d1ebaef52445</XnaCrossPlatformGroupID> 
    1818    <XnaOutputType>Game</XnaOutputType> 
    1919    <ApplicationIcon>Game.ico</ApplicationIcon> 
  • 2014/24/AleksanteriS/Tasohyppelypeli1/Tasohyppelypeli1/Tasohyppelypeli1Content/Tasohyppelypeli1Content.contentproj

    r4957 r4980  
    22<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 
    33  <PropertyGroup> 
    4     <ProjectGuid>{9102B3D4-4D2E-4B71-87B9-7D02839DDA2F}</ProjectGuid> 
     4    <ProjectGuid>{1D5EEC82-4D80-4E0C-B5E4-40943DA5A5A8}</ProjectGuid> 
    55    <ProjectTypeGuids>{96E2B04D-8817-42c6-938A-82C39BA4D311};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> 
    66    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 
     
    6767    </Compile> 
    6868  </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> 
    69105  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    70106  <!--  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.