Changeset 7786 for 2016/27


Ignore:
Timestamp:
2016-07-05 14:53:43 (3 years ago)
Author:
karkaite
Message:
 
Location:
2016/27/OttoK
Files:
12 added
6 deleted
13 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/OttoK/Survivetown/Survivetown/Survivetown/Survivetown.cs

    r7756 r7786  
    1111    Image olionKuva = LoadImage("pelikissa"); 
    1212    Image taustakuva = LoadImage("grassbackground"); 
     13    Image pelaajankuva = LoadImage("mlgnorsurebornedv2"); 
     14    Image jonnenkuva = LoadImage("jonne"); 
    1315    PhysicsObject pelaaja; 
    1416    double nopeus = 1000; 
    1517    bool sprint = false; 
     18    PhysicsObject jonne; 
    1619 
    1720    public override void Begin() 
     
    1922        LuoKentta(); 
    2023        LisaaOhjaimet(); 
     24        LuoJonne(); 
     25        Tupruttelia(); 
     26        //LuoPingviini(); 
    2127 
    2228        Keyboard.Listen(Key.Left, ButtonState.Down, 
     
    3945        ruudut.SetTileMethod(Color.Red, LuoPelaaja); 
    4046        ruudut.SetTileMethod(Color.Black, LuoTaso); 
     47        ruudut.SetTileMethod(new Color(255, 216, 0), LuoPingviini); 
    4148        ruudut.Execute(20, 20); 
    4249 
     
    5562        pelaaja = new PhysicsObject(80, 50); 
    5663        pelaaja.LinearDamping = 0.9; 
    57         pelaaja.Color = Color.Yellow; 
     64        pelaaja.Image = pelaajankuva; 
    5865        pelaaja.CanRotate = false; 
    5966        Add(pelaaja); 
     
    8087    { 
    8188    } 
     89    void LuoPingviini(Vector paikka, double x, double y) 
     90    { 
     91        PhysicsObject pingviini = new PhysicsObject(70, 50); 
     92        pingviini.Shape = Shape.Circle; 
     93        pingviini.Color = Color.Red; 
     94        pingviini.Position = paikka; 
     95        pingviini.CanRotate = false; 
     96        Add(pingviini); 
     97    } 
     98    void LuoJonne() 
     99    { 
     100        jonne = new PhysicsObject(250, 250); 
     101        jonne.Position = new Vector(0, -1500); 
     102        jonne.CanRotate = false; 
     103        jonne.Image = jonnenkuva; 
     104        Add(jonne); 
     105    } 
     106    void Tupruttelia() 
     107    { 
     108        Smoke savu = new Smoke(); 
     109        savu.Position = jonne.Position; 
     110        Add(savu, 1); 
     111        Wind = new Vector(100, 20); 
     112        Timer savunsiirto = new Timer(); 
     113        savunsiirto.Interval = 0.1; 
     114        savunsiirto.Timeout += delegate { savu.Position = jonne.Position; }; 
     115        savunsiirto.Start(); 
     116    } 
    82117} 
  • 2016/27/OttoK/Survivetown/Survivetown/Survivetown/Survivetown.csproj.Debug.cachefile

    r7756 r7786  
    33Content\kenttatiedosto.xnb 
    44Content\kenttav2.xnb 
     5Content\mlgnorsurebornedv2.xnb 
     6Content\jonne.xnb 
  • 2016/27/OttoK/Survivetown/Survivetown/Survivetown/obj/x86/Debug/ContentPipeline-{AF625287-3FBB-4ACD-9F6A-000F734EB560}.xml

    r7756 r7786  
    3636      <Options>None</Options> 
    3737      <Output>C:\MyTemp\OttoK\Survivetown\Survivetown\Survivetown\bin\x86\Debug\Content\kenttav2.xnb</Output> 
    38       <Time>2016-07-05T10:46:47.3805051+03:00</Time> 
     38      <Time>2016-07-05T12:27:01.7154051+03:00</Time> 
     39    </Item> 
     40    <Item> 
     41      <Source>mlgnorsurebornedv2.png</Source> 
     42      <Name>mlgnorsurebornedv2</Name> 
     43      <Importer>TextureImporter</Importer> 
     44      <Processor>TextureProcessor</Processor> 
     45      <Options>None</Options> 
     46      <Output>C:\MyTemp\OttoK\Survivetown\Survivetown\Survivetown\bin\x86\Debug\Content\mlgnorsurebornedv2.xnb</Output> 
     47      <Time>2016-07-05T11:57:45.4800051+03:00</Time> 
     48    </Item> 
     49    <Item> 
     50      <Source>jonne.png</Source> 
     51      <Name>jonne</Name> 
     52      <Importer>TextureImporter</Importer> 
     53      <Processor>TextureProcessor</Processor> 
     54      <Options>None</Options> 
     55      <Output>C:\MyTemp\OttoK\Survivetown\Survivetown\Survivetown\bin\x86\Debug\Content\jonne.xnb</Output> 
     56      <Time>2016-07-05T14:10:50.7444051+03:00</Time> 
    3957    </Item> 
    4058    <BuildSuccessful>true</BuildSuccessful> 
  • 2016/27/OttoK/Survivetown/Survivetown/Survivetown/obj/x86/Debug/Survivetown.csproj.FileListAbsolute.txt

    r7756 r7786  
    1111C:\MyTemp\OttoK\Survivetown\Survivetown\Survivetown\bin\x86\Debug\Content\kenttatiedosto.xnb 
    1212C:\MyTemp\OttoK\Survivetown\Survivetown\Survivetown\bin\x86\Debug\Content\kenttav2.xnb 
     13C:\MyTemp\OttoK\Survivetown\Survivetown\Survivetown\bin\x86\Debug\Content\mlgnorsurebornedv2.xnb 
     14C:\MyTemp\OttoK\Survivetown\Survivetown\Survivetown\bin\x86\Debug\Content\jonne.xnb 
  • 2016/27/OttoK/Survivetown/Survivetown/Survivetown/obj/x86/Debug/cachefile-{AF625287-3FBB-4ACD-9F6A-000F734EB560}-targetpath.txt

    r7756 r7786  
    33Content\kenttatiedosto.xnb 
    44Content\kenttav2.xnb 
     5Content\mlgnorsurebornedv2.xnb 
     6Content\jonne.xnb 
  • 2016/27/OttoK/Survivetown/Survivetown/SurvivetownContent/SurvivetownContent.contentproj

    r7756 r7786  
    7373    </Compile> 
    7474  </ItemGroup> 
     75  <ItemGroup> 
     76    <Compile Include="mlgnorsurebornedv2.png"> 
     77      <Name>mlgnorsurebornedv2</Name> 
     78      <Importer>TextureImporter</Importer> 
     79      <Processor>TextureProcessor</Processor> 
     80    </Compile> 
     81  </ItemGroup> 
     82  <ItemGroup> 
     83    <Compile Include="jonne.png"> 
     84      <Name>jonne</Name> 
     85      <Importer>TextureImporter</Importer> 
     86      <Processor>TextureProcessor</Processor> 
     87    </Compile> 
     88  </ItemGroup> 
    7589  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    7690  <!--  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.