Changeset 9101 for 2017/30


Ignore:
Timestamp:
2017-07-25 15:00:20 (2 years ago)
Author:
npo17_56
Message:

Helikopteri liikkumaan. Kenttään Laidat

Location:
2017/30/OlliL
Files:
25 added
2 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • 2017/30/OlliL/Bomb helicopter/Bomb helicopter/Bomb helicopterContent/Bomb helicopterContent.contentproj

    r9081 r9101  
    4646  </ItemGroup> 
    4747  <ItemGroup> 
    48     <Compile Include="Helikopteri 4.png"> 
    49       <Name>Helikopteri 4</Name> 
     48    <Compile Include="ropeli1.png"> 
     49      <Name>ropeli1</Name> 
     50      <Importer>TextureImporter</Importer> 
     51      <Processor>TextureProcessor</Processor> 
     52    </Compile> 
     53    <Compile Include="ropeli2.png"> 
     54      <Name>ropeli2</Name> 
     55      <Importer>TextureImporter</Importer> 
     56      <Processor>TextureProcessor</Processor> 
     57    </Compile> 
     58  </ItemGroup> 
     59  <ItemGroup> 
     60    <Compile Include="Helikopteri10.png"> 
     61      <Name>Helikopteri10</Name> 
     62      <Importer>TextureImporter</Importer> 
     63      <Processor>TextureProcessor</Processor> 
     64    </Compile> 
     65  </ItemGroup> 
     66  <ItemGroup> 
     67    <Compile Include="Helikopteri11.png"> 
     68      <Name>Helikopteri11</Name> 
     69      <Importer>TextureImporter</Importer> 
     70      <Processor>TextureProcessor</Processor> 
     71    </Compile> 
     72  </ItemGroup> 
     73  <ItemGroup> 
     74    <Compile Include="Kentta2.png"> 
     75      <Name>Kentta2</Name> 
    5076      <Importer>TextureImporter</Importer> 
    5177      <Processor>TextureProcessor</Processor> 
  • 2017/30/OlliL/Bomb helicopter/Bomb helicopter/Bomb_helicopter/Bomb_helicopter.cs

    r9081 r9101  
    99public class Bomb_helicopter : PhysicsGame 
    1010{ 
    11     Vector nopeusYlos = new Vector(0, 200); 
    12     Vector nopeusAlas = new Vector(0, -200); 
    13     Vector nopeusOikea = new Vector(200, 0); 
    14     Vector nopeusVasen = new Vector(-200, 0); 
     11    Vector nopeusYlos = new Vector(0, 300); 
     12    Vector nopeusAlas = new Vector(0, -300); 
     13    Vector nopeusOikea = new Vector(600, 0); 
     14    Vector nopeusVasen = new Vector(-600, 0); 
    1515 
     16    Image taustaKuva = LoadImage("Kentta2"); 
     17    private Image[] ropelinPyoriminen = LoadImages("ropeli1", "ropeli2"); 
    1618    PhysicsObject helikopteri; 
     19 
     20     
    1721 
    1822    public override void Begin() 
    1923    { 
     24        Level.Width = Window.Width*3; 
     25        Level.Height = Window.Height; 
     26        Level.CreateBorders(); 
     27        Camera.ZoomToLevel(); 
     28        Camera.StayInLevel = true; 
    2029        LuoHelikopteri(); 
    2130        AsetaOhjaimet(); 
    22          
     31        Camera.Follow(helikopteri); 
    2332 
    24         
     33        Level.Background.Image = taustaKuva; 
     34        Level.Background.FitToLevel(); 
    2535        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 
    2636    } 
     37 
     38     
     39    
     40     
    2741 
    2842    void AsetaOhjaimet() 
     
    4559    void LuoHelikopteri() 
    4660    { 
    47         helikopteri = new PhysicsObject(810, 233); 
    48         Image kuva = LoadImage("Helikopteri 4"); 
    49         helikopteri.Shape = Shape.FromImage(kuva); 
    50          
    51         helikopteri.Image = kuva; 
     61        helikopteri = new PhysicsObject(510, 133); 
     62        //Image kuva = LoadImage("Helikopteri6", "Helikopteri7"); 
     63        //helikopteri.Shape = Shape.FromImage(kuva); 
     64        //helikopteri.Image = kuva; 
     65        ropelinPyoriminen = LoadImages("Helikopteri10", "Helikopteri11"); 
     66        helikopteri.Animation = new Animation(ropelinPyoriminen); 
     67        helikopteri.Animation.Start(); 
    5268        Add(helikopteri); 
    5369    } 
  • 2017/30/OlliL/Bomb helicopter/Bomb helicopter/Bomb_helicopter/Bomb_helicopter.csproj.Debug.cachefile

    r9081 r9101  
    1 Content\Helikopteri 4.xnb 
     1Content\ropeli1.xnb 
     2Content\ropeli2.xnb 
     3Content\Helikopteri10.xnb 
     4Content\Helikopteri11.xnb 
     5Content\Kentta2.xnb 
  • 2017/30/OlliL/Bomb helicopter/Bomb helicopter/Bomb_helicopter/obj/x86/Debug/Bomb_helicopter.csproj.FileListAbsolute.txt

    r9081 r9101  
    77C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\obj\x86\Debug\Bomb_helicopter.exe 
    88C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\obj\x86\Debug\Bomb_helicopter.pdb 
    9 C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\bin\x86\Debug\Content\Helikopteri 4.xnb 
     9C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\bin\x86\Debug\Content\ropeli1.xnb 
     10C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\bin\x86\Debug\Content\ropeli2.xnb 
     11C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\bin\x86\Debug\Content\Helikopteri10.xnb 
     12C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\bin\x86\Debug\Content\Helikopteri11.xnb 
     13C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\bin\x86\Debug\Content\Kentta2.xnb 
  • 2017/30/OlliL/Bomb helicopter/Bomb helicopter/Bomb_helicopter/obj/x86/Debug/ContentPipeline-{0FA830EB-FE46-4508-A0B0-AB31DCF90F68}.xml

    r9081 r9101  
    33  <Asset Type="Pipeline:BuildItemCollection"> 
    44    <Item> 
    5       <Source>Helikopteri 4.png</Source> 
    6       <Name>Helikopteri 4</Name> 
     5      <Source>ropeli1.png</Source> 
     6      <Name>ropeli1</Name> 
    77      <Importer>TextureImporter</Importer> 
    88      <Processor>TextureProcessor</Processor> 
    99      <Options>None</Options> 
    10       <Output>C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\bin\x86\Debug\Content\Helikopteri 4.xnb</Output> 
    11       <Time>2017-07-25T11:45:26.8700858+03:00</Time> 
     10      <Output>C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\bin\x86\Debug\Content\ropeli1.xnb</Output> 
     11      <Time>2017-07-25T13:03:41.2774304+03:00</Time> 
     12    </Item> 
     13    <Item> 
     14      <Source>ropeli2.png</Source> 
     15      <Name>ropeli2</Name> 
     16      <Importer>TextureImporter</Importer> 
     17      <Processor>TextureProcessor</Processor> 
     18      <Options>None</Options> 
     19      <Output>C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\bin\x86\Debug\Content\ropeli2.xnb</Output> 
     20      <Time>2017-07-25T13:03:41.2774304+03:00</Time> 
     21    </Item> 
     22    <Item> 
     23      <Source>Helikopteri10.png</Source> 
     24      <Name>Helikopteri10</Name> 
     25      <Importer>TextureImporter</Importer> 
     26      <Processor>TextureProcessor</Processor> 
     27      <Options>None</Options> 
     28      <Output>C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\bin\x86\Debug\Content\Helikopteri10.xnb</Output> 
     29      <Time>2017-07-25T13:31:36.432312+03:00</Time> 
     30    </Item> 
     31    <Item> 
     32      <Source>Helikopteri11.png</Source> 
     33      <Name>Helikopteri11</Name> 
     34      <Importer>TextureImporter</Importer> 
     35      <Processor>TextureProcessor</Processor> 
     36      <Options>None</Options> 
     37      <Output>C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\bin\x86\Debug\Content\Helikopteri11.xnb</Output> 
     38      <Time>2017-07-25T13:31:40.9479642+03:00</Time> 
     39    </Item> 
     40    <Item> 
     41      <Source>Kentta2.png</Source> 
     42      <Name>Kentta2</Name> 
     43      <Importer>TextureImporter</Importer> 
     44      <Processor>TextureProcessor</Processor> 
     45      <Options>None</Options> 
     46      <Output>C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\bin\x86\Debug\Content\Kentta2.xnb</Output> 
     47      <Time>2017-07-25T14:33:53.4748382+03:00</Time> 
    1248    </Item> 
    1349    <BuildSuccessful>true</BuildSuccessful> 
  • 2017/30/OlliL/Bomb helicopter/Bomb helicopter/Bomb_helicopter/obj/x86/Debug/cachefile-{0FA830EB-FE46-4508-A0B0-AB31DCF90F68}-targetpath.txt

    r9081 r9101  
    1 Content\Helikopteri 4.xnb 
     1Content\ropeli1.xnb 
     2Content\ropeli2.xnb 
     3Content\Helikopteri10.xnb 
     4Content\Helikopteri11.xnb 
     5Content\Kentta2.xnb 
Note: See TracChangeset for help on using the changeset viewer.