Changeset 6179


Ignore:
Timestamp:
2015-06-23 14:48:12 (4 years ago)
Author:
sieerinn
Message:
 
Location:
2015/26/FransM/Pixels
Files:
14 added
11 edited

Legend:

Unmodified
Added
Removed
  • 2015/26/FransM/Pixels/Pixels/Pixels/Pixels.cs

    r6167 r6179  
    1010{ 
    1111    Image taustakuva = LoadImage("Taustakuva"); 
    12     Image tasokuva = LoadImage("Maa"); 
     12    Image tasoKuva = LoadImage("Maa"); 
     13    Image maapalakuva = LoadImage("Maapala"); 
     14    Image maaruohokuva = LoadImage("Maapalaruoholla"); 
     15    Image kivikuva = LoadImage("Kivi"); 
     16    Image nappikuva = LoadImage("NAPPI"); 
     17    Image porakuva = LoadImage("Pora"); 
     18   
    1319 
    1420    public override void Begin() 
    1521    { 
    16  
    17         LisaaPelaaja(); 
    1822        LuoKentta(); 
     23       
    1924 
    2025 
     
    2833        ColorTileMap ruudut = ColorTileMap.FromLevelAsset("Maa"); 
    2934 
    30         ruudut.SetTileMethod(Color.Red, LuoTaso); 
    31         ruudut.SetTileMethod(Color.Gray, LuoTaso); 
    32         ruudut.SetTileMethod(Color.Black, LuoTaso); 
    33         ruudut.SetTileMethod(Color.Blue, LuoTaso); 
     35        ruudut.SetTileMethod(Color.FromHexCode("FF0000"), LuoTaso); 
     36        ruudut.SetTileMethod(Color.FromHexCode("948081"), LuoTaso2); 
     37        //ruudut.SetTileMethod(Color.Black, LuoTaso); 
     38        //ruudut.SetTileMethod(Color.Blue, LuoTaso); 
    3439 
    3540        ruudut.Execute(20, 40); 
    3641    } 
    3742 
    38     void LisaaPelaaja() 
    39     { 
    40     PhysicsObject Pixeli = new PhysicsObject(100, 100); 
    41     Pixeli.Shape = Shape.Rectangle; 
    42     Add(Pixeli); 
    43     } 
     43 
    4444 
    4545    void LuoTaso(Vector paikka, double leveys, double korkeus) 
     
    4747        PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 
    4848        taso.Position = paikka; 
    49       
     49        taso.Image = maapalakuva; 
    5050        taso.CollisionIgnoreGroup = 1; 
    51  
     51        Add(taso); 
    5252    } 
    5353 
    5454 
     55    void LuoTaso2(Vector paikka, double leveys, double korkeus) 
     56    { 
     57        PhysicsObject taso2 = PhysicsObject.CreateStaticObject(leveys, korkeus); 
     58        taso2.Position = paikka; 
     59        taso2.Image = kivikuva; 
     60        taso2.CollisionIgnoreGroup = 1; 
     61        Add(taso2); 
     62    } 
     63 
    5564} 
  • 2015/26/FransM/Pixels/Pixels/Pixels/Pixels.csproj.Debug.cachefile

    r6167 r6179  
    11Content\Taustakuva.xnb 
    22Content\Maa.xnb 
     3Content\NAPPI.xnb 
     4Content\TNT.xnb 
     5Content\Pora.xnb 
     6Content\Maapala.xnb 
     7Content\Maapalaruoholla.xnb 
     8Content\Kivi.xnb 
     9Content\plutonium.xnb 
  • 2015/26/FransM/Pixels/Pixels/Pixels/obj/x86/Debug/ContentPipeline-{23DE9823-17E1-4AFC-BB04-6AA018C329F7}.xml

    r6167 r6179  
    1919      <Output>C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Maa.xnb</Output> 
    2020      <Time>2015-06-23T11:01:40.1484957+03:00</Time> 
     21    </Item> 
     22    <Item> 
     23      <Source>NAPPI.png</Source> 
     24      <Name>NAPPI</Name> 
     25      <Importer>TextureImporter</Importer> 
     26      <Processor>TextureProcessor</Processor> 
     27      <Options>None</Options> 
     28      <Output>C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\NAPPI.xnb</Output> 
     29      <Time>2015-06-23T13:15:26.6625854+03:00</Time> 
     30    </Item> 
     31    <Item> 
     32      <Source>TNT.png</Source> 
     33      <Name>TNT</Name> 
     34      <Importer>TextureImporter</Importer> 
     35      <Processor>TextureProcessor</Processor> 
     36      <Options>None</Options> 
     37      <Output>C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\TNT.xnb</Output> 
     38      <Time>2015-06-23T12:37:17.1763957+03:00</Time> 
     39    </Item> 
     40    <Item> 
     41      <Source>Pora.png</Source> 
     42      <Name>Pora</Name> 
     43      <Importer>TextureImporter</Importer> 
     44      <Processor>TextureProcessor</Processor> 
     45      <Options>None</Options> 
     46      <Output>C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Pora.xnb</Output> 
     47      <Time>2015-06-23T13:11:04.3580853+03:00</Time> 
     48    </Item> 
     49    <Item> 
     50      <Source>Maapala.png</Source> 
     51      <Name>Maapala</Name> 
     52      <Importer>TextureImporter</Importer> 
     53      <Processor>TextureProcessor</Processor> 
     54      <Options>None</Options> 
     55      <Output>C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Maapala.xnb</Output> 
     56      <Time>2015-06-23T13:23:09.7539314+03:00</Time> 
     57    </Item> 
     58    <Item> 
     59      <Source>Maapalaruoholla.png</Source> 
     60      <Name>Maapalaruoholla</Name> 
     61      <Importer>TextureImporter</Importer> 
     62      <Processor>TextureProcessor</Processor> 
     63      <Options>None</Options> 
     64      <Output>C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Maapalaruoholla.xnb</Output> 
     65      <Time>2015-06-23T13:24:16.9006723+03:00</Time> 
     66    </Item> 
     67    <Item> 
     68      <Source>Kivi.png</Source> 
     69      <Name>Kivi</Name> 
     70      <Importer>TextureImporter</Importer> 
     71      <Processor>TextureProcessor</Processor> 
     72      <Options>None</Options> 
     73      <Output>C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Kivi.xnb</Output> 
     74      <Time>2015-06-23T13:41:05.0241499+03:00</Time> 
     75    </Item> 
     76    <Item> 
     77      <Source>plutonium.png</Source> 
     78      <Name>plutonium</Name> 
     79      <Importer>TextureImporter</Importer> 
     80      <Processor>TextureProcessor</Processor> 
     81      <Options>None</Options> 
     82      <Output>C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\plutonium.xnb</Output> 
     83      <Time>2015-06-23T13:57:34.7267499+03:00</Time> 
    2184    </Item> 
    2285    <BuildSuccessful>true</BuildSuccessful> 
  • 2015/26/FransM/Pixels/Pixels/Pixels/obj/x86/Debug/Pixels.csproj.FileListAbsolute.txt

    r6167 r6179  
    99C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Taustakuva.xnb 
    1010C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Maa.xnb 
     11C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\NAPPI.xnb 
     12C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\TNT.xnb 
     13C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Pora.xnb 
     14C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Maapala.xnb 
     15C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Maapalaruoholla.xnb 
     16C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Kivi.xnb 
     17C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\plutonium.xnb 
  • 2015/26/FransM/Pixels/Pixels/Pixels/obj/x86/Debug/cachefile-{23DE9823-17E1-4AFC-BB04-6AA018C329F7}-targetpath.txt

    r6167 r6179  
    11Content\Taustakuva.xnb 
    22Content\Maa.xnb 
     3Content\NAPPI.xnb 
     4Content\TNT.xnb 
     5Content\Pora.xnb 
     6Content\Maapala.xnb 
     7Content\Maapalaruoholla.xnb 
     8Content\Kivi.xnb 
     9Content\plutonium.xnb 
  • 2015/26/FransM/Pixels/Pixels/PixelsContent/PixelsContent.contentproj

    r6167 r6179  
    5959    </Compile> 
    6060  </ItemGroup> 
     61  <ItemGroup> 
     62    <Compile Include="NAPPI.png"> 
     63      <Name>NAPPI</Name> 
     64      <Importer>TextureImporter</Importer> 
     65      <Processor>TextureProcessor</Processor> 
     66    </Compile> 
     67  </ItemGroup> 
     68  <ItemGroup> 
     69    <Compile Include="TNT.png"> 
     70      <Name>TNT</Name> 
     71      <Importer>TextureImporter</Importer> 
     72      <Processor>TextureProcessor</Processor> 
     73    </Compile> 
     74  </ItemGroup> 
     75  <ItemGroup> 
     76    <Compile Include="Pora.png"> 
     77      <Name>Pora</Name> 
     78      <Importer>TextureImporter</Importer> 
     79      <Processor>TextureProcessor</Processor> 
     80    </Compile> 
     81  </ItemGroup> 
     82  <ItemGroup> 
     83    <Compile Include="Maapala.png"> 
     84      <Name>Maapala</Name> 
     85      <Importer>TextureImporter</Importer> 
     86      <Processor>TextureProcessor</Processor> 
     87    </Compile> 
     88  </ItemGroup> 
     89  <ItemGroup> 
     90    <Compile Include="Maapalaruoholla.png"> 
     91      <Name>Maapalaruoholla</Name> 
     92      <Importer>TextureImporter</Importer> 
     93      <Processor>TextureProcessor</Processor> 
     94    </Compile> 
     95  </ItemGroup> 
     96  <ItemGroup> 
     97    <Compile Include="Kivi.png"> 
     98      <Name>Kivi</Name> 
     99      <Importer>TextureImporter</Importer> 
     100      <Processor>TextureProcessor</Processor> 
     101    </Compile> 
     102  </ItemGroup> 
     103  <ItemGroup> 
     104    <Compile Include="plutonium.png"> 
     105      <Name>plutonium</Name> 
     106      <Importer>TextureImporter</Importer> 
     107      <Processor>TextureProcessor</Processor> 
     108    </Compile> 
     109  </ItemGroup> 
    61110  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    62111  <!--  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.