Changeset 7977 for 2016/27/ohjaajat


Ignore:
Timestamp:
2016-07-07 16:38:01 (3 years ago)
Author:
sieerinn
Message:

Luolakenttää viimeistelty ja lisätty sininen goomba2 joka ei putoile alas

Location:
2016/27/ohjaajat/VenienteFragore/VenienteFragore
Files:
5 added
6 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragore/GoombaEnemy.cs

    r7832 r7977  
    4747            } 
    4848 
    49             if (CheckCollision(new Vector(2, 1))) 
     49            if (CheckCollision(new Vector(1, 0))) 
    5050                walkRight = false; 
    5151 
    52             if (CheckCollision(new Vector(-2, 1))) 
     52            if (CheckCollision(new Vector(-1, 0))) 
    5353                walkRight = true; 
    5454 
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragore/LevelCreationMethods.cs

    r7976 r7977  
    3030        } 
    3131 
     32        private void CreateGoomba2(Vector position, double width, double height, Dictionary<string, string> properties) 
     33        { 
     34            MakeGoomba(position, minimiinii2Images, false); 
     35        } 
     36 
    3237        private void CreateGoomba(Vector position, double width, double height, Dictionary<string, string> properties) 
    3338        { 
    34             var goomba = new GoombaEnemy(TileSize * 0.99, TileSize * 0.99); 
     39            MakeGoomba(position, minimiiniiImages, true); 
     40        } 
     41 
     42        private void MakeGoomba(Vector position, Image[] animImages, bool fallsOff) 
     43        { 
     44            var goomba = new GoombaEnemy(TileSize*0.96, TileSize*0.96); 
    3545            goomba.Position = position; 
    3646            goomba.Color = Color.Pink; 
    3747            goomba.Tag = "goomba"; 
    3848            goomba.Speed = 100; 
    39             goomba.FallOffPlatforms = true; 
    40             goomba.Animation = new Animation(minimiiniiImages) { FPS = 10 }; 
     49            goomba.FallOffPlatforms = fallsOff; 
     50            goomba.Animation = new Animation(animImages) {FPS = 10}; 
    4151            goomba.Animation.Start(); 
    4252            Add(goomba); 
     
    5060                    player.Velocity = new Vector(player.Velocity.X, 400); 
    5161 
    52                     var corpse = new GameObject(goomba.Width, goomba.Height * 0.2); 
     62                    var corpse = new GameObject(goomba.Width, goomba.Height*0.2); 
    5363                    corpse.TextureWrapSize = goomba.TextureWrapSize; 
    54                     corpse.Image = minimiiniiImages[0]; 
     64                    corpse.Image = animImages[0]; 
    5565                    corpse.X = goomba.X; 
    5666                    corpse.Bottom = goomba.Bottom; 
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragore/VenienteFragore.cs

    r7976 r7977  
    1717        private readonly Image dripImage = LoadImage("drip"); 
    1818        private readonly Image[] minimiiniiImages = LoadImages("minimiiniianim\\minimiiniianim", 1, 4); 
     19        private readonly Image[] minimiinii2Images = LoadImages("minimiinii2anim\\anim", 1, 4); 
    1920        private readonly Image[] advenaImages = LoadImages("advenawalk\\advenawalk00", 1, 49, true); 
    2021        private readonly Image[] advenbImages = LoadImages("advenbwalk\\advenb00", 1, 49, true); 
     
    5758            objectMethods.Add("door", CreateDoor); 
    5859            objectMethods.Add("goomba", CreateGoomba); 
     60            objectMethods.Add("goomba2", CreateGoomba2); 
    5961            objectMethods.Add("drip", CreateWaterDrip); 
    6062 
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragoreContent/VenienteFragoreContent.contentproj

    r7976 r7977  
    614614    </Compile> 
    615615  </ItemGroup> 
     616  <ItemGroup /> 
     617  <ItemGroup> 
     618    <Compile Include="minimiinii2anim\anim1.png"> 
     619      <Name>anim1</Name> 
     620      <Importer>TextureImporter</Importer> 
     621      <Processor>TextureProcessor</Processor> 
     622    </Compile> 
     623    <Compile Include="minimiinii2anim\anim2.png"> 
     624      <Name>anim2</Name> 
     625      <Importer>TextureImporter</Importer> 
     626      <Processor>TextureProcessor</Processor> 
     627    </Compile> 
     628    <Compile Include="minimiinii2anim\anim3.png"> 
     629      <Name>anim3</Name> 
     630      <Importer>TextureImporter</Importer> 
     631      <Processor>TextureProcessor</Processor> 
     632    </Compile> 
     633    <Compile Include="minimiinii2anim\anim4.png"> 
     634      <Name>anim4</Name> 
     635      <Importer>TextureImporter</Importer> 
     636      <Processor>TextureProcessor</Processor> 
     637    </Compile> 
     638  </ItemGroup> 
    616639  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    617640  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragoreContent/desolatecaves.tmx

    r7928 r7977  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <map version="1.0" orientation="orthogonal" renderorder="right-down" width="120" height="40" tilewidth="50" tileheight="50" nextobjectid="9"> 
    3  <tileset firstgid="1" source="VenienteFragoreTileset.tsx"/> 
     2<map version="1.0" orientation="orthogonal" renderorder="right-down" width="120" height="40" tilewidth="50" tileheight="50" nextobjectid="13"> 
     3 <tileset firstgid="1" name="VenienteFragoreTileset" tilewidth="50" tileheight="50" tilecount="64" columns="8"> 
     4  <image source="tileset.png" width="400" height="400"/> 
     5  <tile id="1"> 
     6   <properties> 
     7    <property name="type" value="break"/> 
     8   </properties> 
     9  </tile> 
     10  <tile id="2"> 
     11   <properties> 
     12    <property name="type" value="death"/> 
     13   </properties> 
     14  </tile> 
     15  <tile id="6"> 
     16   <properties> 
     17    <property name="type" value="ice"/> 
     18   </properties> 
     19  </tile> 
     20  <tile id="31"> 
     21   <properties> 
     22    <property name="type" value="death"/> 
     23   </properties> 
     24  </tile> 
     25 </tileset> 
    426 <layer name="Tiilet" width="120" height="40"> 
    527  <data encoding="base64" compression="zlib"> 
    6    eJy1lm1urEoMRLOAl7n73+37hYRarlPHMLGEEmDabdeHm8/Pz8+/4focf+k39/tPyHHm+4TnKRc9P/OcV9ovvaM+W49T/oZtqjetTddUK/VANbYaiDOqK9WZeN3o0eiO8Kc1hFurfcMB7W28Z3VsubQ8NI80TbTajKa2XFo/ptpIB8bPqaamS8PRtr/mwZRzo5k3+mh8Ejfks+SdjS+NLltdLW9ba/tLODatGc5pP/LrE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Oq132t7pHvVDOiEdkHe+wW/iMfXX+jD+aZiZmtIe1L+9rDc3fDe8jYetP9KeVHvDvmln06fR9FQbPTfapT7aOpod1oN2TeN8+8zgQv6yPjR1kz7pfdJ+qsv40rx7V9/Epclh+jf4pp6t9+7k3cyM1IfFxmq49WTWEL+tJ6sNo+uUI/VP+JL/NjWSLuk9wt/0Z2tMvrK8Nw8YfpoX7H5tb+rf+izVmzS0+Z28kn63Gsj3CSeDp+G24ZmuFE031k9TL4RV88557wyjB6Mn6wXLi8lhvNFmyXlvE23v83+K9yUfcdrmw7RX0wf5xuiY9GKwT3uknNfe0lrSvA3S5h3NtJxnvvfwfsqXakuzsPHdPEr3zAzYYNj0cWK1jWlWnDq7k/dJr1N9ZgZMuBBn5H2jefts02fygYnf4zojaedpkPanSBrbcDLl+MT72IfW00xoc+kbs8/ExOVm/qc5uY10Fk352zn3f7xDH++jlzbrz/fSbE1zh3Q6zaxv4XjG77AP+f6vuP0E1ZFwmnw05Wv7bWKaGxO35M0n8/kTv+W65p1mC/Vm995Gm4ev4b1v+yDN4fMZ8dpqmfJv8PrwR+fTX8yET3zrbDbfEBPW17WkCzqTp3mWzoU26699pbN78uInTm9OPqN5Melw48Ppe+wv4lpTmnHpLG9n6HSWX+PKyTaa91pdG3/a70LS1adm+v2tSN8t1+d/OZ+exuTbiU/7bUe56BuLZtcHv3NmnGH4Jb2k74Y7590U03zeeJJwa0HYJ77beZ8wofWJ1yueU0/Wv3SupTNqqiXVTfq++33SPERzlTC2XBA37XuieXzD7z+A0XVt8hJxNPFLZ1mbd8kPZpYmHinnf1vD65w= 
    729  </data> 
    830 </layer> 
     
    2244  <object id="7" name="drip" type="drip" x="2600" y="1400" width="50" height="50"/> 
    2345  <object id="8" name="goomba" type="goomba" gid="9" x="900" y="1650" width="50" height="50"/> 
     46  <object id="9" name="goomba2" type="goomba2" gid="9" x="1500" y="1500" width="50" height="50"/> 
     47  <object id="10" name="goomba2" type="goomba2" gid="9" x="2350" y="1650" width="50" height="50"/> 
     48  <object id="11" name="goomba2" type="goomba2" gid="9" x="4950" y="1950" width="50" height="50"/> 
     49  <object id="12" name="goomba" type="goomba" gid="9" x="3650" y="1500" width="50" height="50"/> 
    2450 </objectgroup> 
    2551 <layer name="Etuala" width="120" height="40"> 
    2652  <data encoding="base64" compression="zlib"> 
    27    eJzt1lEOgjAMgGEOYIxP6BPe/5a6hCV16Vi3lYH6fwkREMZYu45pAgAAAAAAAAAAAAAAAAAAAAAA+A2z2L+tv/cjOgI3c+b8IzmujbOWK/KYvLGLY9kTAwtr+2m7aa7IY+Ksi2OYzg3LeNXG1Sq0m/YHdUpzI8jFeK+4yra1/pScKSfkGJ29trSM2/Lent4dKQg5MWIsS7HT8t+zX63raE7LXGrhVRdGz5fW53n0c/S7zsZnptd413zPb+uevnnWsD3XxZrnh3e6KptX+xay5mix3ruGesl9//bYWju12i/Hao81t3fcW9cXma8erDmlXTdijUzjmM7L0d9T3pbC/0fXR3yK8WrNu1K8I0v7W22V7u+592xivWqZKz33jqDF6dvi0+OybnJfntPOa9fJ6//JC+CKCoM= 
     53   eJzt10uOgzAMgOEeYFR1xXTV2fb+JxwhNZIVGezEJuXxf1JVSoOBOHHgdgMAAAAAAAAAAAAAAAAAAAAAADiHSWw/Pt+/37iQDuXaj3K9o0wL+5/V79Z+08ZKJJ73XGfUO3Zb+8Ubv45bj5V3Y0wZr25fn+vPEe8Iyn3Vc6O1vzJtPY/exv9nyK01N2ZLOZbHWn3VqsTuiavVb+nVEbPXWq3YG6vfNHNfjp4H8xi1+rI1x1otsXKnjf8tnhOyYmpzewtZddl73yXXVvulWhLNXUZ+RteGyXlO6/km6uG8Dku0pmfWsG8/35fzz/d0Vz5Z8T1kzdFyrcXa4zq59PwbsbZ2arVf9tUWa26033vXFzleM3jHlNZuxBpZ57Gel0d/r7BqcUZ9zH7fuLKSr95x5117PfHXYlnHR47dm1KveuZK5NgRtDwdLT8RP5+P3Jb7tP1aO9n+Sv4Bu58Mxg== 
    2854  </data> 
    2955 </layer> 
Note: See TracChangeset for help on using the changeset viewer.