Changeset 8363 for 2016


Ignore:
Timestamp:
2016-11-19 14:53:30 (3 years ago)
Author:
koannak
Message:
 
Location:
2016/koodauskerho/EeroP
Files:
52 added
11 edited

Legend:

Unmodified
Added
Removed
  • 2016/koodauskerho/EeroP/Tower_Defence/Tower_Defence/Tower_Defence/Tower_Defence.cs

    r8338 r8363  
    6363    Image koirankuva = LoadImage("Dog"); 
    6464    Image kotiKuva = LoadImage("house"); 
     65    Image polkuKuva = LoadImage("polku"); 
     66    Image nurmiKuva = LoadImage("nurmikko"); 
     67    Image boneKuva = LoadImage("bone"); 
    6568 
    6669    int vihunNumero = 0; 
     
    7780 
    7881        Timer vihuAjastin = new Timer(); 
    79         vihuAjastin.Interval = 0.5; 
     82        vihuAjastin.Interval = 1.5; 
    8083        vihuAjastin.Timeout += LuoVihollinen; 
    8184        vihuAjastin.Start(); 
     
    9497 
    9598        ruudut.Execute(30, 30); 
     99        Level.Background.Image = nurmiKuva; 
     100        Level.Background.TileToLevel(); 
    96101 
    97102    } 
     
    101106        GameObject polku = new GameObject(leveys, korkeus); 
    102107        polku.Position = paikka; 
    103         polku.Color = Color.LightGreen; 
     108        polku.Image = polkuKuva; 
    104109        Add(polku, -1); 
    105110    } 
     
    134139 
    135140        Timer rahaAjastin = new Timer(); 
    136         rahaAjastin.Interval = 0.7; 
    137         rahaAjastin.Timeout += delegate { raha.Value += 10; }; 
     141        rahaAjastin.Interval = 0.5; 
     142        rahaAjastin.Timeout += delegate { raha.Value += 15; }; 
    138143        rahaAjastin.Start(); 
    139144    } 
     
    154159            dog.Position = Mouse.PositionOnWorld; 
    155160            dog.AmpumisAjastin = new Timer(); 
    156             dog.AmpumisAjastin.Interval = 0.35; 
     161            dog.AmpumisAjastin.Interval = 0.30; 
    157162            dog.AmpumisAjastin.Timeout += delegate { DogAmpuu(dog); }; 
    158163            dog.AmpumisAjastin.Start(); 
     
    211216            PhysicsObject ammus = new PhysicsObject(10, 10, Shape.Diamond); 
    212217            ammus.Position = dog.Position; 
    213             ammus.Color = Color.Wheat; 
     218            ammus.Image = boneKuva; 
    214219            ammus.LifetimeLeft = TimeSpan.FromSeconds(2); 
    215220            Add(ammus); 
  • 2016/koodauskerho/EeroP/Tower_Defence/Tower_Defence/Tower_Defence/Tower_Defence.csproj.Debug.cachefile

    r8338 r8363  
    88Content\house.xnb 
    99Content\papyrus.xnb 
     10Content\nurmikko.xnb 
     11Content\polku.xnb 
  • 2016/koodauskerho/EeroP/Tower_Defence/Tower_Defence/Tower_Defence/obj/x86/Debug/ContentPipeline-{52B1EA6A-C6CA-410F-890F-22B3C31E2D34}.xml

    r8338 r8363  
    8383      <Time>2016-10-22T14:29:43.4510281+03:00</Time> 
    8484    </Item> 
     85    <Item> 
     86      <Source>nurmikko.png</Source> 
     87      <Name>nurmikko</Name> 
     88      <Importer>TextureImporter</Importer> 
     89      <Processor>TextureProcessor</Processor> 
     90      <Options>None</Options> 
     91      <Output>C:\MyTemp\EeroP\Tower_Defence\Tower_Defence\Tower_Defence\bin\x86\Debug\Content\nurmikko.xnb</Output> 
     92      <Time>2016-11-19T10:40:15.8109321+02:00</Time> 
     93    </Item> 
     94    <Item> 
     95      <Source>polku.png</Source> 
     96      <Name>polku</Name> 
     97      <Importer>TextureImporter</Importer> 
     98      <Processor>TextureProcessor</Processor> 
     99      <Options>None</Options> 
     100      <Output>C:\MyTemp\EeroP\Tower_Defence\Tower_Defence\Tower_Defence\bin\x86\Debug\Content\polku.xnb</Output> 
     101      <Time>2016-11-19T10:40:24.3753321+02:00</Time> 
     102    </Item> 
    85103    <BuildSuccessful>true</BuildSuccessful> 
    86104    <Settings> 
  • 2016/koodauskerho/EeroP/Tower_Defence/Tower_Defence/Tower_Defence/obj/x86/Debug/Tower_Defence.csproj.FileListAbsolute.txt

    r8338 r8363  
    1616C:\MyTemp\EeroP\Tower_Defence\Tower_Defence\Tower_Defence\bin\x86\Debug\Content\house.xnb 
    1717C:\MyTemp\EeroP\Tower_Defence\Tower_Defence\Tower_Defence\bin\x86\Debug\Content\papyrus.xnb 
     18C:\MyTemp\EeroP\Tower_Defence\Tower_Defence\Tower_Defence\bin\x86\Debug\Content\nurmikko.xnb 
     19C:\MyTemp\EeroP\Tower_Defence\Tower_Defence\Tower_Defence\bin\x86\Debug\Content\polku.xnb 
  • 2016/koodauskerho/EeroP/Tower_Defence/Tower_Defence/Tower_Defence/obj/x86/Debug/cachefile-{52B1EA6A-C6CA-410F-890F-22B3C31E2D34}-targetpath.txt

    r8338 r8363  
    88Content\house.xnb 
    99Content\papyrus.xnb 
     10Content\nurmikko.xnb 
     11Content\polku.xnb 
  • 2016/koodauskerho/EeroP/Tower_Defence/Tower_Defence/Tower_DefenceContent/Tower_DefenceContent.contentproj

    r8338 r8363  
    108108    </Compile> 
    109109  </ItemGroup> 
     110  <ItemGroup> 
     111    <Compile Include="nurmikko.png"> 
     112      <Name>nurmikko</Name> 
     113      <Importer>TextureImporter</Importer> 
     114      <Processor>TextureProcessor</Processor> 
     115    </Compile> 
     116  </ItemGroup> 
     117  <ItemGroup> 
     118    <Compile Include="polku.png"> 
     119      <Name>polku</Name> 
     120      <Importer>TextureImporter</Importer> 
     121      <Processor>TextureProcessor</Processor> 
     122    </Compile> 
     123  </ItemGroup> 
    110124  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    111125  <!--  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.