Changeset 6179
- Timestamp:
- 2015-06-23 14:48:12 (8 years ago)
- Location:
- 2015/26/FransM/Pixels
- Files:
-
- 14 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/26/FransM/Pixels/Pixels/Pixels/Pixels.cs
r6167 r6179 10 10 { 11 11 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 13 19 14 20 public override void Begin() 15 21 { 16 17 LisaaPelaaja();18 22 LuoKentta(); 23 19 24 20 25 … … 28 33 ColorTileMap ruudut = ColorTileMap.FromLevelAsset("Maa"); 29 34 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); 34 39 35 40 ruudut.Execute(20, 40); 36 41 } 37 42 38 void LisaaPelaaja() 39 { 40 PhysicsObject Pixeli = new PhysicsObject(100, 100); 41 Pixeli.Shape = Shape.Rectangle; 42 Add(Pixeli); 43 } 43 44 44 45 45 void LuoTaso(Vector paikka, double leveys, double korkeus) … … 47 47 PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 48 48 taso.Position = paikka; 49 49 taso.Image = maapalakuva; 50 50 taso.CollisionIgnoreGroup = 1; 51 51 Add(taso); 52 52 } 53 53 54 54 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 55 64 } -
2015/26/FransM/Pixels/Pixels/Pixels/Pixels.csproj.Debug.cachefile
r6167 r6179 1 1 Content\Taustakuva.xnb 2 2 Content\Maa.xnb 3 Content\NAPPI.xnb 4 Content\TNT.xnb 5 Content\Pora.xnb 6 Content\Maapala.xnb 7 Content\Maapalaruoholla.xnb 8 Content\Kivi.xnb 9 Content\plutonium.xnb -
2015/26/FransM/Pixels/Pixels/Pixels/obj/x86/Debug/ContentPipeline-{23DE9823-17E1-4AFC-BB04-6AA018C329F7}.xml
r6167 r6179 19 19 <Output>C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Maa.xnb</Output> 20 20 <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> 21 84 </Item> 22 85 <BuildSuccessful>true</BuildSuccessful> -
2015/26/FransM/Pixels/Pixels/Pixels/obj/x86/Debug/Pixels.csproj.FileListAbsolute.txt
r6167 r6179 9 9 C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Taustakuva.xnb 10 10 C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Maa.xnb 11 C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\NAPPI.xnb 12 C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\TNT.xnb 13 C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Pora.xnb 14 C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Maapala.xnb 15 C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Maapalaruoholla.xnb 16 C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Kivi.xnb 17 C:\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 1 1 Content\Taustakuva.xnb 2 2 Content\Maa.xnb 3 Content\NAPPI.xnb 4 Content\TNT.xnb 5 Content\Pora.xnb 6 Content\Maapala.xnb 7 Content\Maapalaruoholla.xnb 8 Content\Kivi.xnb 9 Content\plutonium.xnb -
2015/26/FransM/Pixels/Pixels/PixelsContent/PixelsContent.contentproj
r6167 r6179 59 59 </Compile> 60 60 </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> 61 110 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 62 111 <!-- 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.