Ignore:
Timestamp:
2019-06-11 15:04:14 (4 months ago)
Author:
paharvol
Message:
 
Location:
2016/27/PaavoH/BeeHunter
Files:
3 added
13 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/PaavoH/BeeHunter/BeeHunter/BeeHunter/BeeHunter.cs

    r10024 r10055  
    1919    Image pelaajanKuva = LoadImage("norsu"); 
    2020    Image tahtiKuva = LoadImage("tahti"); 
     21    Image MiniBeeImage = LoadImage("bee"); 
     22    Image MiniBeeImageFlipped; 
    2123 
    2224    //EggBreak = LoadAnimation("egg"); 
     
    2628    public override void Begin() 
    2729    { 
     30         
     31 
    2832        Gravity = new Vector(0, -1100); 
    2933 
     
    5357    } 
    5458 
     59    protected override void Update(Time time) 
     60    { 
     61        base.Update(time); 
     62 
     63        List<GameObject> ampiaiset = GetObjectsWithTag("MiniBee", "MotherBee"); 
     64        foreach(PhysicsObject b in ampiaiset) 
     65        { 
     66            b.Angle = b.Velocity.Angle + Angle.FromDegrees(90); 
     67 
     68            if (b.Angle.GetPositiveDegrees() > 180) b.FlipImage(); 
     69             
     70        } 
     71    } 
     72 
    5573    void NestWall(Vector pos, double leveys, double korkeus) 
    5674    { 
     
    93111        var minibee = new PhysicsObject(leveys /4, korkeus /4); 
    94112        minibee.Position = pos; 
    95         minibee.Color = Color.Emerald; 
     113        minibee.Image = MiniBeeImage; 
    96114        minibee.IgnoresGravity = true; 
    97115        minibee.Tag = "MiniBee"; 
     116        minibee.CanRotate = false; 
    98117        Add(minibee); 
    99118 
  • 2016/27/PaavoH/BeeHunter/BeeHunter/BeeHunter/BeeHunter.csproj.Debug.cachefile

    r10024 r10055  
    33Content\tahti.xnb 
    44Content\kentta1.xnb 
     5Content\bee.xnb 
  • 2016/27/PaavoH/BeeHunter/BeeHunter/BeeHunter/obj/x86/Debug/BeeHunter.csproj.FileListAbsolute.txt

    r10024 r10055  
    1212C:\MyTemp\PaavoH\BeeHunter\BeeHunter\BeeHunter\obj\x86\Debug\BeeHunter.exe 
    1313C:\MyTemp\PaavoH\BeeHunter\BeeHunter\BeeHunter\obj\x86\Debug\BeeHunter.pdb 
     14C:\MyTemp\PaavoH\BeeHunter\BeeHunter\BeeHunter\bin\x86\Debug\Content\bee.xnb 
  • 2016/27/PaavoH/BeeHunter/BeeHunter/BeeHunter/obj/x86/Debug/ContentPipeline-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}.xml

    r10024 r10055  
    3737      <Output>C:\MyTemp\PaavoH\BeeHunter\BeeHunter\BeeHunter\bin\x86\Debug\Content\kentta1.xnb</Output> 
    3838      <Time>2019-06-10T15:10:06.9850751+03:00</Time> 
     39    </Item> 
     40    <Item> 
     41      <Source>bee.png</Source> 
     42      <Name>bee</Name> 
     43      <Importer>TextureImporter</Importer> 
     44      <Processor>TextureProcessor</Processor> 
     45      <Options>None</Options> 
     46      <Output>C:\MyTemp\PaavoH\BeeHunter\BeeHunter\BeeHunter\bin\x86\Debug\Content\bee.xnb</Output> 
     47      <Time>2019-06-11T10:09:00.4465393+03:00</Time> 
    3948    </Item> 
    4049    <BuildSuccessful>true</BuildSuccessful> 
  • 2016/27/PaavoH/BeeHunter/BeeHunter/BeeHunter/obj/x86/Debug/cachefile-{FB1067CC-FEED-45F1-8CB8-8F3DD59AB260}-targetpath.txt

    r10024 r10055  
    33Content\tahti.xnb 
    44Content\kentta1.xnb 
     5Content\bee.xnb 
  • 2016/27/PaavoH/BeeHunter/BeeHunter/BeeHunterContent/BeeHunterContent.contentproj

    r10024 r10055  
    6767    </Compile> 
    6868  </ItemGroup> 
     69  <ItemGroup> 
     70    <Compile Include="bee.png"> 
     71      <Name>bee</Name> 
     72      <Importer>TextureImporter</Importer> 
     73      <Processor>TextureProcessor</Processor> 
     74    </Compile> 
     75  </ItemGroup> 
    6976  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    7077  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2016/27/PaavoH/BeeHunter/BeeHunter/BeeHunterContent/obj/x86/Debug/BeeHunterContent.contentproj.CoreCompileInputs.cache

    r10024 r10055  
    1 045e9882bb0e0f9c8cbacb813f31cbd6d5da56e3 
     1f0ccb65a12a8794dfb68892fc23893ae4cb72167 
Note: See TracChangeset for help on using the changeset viewer.