Changeset 8055


Ignore:
Timestamp:
2016-07-08 12:21:55 (3 years ago)
Author:
sieerinn
Message:
 
Location:
2016/27/DanielL
Files:
8 added
1 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/DanielL/SurvMontage/SurvMontage/SurvMontage/SurvMontage.cs

    r8041 r8055  
    1818    Image pelaajanKuva = LoadImage("Character1"); 
    1919    Image tahtiKuva = LoadImage("tahti2"); 
    20     Image tiiliKuva = LoadImage("ruohotextuuri"); 
     20    Image tiiliKuva = LoadImage("Bricks"); 
    2121    Image kattokruunuKuva = LoadImage("Chandelier"); 
    2222    Image taustaKuva = LoadImage("background"); 
     
    3030    public override void Begin() 
    3131    { 
     32        ClearAll(); 
    3233        Gravity = new Vector(0, -1000); 
    3334        MediaPlayer.Play("High"); 
     
    5051        kentta.SetTileMethod('*', LisaaTahti); 
    5152        kentta.SetTileMethod('N', LisaaPelaaja); 
    52         kentta.SetTileMethod('%', LisaaTikkaat); 
    5353        kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 
    5454        Level.CreateBorders(); 
    5555        Level.Background.CreateGradient(Color.White, Color.SkyBlue); 
    56         Level.Background.Image = LoadImage("hUukl3e"); 
     56        Level.Background.Image = LoadImage("tausta2"); 
    5757    } 
    5858 
     
    7575        PlatformWandererBrain tasoAivot = new PlatformWandererBrain(); 
    7676        tasoAivot.Speed = 100; 
     77        Zombie1.Tag = "Zombie"; 
    7778 
    7879       Zombie1.Brain = tasoAivot; 
     
    8081        tasoAivot.JumpSpeed = 700; 
    8182        tasoAivot.TriesToJump = true; 
    82     } 
    83  
    84     void LisaaTikkaat(Vector paikka, double leveys, double korkeus) 
    85     { 
    86        
    8783    } 
    8884    void LisaaTahti(Vector paikka, double leveys, double korkeus) 
     
    10399        pelaaja1.AnimIdle = new Animation(pelaajanKuva); 
    104100        AddCollisionHandler(pelaaja1, "tahti", TormaaTahteen); 
     101        AddCollisionHandler(pelaaja1, "Zombie", TormaaZombiin); 
    105102        Add(pelaaja1); 
    106103    } 
     
    141138    } 
    142139 
     140    void TormaaZombiin(PhysicsObject hahmo, PhysicsObject zombi) 
     141    { 
     142 
     143        MessageDisplay.Add("Kuolit!"); 
     144        hahmo.Destroy(); 
     145        Timer.SingleShot(2, Begin); 
     146    } 
     147 
    143148    IntMeter pisteLaskuri; 
    144149 
  • 2016/27/DanielL/SurvMontage/SurvMontage/SurvMontage/SurvMontage.csproj.Debug.cachefile

    r8041 r8055  
    2020Content\Zombie3.xnb 
    2121Content\High.xnb 
     22Content\Tikkaat.xnb 
     23Content\tausta.xnb 
     24Content\tausta2.xnb 
    2225Content\High.wma 
  • 2016/27/DanielL/SurvMontage/SurvMontage/SurvMontage/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml

    r8041 r8055  
    191191      <Extra>C:\MyTemp\DanielL\SurvMontage\SurvMontage\SurvMontage\bin\x86\Debug\Content\High.wma</Extra> 
    192192      <Time>2016-07-08T11:06:29.318309+03:00</Time> 
     193    </Item> 
     194    <Item> 
     195      <Source>Tikkaat.png</Source> 
     196      <Name>Tikkaat</Name> 
     197      <Importer>TextureImporter</Importer> 
     198      <Processor>TextureProcessor</Processor> 
     199      <Options>None</Options> 
     200      <Output>C:\MyTemp\DanielL\SurvMontage\SurvMontage\SurvMontage\bin\x86\Debug\Content\Tikkaat.xnb</Output> 
     201      <Time>2016-07-08T12:12:31.2780371+03:00</Time> 
     202    </Item> 
     203    <Item> 
     204      <Source>tausta.png</Source> 
     205      <Name>tausta</Name> 
     206      <Importer>TextureImporter</Importer> 
     207      <Processor>TextureProcessor</Processor> 
     208      <Options>None</Options> 
     209      <Output>C:\MyTemp\DanielL\SurvMontage\SurvMontage\SurvMontage\bin\x86\Debug\Content\tausta.xnb</Output> 
     210      <Time>2016-07-08T12:20:41.7382991+03:00</Time> 
     211    </Item> 
     212    <Item> 
     213      <Source>tausta2.jpg</Source> 
     214      <Name>tausta2</Name> 
     215      <Importer>TextureImporter</Importer> 
     216      <Processor>TextureProcessor</Processor> 
     217      <Options>None</Options> 
     218      <Output>C:\MyTemp\DanielL\SurvMontage\SurvMontage\SurvMontage\bin\x86\Debug\Content\tausta2.xnb</Output> 
     219      <Time>2016-07-08T12:21:23.6129377+03:00</Time> 
    193220    </Item> 
    194221    <BuildSuccessful>true</BuildSuccessful> 
  • 2016/27/DanielL/SurvMontage/SurvMontage/SurvMontage/obj/x86/Debug/SurvMontage.csproj.FileListAbsolute.txt

    r8041 r8055  
    2929C:\MyTemp\DanielL\SurvMontage\SurvMontage\SurvMontage\bin\x86\Debug\Content\High.xnb 
    3030C:\MyTemp\DanielL\SurvMontage\SurvMontage\SurvMontage\bin\x86\Debug\Content\High.wma 
     31C:\MyTemp\DanielL\SurvMontage\SurvMontage\SurvMontage\bin\x86\Debug\Content\Tikkaat.xnb 
     32C:\MyTemp\DanielL\SurvMontage\SurvMontage\SurvMontage\bin\x86\Debug\Content\tausta.xnb 
     33C:\MyTemp\DanielL\SurvMontage\SurvMontage\SurvMontage\bin\x86\Debug\Content\tausta2.xnb 
  • 2016/27/DanielL/SurvMontage/SurvMontage/SurvMontage/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt

    r8041 r8055  
    2121Content\High.xnb 
    2222Content\High.wma 
     23Content\Tikkaat.xnb 
     24Content\tausta.xnb 
     25Content\tausta2.xnb 
  • 2016/27/DanielL/SurvMontage/SurvMontage/SurvMontageContent/SurvMontageContent.contentproj

    r8041 r8055  
    170170    </Compile> 
    171171  </ItemGroup> 
     172  <ItemGroup> 
     173    <Compile Include="Tikkaat.png"> 
     174      <Name>Tikkaat</Name> 
     175      <Importer>TextureImporter</Importer> 
     176      <Processor>TextureProcessor</Processor> 
     177    </Compile> 
     178  </ItemGroup> 
     179  <ItemGroup> 
     180    <Compile Include="tausta.png"> 
     181      <Name>tausta</Name> 
     182      <Importer>TextureImporter</Importer> 
     183      <Processor>TextureProcessor</Processor> 
     184    </Compile> 
     185  </ItemGroup> 
     186  <ItemGroup> 
     187    <Compile Include="tausta2.jpg"> 
     188      <Name>tausta2</Name> 
     189      <Importer>TextureImporter</Importer> 
     190      <Processor>TextureProcessor</Processor> 
     191    </Compile> 
     192  </ItemGroup> 
    172193  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    173194  <!--  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.