Changeset 8734 for 2017/24/EllaT


Ignore:
Timestamp:
2017-06-15 14:58:46 (2 years ago)
Author:
nupeohje
Message:
 
Location:
2017/24/EllaT
Files:
23 added
2 deleted
19 edited

Legend:

Unmodified
Added
Removed
  • 2017/24/EllaT/The Dinosaur/The Dinosaur/The DinosaurContent/The DinosaurContent.contentproj

    r8671 r8734  
    4646  </ItemGroup> 
    4747  <ItemGroup> 
     48    <Compile Include="kivi.jpg"> 
     49      <Name>kivi</Name> 
     50      <Importer>TextureImporter</Importer> 
     51      <Processor>TextureProcessor</Processor> 
     52    </Compile> 
     53  </ItemGroup> 
     54  <ItemGroup> 
     55    <Compile Include="se ilkee possuli.jpg"> 
     56      <Name>se ilkee possuli</Name> 
     57      <Importer>TextureImporter</Importer> 
     58      <Processor>TextureProcessor</Processor> 
     59    </Compile> 
    4860    <Compile Include="DINOOOOOOO.png"> 
    4961      <Name>DINOOOOOOO</Name> 
    5062      <Importer>TextureImporter</Importer> 
    5163      <Processor>TextureProcessor</Processor> 
    52       <CopyToOutputDirectory>Always</CopyToOutputDirectory> 
    5364    </Compile> 
    54   </ItemGroup> 
    55   <ItemGroup> 
    56     <Compile Include="se ilkee possuli.png"> 
    57       <Name>se ilkee possuli</Name> 
     65    <Content Include="taso1.txt"> 
     66      <Name>taso1</Name> 
     67      <Importer>TextFileImporter</Importer> 
     68    </Content> 
     69    <Compile Include="Timantti.png"> 
     70      <Name>Timantti</Name> 
    5871      <Importer>TextureImporter</Importer> 
    5972      <Processor>TextureProcessor</Processor> 
  • 2017/24/EllaT/The Dinosaur/The Dinosaur/The_Dinosaur/The_Dinosaur.cs

    r8683 r8734  
    1313    PlatformCharacter dino; 
    1414    Image dinokuva = LoadImage("DINOOOOOOO"); 
     15 
     16    PhysicsObject sika; 
    1517    Image possukuva = LoadImage("se ilkee possuli"); 
     18 
     19    PhysicsObject palikka; 
     20    Image kivikuva = LoadImage("kivi"); 
     21 
     22    PhysicsObject timantti; 
     23    Image timu = LoadImage("Timantti"); 
     24 
     25 
    1626    public override void Begin() 
    1727    { 
    1828        // Moiiiiii 
     29     
    1930 
    2031        dino = new PlatformCharacter(215.0, 200.0); 
    2132        dino.Image = dinokuva; 
    2233        Add(dino); 
    23         dino.X = -500.0; 
     34        dino.X = -750.0; 
    2435        dino.Y = 0.0; 
    2536 
    26         PhysicsObject sika = new PhysicsObject(150.0, 150.0); 
    27         sika.Image = possukuva; 
    28         Add(sika); 
    29         sika.X = 200.0; 
    30         sika.Y = -150.0; 
    31         sika.Oscillate(new Vector(1.0, 0.0), 500.0, 0.15); 
     37         
    3238 
    3339        Level.Background.Color = Color.SkyBlue; 
    3440 
    35         PhysicsObject palikka = new PhysicsObject(700.0, 200.0); 
     41        PhysicsObject palikka = new PhysicsObject(100.0, 100.0); 
     42        palikka.Image = kivikuva; 
    3643        palikka.MakeStatic(); 
    3744        Add(palikka); 
     
    3946 
    4047 
     48        PhysicsObject sika = new PhysicsObject(150.0, 150.0); 
     49        sika.Image = possukuva; 
     50        sika.MakeStatic(); 
     51        Add(sika); 
     52        sika.Oscillate(new Vector(1.0, 0.0), 500.0, 0.15); 
    4153 
    42         Gravity = new Vector(0.0, -400.0); 
     54        PhysicsObject timantti = PhysicsObject.CreateStaticObject(30.0, 25.0); 
     55        timantti.Image = timu; 
     56        Add(timantti); 
     57 
     58 
     59 
     60        Gravity = new Vector(0.0, -600.0); 
    4361 
    4462 
     
    5977    void Hyppaa() 
    6078    { 
    61         dino.ForceJump(175.0); 
     79        dino.ForceJump(1000.0); 
    6280 
    6381    } 
     
    7492 
    7593    } 
     94 
     95    void LuoKentta() 
     96    { 
     97        TileMap ruudut = TileMap.FromLevelAsset("taso1"); 
     98        ruudut.SetTileMethod('#', LuoPalikka); 
     99        ruudut.SetTileMethod('p', LuoSika); 
     100        ruudut.SetTileMethod('d', LuoTimantti); 
     101    } 
     102 
     103    void LuoPalikka(Vector paikka, double leveys, double korkeus) 
     104    { 
     105        PhysicsObject palikka = PhysicsObject.CreateStaticObject(100, 100); 
     106        palikka.Position = paikka; 
     107        palikka.Shape = Shape.Rectangle; 
     108        Add(palikka); 
     109 
     110    } 
     111 
     112    void LuoSika(Vector paikka, double leveys, double korkeus) 
     113    { 
     114        PhysicsObject sika = PhysicsObject.CreateStaticObject(150.0, 150.0); 
     115        sika.Position = paikka; 
     116        Add(sika); 
     117    } 
     118 
     119    void LuoTimantti(Vector paikka, double leveys, double korkeus) 
     120    { 
     121        PhysicsObject timantti = PhysicsObject.CreateStaticObject(30.0, 25.0); 
     122        timantti.Position = paikka; 
     123        Add(timantti); 
     124 
     125    } 
    76126} 
    77127 
  • 2017/24/EllaT/The Dinosaur/The Dinosaur/The_Dinosaur/The_Dinosaur.csproj

    r8671 r8734  
    112112  <ItemGroup> 
    113113    <Compile Include="Ohjelma.cs" /> 
    114     <Compile Include="The_Dinosaur.cs" /> 
    115114    <Compile Include="Properties\AssemblyInfo.cs" /> 
     115    <Compile Include="The_Dinosauriu.cs" /> 
    116116  </ItemGroup> 
    117117  <ItemGroup> 
  • 2017/24/EllaT/The Dinosaur/The Dinosaur/The_Dinosaur/The_Dinosaur.csproj.Debug.cachefile

    r8671 r8734  
    11Content\DINOOOOOOO.xnb 
     2Content\kivi.xnb 
     3Content\Timantti.xnb 
    24Content\se ilkee possuli.xnb 
    3 Content\DINOOOOOOO.png 
  • 2017/24/EllaT/The Dinosaur/The Dinosaur/The_Dinosaur/obj/x86/Debug/ContentPipeline-{EAFFB680-83BD-447F-868C-DA316CC3F253}.xml

    r8671 r8734  
    99      <Options>None</Options> 
    1010      <Output>C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\DINOOOOOOO.xnb</Output> 
    11       <Time>2017-06-14T11:11:04+03:00</Time> 
     11      <Time>2017-06-15T14:30:54.1902801+03:00</Time> 
    1212    </Item> 
    1313    <Item> 
    14       <Source>se ilkee possuli.png</Source> 
     14      <Source>kivi.jpg</Source> 
     15      <Name>kivi</Name> 
     16      <Importer>TextureImporter</Importer> 
     17      <Processor>TextureProcessor</Processor> 
     18      <Options>None</Options> 
     19      <Output>C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\kivi.xnb</Output> 
     20      <Time>2017-06-15T10:07:03.6089808+03:00</Time> 
     21    </Item> 
     22    <Item> 
     23      <Source>Timantti.png</Source> 
     24      <Name>Timantti</Name> 
     25      <Importer>TextureImporter</Importer> 
     26      <Processor>TextureProcessor</Processor> 
     27      <Options>None</Options> 
     28      <Output>C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\Timantti.xnb</Output> 
     29      <Time>2017-06-15T13:20:19.4343683+03:00</Time> 
     30    </Item> 
     31    <Item> 
     32      <Source>se ilkee possuli.jpg</Source> 
    1533      <Name>se ilkee possuli</Name> 
    1634      <Importer>TextureImporter</Importer> 
     
    1836      <Options>None</Options> 
    1937      <Output>C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\se ilkee possuli.xnb</Output> 
    20       <Time>2017-06-14T12:53:14.0327305+03:00</Time> 
     38      <Time>2017-06-15T14:30:49.7660836+03:00</Time> 
    2139    </Item> 
    2240    <BuildSuccessful>true</BuildSuccessful> 
  • 2017/24/EllaT/The Dinosaur/The Dinosaur/The_Dinosaur/obj/x86/Debug/The_Dinosaur.csproj.FileListAbsolute.txt

    r8671 r8734  
    1717C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\DINOOOOOOO.xnb 
    1818C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\se ilkee possuli.xnb 
    19 C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\DINOOOOOOO.png 
     19C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\kivi.xnb 
     20C:\MyTemp\EllaT\The Dinosaur\The Dinosaur\The_Dinosaur\bin\x86\Debug\Content\Timantti.xnb 
  • 2017/24/EllaT/The Dinosaur/The Dinosaur/The_Dinosaur/obj/x86/Debug/cachefile-{EAFFB680-83BD-447F-868C-DA316CC3F253}-targetpath.txt

    r8671 r8734  
    11Content\DINOOOOOOO.xnb 
     2Content\kivi.xnb 
     3Content\Timantti.xnb 
    24Content\se ilkee possuli.xnb 
    3 Content\DINOOOOOOO.png 
Note: See TracChangeset for help on using the changeset viewer.