Ignore:
Timestamp:
2015-06-09 22:05:09 (8 years ago)
Author:
sieerinn
Message:

Barbaareille animaatio.

Location:
2015/24/ohjaajat/Dungeon/Dungeon
Files:
10 added
3 edited

Legend:

Unmodified
Added
Removed
  • 2015/24/ohjaajat/Dungeon/Dungeon/Dungeon/Dungeon.cs

    r5969 r5970  
    6161    static Image kulttuuriKuva3 = LoadImage("spurdo"); 
    6262    Image[] huoneKuvat = new Image[] { kulttuuriKuva1, kulttuuriKuva2, kulttuuriKuva3 }; 
    63     #endregion  
     63    Image[] vihuKuvat = LoadImages((from i in Enumerable.Range(1, 10) select String.Format("v{0:0000}", i)).ToArray()); 
     64    #endregion 
    6465 
    6566    int[] hinnat = new int[] { 100, 200, 300 }; 
     
    151152    void LuoBarbaareja() 
    152153    { 
    153         PhysicsObject barbaari = new PhysicsObject(RUUDUN_KOKO * 0.3, RUUDUN_KOKO * 0.3); 
     154        PhysicsObject barbaari = new PhysicsObject(RUUDUN_KOKO * 0.4, RUUDUN_KOKO * 0.4); 
    154155        barbaari.Color = Color.Red; 
    155156        //barbaari.Position = RandomGen.NextVector(Level.Right, Level.Bottom, Level.Left, Level.Top); 
    156157        barbaari.Position = spawn.Position; 
     158        barbaari.Animation = new Animation(vihuKuvat); 
     159        barbaari.Animation.FPS = 10; 
     160        barbaari.Animation.Start(); 
    157161        Add(barbaari); 
    158162    } 
  • 2015/24/ohjaajat/Dungeon/Dungeon/Dungeon/Dungeon.csproj.Debug.cachefile

    r5966 r5970  
    66Content\nyan.xnb 
    77Content\spurdo.xnb 
     8Content\v0001.xnb 
     9Content\v0002.xnb 
     10Content\v0003.xnb 
     11Content\v0004.xnb 
     12Content\v0005.xnb 
     13Content\v0006.xnb 
     14Content\v0007.xnb 
     15Content\v0008.xnb 
     16Content\v0009.xnb 
     17Content\v0010.xnb 
  • 2015/24/ohjaajat/Dungeon/Dungeon/DungeonContent/DungeonContent.contentproj

    r5966 r5970  
    9090    </Compile> 
    9191  </ItemGroup> 
     92  <ItemGroup> 
     93    <Compile Include="v0001.png"> 
     94      <Name>v0001</Name> 
     95      <Importer>TextureImporter</Importer> 
     96      <Processor>TextureProcessor</Processor> 
     97    </Compile> 
     98    <Compile Include="v0002.png"> 
     99      <Name>v0002</Name> 
     100      <Importer>TextureImporter</Importer> 
     101      <Processor>TextureProcessor</Processor> 
     102    </Compile> 
     103    <Compile Include="v0003.png"> 
     104      <Name>v0003</Name> 
     105      <Importer>TextureImporter</Importer> 
     106      <Processor>TextureProcessor</Processor> 
     107    </Compile> 
     108    <Compile Include="v0004.png"> 
     109      <Name>v0004</Name> 
     110      <Importer>TextureImporter</Importer> 
     111      <Processor>TextureProcessor</Processor> 
     112    </Compile> 
     113    <Compile Include="v0005.png"> 
     114      <Name>v0005</Name> 
     115      <Importer>TextureImporter</Importer> 
     116      <Processor>TextureProcessor</Processor> 
     117    </Compile> 
     118    <Compile Include="v0006.png"> 
     119      <Name>v0006</Name> 
     120      <Importer>TextureImporter</Importer> 
     121      <Processor>TextureProcessor</Processor> 
     122    </Compile> 
     123    <Compile Include="v0007.png"> 
     124      <Name>v0007</Name> 
     125      <Importer>TextureImporter</Importer> 
     126      <Processor>TextureProcessor</Processor> 
     127    </Compile> 
     128    <Compile Include="v0008.png"> 
     129      <Name>v0008</Name> 
     130      <Importer>TextureImporter</Importer> 
     131      <Processor>TextureProcessor</Processor> 
     132    </Compile> 
     133    <Compile Include="v0009.png"> 
     134      <Name>v0009</Name> 
     135      <Importer>TextureImporter</Importer> 
     136      <Processor>TextureProcessor</Processor> 
     137    </Compile> 
     138    <Compile Include="v0010.png"> 
     139      <Name>v0010</Name> 
     140      <Importer>TextureImporter</Importer> 
     141      <Processor>TextureProcessor</Processor> 
     142    </Compile> 
     143  </ItemGroup> 
    92144  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    93145  <!--  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.