Changeset 7589 for 2016/26/HeiniI


Ignore:
Timestamp:
2016-06-30 11:30:23 (3 years ago)
Author:
hekaihal
Message:
 
Location:
2016/26/HeiniI
Files:
3 added
13 edited

Legend:

Unmodified
Added
Removed
  • 2016/26/HeiniI/CloudJump/CloudJump/CloudJump/CloudJump.cs

    r7578 r7589  
    1919    const double hyppyNopeus = 750; 
    2020 
     21    double kameranraja; 
     22 
    2123    public override void Begin() 
    2224    { 
     25         
     26 
     27        MultiSelectWindow alkuValikko = new MultiSelectWindow("Pelin alkuvalikko", 
     28        "Aloita peli", "Lopeta"); 
     29        Add(alkuValikko); 
     30 
     31        alkuValikko.AddItemHandler(0, AloitaPeli); 
     32        alkuValikko.AddItemHandler(1, Exit); 
     33 
     34         
     35        } 
     36        void AloitaPeli() 
     37         { 
     38        kameranraja = Level.Bottom; 
    2339        Gravity = new Vector(0, -1000); 
    24         
    2540        LuoKentta(); 
    2641        LisaaNappaimet(); 
    2742 
    28         Camera.Follow(lammas); 
     43        Camera.FollowX(lammas); 
    2944        Camera.ZoomFactor = 1.2; 
    3045        Camera.StayInLevel = true; 
     46    } 
     47 
     48    protected override void Update(Time time) 
     49    { 
     50 
     51        if (lammas != null && lammas.Y > kameranraja) 
     52        { 
     53            Camera.Y = lammas.Y; 
     54            kameranraja = Camera.Y; 
     55        } 
     56        else 
     57        { 
     58            Camera.Y = kameranraja; 
     59        } 
     60        base.Update(time); 
    3161    } 
    3262 
     
    3969        ruudut.SetTileMethod(Color.FromHexCode("0026FF"), LisaaLammas); 
    4070        ruudut.SetTileMethod(Color.Black, PohjaLaatta); 
    41         ruudut.SetTileMethod(Color.FromHexCode("#FF00FF08"), PuunRunko); 
     71        ruudut.SetTileMethod(Color.FromHexCode("#FF10FF04"), PuunRunko); 
    4272 
    4373        ruudut.Execute(20, 20); 
    4474        Level.Background.CreateGradient(Color.White, Color.SkyBlue); 
     75        PhysicsObject kuolotaso = new PhysicsObject(Level.Width, 20); 
     76        kuolotaso.Position = lammas.Position; 
     77        Add(kuolotaso); 
    4578 
    4679    } 
  • 2016/26/HeiniI/CloudJump/CloudJump/CloudJump/CloudJump.csproj.Debug.cachefile

    r7578 r7589  
    55Content\pilvi.xnb 
    66Content\Oikeatausta2.xnb 
     7Content\muhufinssi.xnb 
  • 2016/26/HeiniI/CloudJump/CloudJump/CloudJump/obj/x86/Debug/CloudJump.csproj.FileListAbsolute.txt

    r7578 r7589  
    2323C:\MyTemp\HeiniI-uusin\CloudJump\CloudJump\CloudJump\bin\x86\Debug\Content\pilvi.xnb 
    2424C:\MyTemp\HeiniI-uusin\CloudJump\CloudJump\CloudJump\bin\x86\Debug\Content\Oikeatausta2.xnb 
     25C:\MyTemp\HeiniI-uusin\CloudJump\CloudJump\CloudJump\bin\x86\Debug\Content\muhufinssi.xnb 
  • 2016/26/HeiniI/CloudJump/CloudJump/CloudJump/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml

    r7578 r7589  
    5454      <Options>None</Options> 
    5555      <Output>C:\MyTemp\HeiniI-uusin\CloudJump\CloudJump\CloudJump\bin\x86\Debug\Content\Oikeatausta2.xnb</Output> 
    56       <Time>2016-06-29T14:55:52.2307291+03:00</Time> 
     56      <Time>2016-06-30T09:52:02.9988472+03:00</Time> 
     57    </Item> 
     58    <Item> 
     59      <Source>muhufinssi.png</Source> 
     60      <Name>muhufinssi</Name> 
     61      <Importer>TextureImporter</Importer> 
     62      <Processor>TextureProcessor</Processor> 
     63      <Options>None</Options> 
     64      <Output>C:\MyTemp\HeiniI-uusin\CloudJump\CloudJump\CloudJump\bin\x86\Debug\Content\muhufinssi.xnb</Output> 
     65      <Time>2016-06-30T10:59:20.2596821+03:00</Time> 
    5766    </Item> 
    5867    <BuildSuccessful>true</BuildSuccessful> 
  • 2016/26/HeiniI/CloudJump/CloudJump/CloudJump/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt

    r7578 r7589  
    55Content\pilvi.xnb 
    66Content\Oikeatausta2.xnb 
     7Content\muhufinssi.xnb 
  • 2016/26/HeiniI/CloudJump/CloudJump/CloudJumpContent/CloudJumpContent.contentproj

    r7578 r7589  
    8787    </Compile> 
    8888  </ItemGroup> 
     89  <ItemGroup> 
     90    <Compile Include="muhufinssi.png"> 
     91      <Name>muhufinssi</Name> 
     92      <Importer>TextureImporter</Importer> 
     93      <Processor>TextureProcessor</Processor> 
     94    </Compile> 
     95  </ItemGroup> 
    8996  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    9097  <!--  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.