Changeset 4480 for 2013/27


Ignore:
Timestamp:
2013-07-05 12:24:32 (6 years ago)
Author:
otweijo
Message:

Talletus.

Location:
2013/27/OttoW/Stickman jump/Stickman jump
Files:
5 added
3 edited

Legend:

Unmodified
Added
Removed
  • 2013/27/OttoW/Stickman jump/Stickman jump/Stickman jump/Stickman_jump.cs

    r4434 r4480  
    3333    Image ufoKuva = LoadImage("ufo"); 
    3434    Image oviKuva = LoadImage("ovi"); 
     35    Image background = LoadImage("San_Francisco_City"); 
    3536    SoundEffect maaliAani = LoadSoundEffect("maali"); 
     37    SoundEffect hyppyAani = LoadSoundEffect("JumpAaniHiljempi"); 
     38    
    3639    int kenttaNro = 1; 
    3740 
     
    3942    public override void Begin() 
    4043    { 
     44        SetWindowSize(1024, 768, false); 
    4145        AlkuValikko(); 
    4246    } 
     
    4549    { 
    4650        SeuraavaKentta(); 
     51         
    4752    }    
    4853         
     
    5055    { 
    5156        ClearAll(); 
     57 
    5258        Gravity = new Vector(0, -1000); 
    5359        if (kenttaNro > 3) Exit(); 
    5460        else LuoKentta("kentta" + kenttaNro); 
    55  
     61        Level.Background.Image = background; 
     62        MediaPlayer.Play("Five Armies"); 
     63        MediaPlayer.IsRepeating = true; 
    5664        LisaaNappaimet(); 
    5765        Camera.Follow(pelaaja1); 
     
    6371    void AlkuValikko() 
    6472    { 
    65         MultiSelectWindow alkuValikko = new MultiSelectWindow("Stickman Jump!", "Aloita peli", "Lopeta"); 
     73        MultiSelectWindow alkuValikko = new MultiSelectWindow("Epic Stickman: Shoot 'n Jump", "Aloita peli", "Lopeta"); 
    6674        Add(alkuValikko); 
    6775 
     
    8896        kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
    8997        Level.CreateBorders(); 
    90         Level.Background.CreateGradient(Color.Blue, Color.White); 
     98        Level.Background.CreateGradient(Color.Blue, Color.White);  
    9199    } 
    92100 
     
    95103        PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 
    96104        taso.Position = paikka; 
    97         taso.Color = Color.Brown; 
     105        taso.Color = Color.LightBlue; 
    98106        Add(taso); 
    99107    } 
     
    187195        tahti.Image = piikitKuva; 
    188196        tahti.Tag = "piikit"; 
     197        tahti.Color = Color.Red; 
    189198        Add(tahti); 
    190199    } 
     
    292301    { 
    293302        hahmo.Jump(nopeus); 
     303        hyppyAani.Play(); 
    294304    } 
    295305 
  • 2013/27/OttoW/Stickman jump/Stickman jump/Stickman jumpContent/Stickman jumpContent.contentproj

    r4434 r4480  
    152152    </Compile> 
    153153  </ItemGroup> 
     154  <ItemGroup> 
     155    <Compile Include="San_Francisco_City.jpg"> 
     156      <Name>San_Francisco_City</Name> 
     157      <Importer>TextureImporter</Importer> 
     158      <Processor>TextureProcessor</Processor> 
     159    </Compile> 
     160  </ItemGroup> 
     161  <ItemGroup> 
     162    <Compile Include="Five Armies.mp3"> 
     163      <Name>Five Armies</Name> 
     164      <Importer>Mp3Importer</Importer> 
     165      <Processor>SongProcessor</Processor> 
     166    </Compile> 
     167  </ItemGroup> 
     168  <ItemGroup> 
     169    <Compile Include="Jump.mp3"> 
     170      <Name>Jump</Name> 
     171      <Importer>Mp3Importer</Importer> 
     172      <Processor>SongProcessor</Processor> 
     173    </Compile> 
     174  </ItemGroup> 
     175  <ItemGroup> 
     176    <Compile Include="JumpAani.wav"> 
     177      <Name>JumpAani</Name> 
     178      <Importer>WavImporter</Importer> 
     179      <Processor>SoundEffectProcessor</Processor> 
     180    </Compile> 
     181  </ItemGroup> 
     182  <ItemGroup> 
     183    <Compile Include="JumpAaniHiljempi.wav"> 
     184      <Name>JumpAaniHiljempi</Name> 
     185      <Importer>WavImporter</Importer> 
     186      <Processor>SoundEffectProcessor</Processor> 
     187    </Compile> 
     188  </ItemGroup> 
    154189  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    155190  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
Note: See TracChangeset for help on using the changeset viewer.