- Timestamp:
- 2015-06-24 12:02:19 (7 years ago)
- Location:
- 2015/26/FransM/Pixels
- Files:
-
- 7 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/26/FransM/Pixels/Pixels/Pixels/Pixels.cs
r6179 r6238 16 16 Image nappikuva = LoadImage("NAPPI"); 17 17 Image porakuva = LoadImage("Pora"); 18 18 Image kivi2kuva = LoadImage("Kivi2"); 19 Image seinakuva = LoadImage("seinä"); 20 Image alinkuva = LoadImage("Alin"); 21 Image ruohokuva = LoadImage("Maapalaruoholla"); 19 22 20 23 public override void Begin() 21 24 { 22 25 LuoKentta(); 26 27 SmoothTextures = false; 23 28 24 29 … … 34 39 35 40 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); 41 ruudut.SetTileMethod(Color.FromHexCode("808080"), LuoTaso2); 42 ruudut.SetTileMethod(Color.FromHexCode("000000"), LuoTaso3); 43 ruudut.SetTileMethod(Color.FromHexCode("FFD800"), LuoTaso4); 44 ruudut.SetTileMethod(Color.FromHexCode("0026FF"), LuoTaso5); 45 ruudut.SetTileMethod(Color.FromHexCode("00FF21"), LuoTaso6); 39 46 40 ruudut.Execute(20, 40); 47 48 ruudut.Execute(60, 60); 49 50 //Camera.ZoomToLevel(); 51 IsMouseVisible = true; 52 Camera.StayInLevel = true; 53 Mouse.ListenMovement(0.0, delegate(AnalogState h) { 54 if (Mouse.PositionOnScreen.Y > Screen.Top - 100) 55 { 56 Camera.Move(new Vector(0, 10)); 57 } 58 else if (Mouse.PositionOnScreen.Y < Screen.Bottom + 100) 59 { 60 Camera.Move(new Vector(0, -10)); 61 } 62 }, ""); 63 IsFullScreen = true; 41 64 } 42 43 65 44 66 … … 62 84 } 63 85 86 void LuoTaso3(Vector paikka, double leveys, double korkeus) 87 { 88 PhysicsObject taso3 = PhysicsObject.CreateStaticObject(leveys, korkeus); 89 taso3.Position = paikka; 90 taso3.Image = kivi2kuva; 91 taso3.CollisionIgnoreGroup = 1; 92 Add(taso3); 93 } 94 95 void LuoTaso4(Vector paikka, double leveys, double korkeus) 96 { 97 PhysicsObject taso4 = PhysicsObject.CreateStaticObject(leveys, korkeus); 98 taso4.Position = paikka; 99 taso4.Image = seinakuva; 100 taso4.CollisionIgnoreGroup = 1; 101 Add(taso4); 102 } 103 104 void LuoTaso5(Vector paikka, double leveys, double korkeus) 105 { 106 PhysicsObject taso5 = PhysicsObject.CreateStaticObject(leveys, korkeus); 107 taso5.Position = paikka; 108 taso5.Image = alinkuva; 109 taso5.CollisionIgnoreGroup = 1; 110 Add(taso5); 111 } 112 113 void LuoTaso6(Vector paikka, double leveys, double korkeus) 114 { 115 PhysicsObject taso6 = PhysicsObject.CreateStaticObject(leveys, korkeus); 116 taso6.Position = paikka; 117 taso6.Image = ruohokuva; 118 taso6.CollisionIgnoreGroup = 1; 119 Add(taso6); 120 } 64 121 } -
2015/26/FransM/Pixels/Pixels/Pixels/Pixels.csproj.Debug.cachefile
r6179 r6238 8 8 Content\Kivi.xnb 9 9 Content\plutonium.xnb 10 Content\Kivi2.xnb 11 Content\seinÀ.xnb 12 Content\Alin.xnb -
2015/26/FransM/Pixels/Pixels/Pixels/obj/x86/Debug/ContentPipeline-{23DE9823-17E1-4AFC-BB04-6AA018C329F7}.xml
r6179 r6238 18 18 <Options>None</Options> 19 19 <Output>C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Maa.xnb</Output> 20 <Time>2015-06-2 3T11:01:40.1484957+03:00</Time>20 <Time>2015-06-24T11:35:35.9293975+03:00</Time> 21 21 </Item> 22 22 <Item> … … 83 83 <Time>2015-06-23T13:57:34.7267499+03:00</Time> 84 84 </Item> 85 <Item> 86 <Source>Kivi2.png</Source> 87 <Name>Kivi2</Name> 88 <Importer>TextureImporter</Importer> 89 <Processor>TextureProcessor</Processor> 90 <Options>None</Options> 91 <Output>C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Kivi2.xnb</Output> 92 <Time>2015-06-24T09:46:21.8758968+03:00</Time> 93 </Item> 94 <Item> 95 <Source>seinä.png</Source> 96 <Name>seinä</Name> 97 <Importer>TextureImporter</Importer> 98 <Processor>TextureProcessor</Processor> 99 <Options>None</Options> 100 <Output>C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\seinä.xnb</Output> 101 <Time>2015-06-24T10:25:33.4979975+03:00</Time> 102 </Item> 103 <Item> 104 <Source>Alin.png</Source> 105 <Name>Alin</Name> 106 <Importer>TextureImporter</Importer> 107 <Processor>TextureProcessor</Processor> 108 <Options>None</Options> 109 <Output>C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Alin.xnb</Output> 110 <Time>2015-06-24T11:59:56.4430975+03:00</Time> 111 </Item> 85 112 <BuildSuccessful>true</BuildSuccessful> 86 113 <Settings> -
2015/26/FransM/Pixels/Pixels/Pixels/obj/x86/Debug/Pixels.csproj.FileListAbsolute.txt
r6179 r6238 16 16 C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Kivi.xnb 17 17 C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\plutonium.xnb 18 C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Kivi2.xnb 19 C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\seinÀ.xnb 20 C:\MyTemp\FransM\Pixels\Pixels\Pixels\bin\x86\Debug\Content\Alin.xnb -
2015/26/FransM/Pixels/Pixels/Pixels/obj/x86/Debug/cachefile-{23DE9823-17E1-4AFC-BB04-6AA018C329F7}-targetpath.txt
r6179 r6238 8 8 Content\Kivi.xnb 9 9 Content\plutonium.xnb 10 Content\Kivi2.xnb 11 Content\seinÀ.xnb 12 Content\Alin.xnb -
2015/26/FransM/Pixels/Pixels/PixelsContent/PixelsContent.contentproj
r6179 r6238 108 108 </Compile> 109 109 </ItemGroup> 110 <ItemGroup> 111 <Compile Include="Kivi2.png"> 112 <Name>Kivi2</Name> 113 <Importer>TextureImporter</Importer> 114 <Processor>TextureProcessor</Processor> 115 </Compile> 116 </ItemGroup> 117 <ItemGroup> 118 <Compile Include="seinä.png"> 119 <Name>seinä</Name> 120 <Importer>TextureImporter</Importer> 121 <Processor>TextureProcessor</Processor> 122 </Compile> 123 </ItemGroup> 124 <ItemGroup> 125 <Compile Include="Alin.png"> 126 <Name>Alin</Name> 127 <Importer>TextureImporter</Importer> 128 <Processor>TextureProcessor</Processor> 129 </Compile> 130 </ItemGroup> 110 131 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 111 132 <!-- 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.