- Timestamp:
- 2017-06-13 14:17:15 (6 years ago)
- Location:
- 2017/24/EmiliaM
- Files:
-
- 11 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/24/EmiliaM/Testi_Little_miner.cs
r8527 r8591 9 9 public class Testi_Little_miner : PhysicsGame 10 10 { 11 12 PhysicsObject hakku; 13 11 14 private double liikkumisnopeus = 300; 12 15 PhysicsObject pelaaja; … … 14 17 { 15 18 LuoKentta(); 19 LuoHakku(pelaaja.X, pelaaja.Y + -50.0); 16 20 17 21 Keyboard.Listen(Key.Left, ButtonState.Down, Liikuta, null, pelaaja, new Vector(-liikkumisnopeus, 0)); … … 26 30 PhoneBackButton.Listen(ConfirmExit, "Lopeta peli"); 27 31 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Lopeta peli"); 32 } 33 34 void LuoHakku(double x, double y) 35 { 36 hakku = new PhysicsObject(50.0, 50.0); 37 hakku.X = x; 38 hakku.Y = y; 39 hakku.Shape = Shape.Rectangle; 40 hakku.Color = Color.OrangeRed; 41 hakku.Tag = "hakku"; 42 hakku.Restitution = 0.0; 43 Add(hakku); 44 45 AxleJoint liitos = new AxleJoint(hakku, pelaaja); 46 Add(liitos); 28 47 } 29 48 … … 63 82 pelaaja.Color = Color.Cyan; 64 83 Camera.Follow(pelaaja); 84 pelaaja.Restitution = 0.0; 65 85 Add(pelaaja); 66 86 } … … 72 92 palikka.Shape = Shape.Rectangle; 73 93 palikka.Color = Color.Black; 94 palikka.Restitution = 0.0; 74 95 Add(palikka); 75 96 } … … 81 102 palikka.Shape = Shape.Rectangle; 82 103 palikka.Color = Color.Brown; 104 palikka.Restitution = 0.0; 83 105 Add(palikka); 84 106 } … … 90 112 palikka.Shape = Shape.Rectangle; 91 113 palikka.Color = Color.Gray; 114 palikka.Restitution = 0.0; 92 115 Add(palikka); 93 116 } … … 98 121 palikka.Shape = Shape.Rectangle; 99 122 palikka.Color = Color.LightGray; 123 palikka.Restitution = 0.0; 100 124 Add(palikka); 101 125 } … … 107 131 palikka.Shape = Shape.Rectangle; 108 132 palikka.Color = Color.Red; 133 palikka.Restitution = 0.0; 109 134 Add(palikka); 110 135 } … … 116 141 palikka.Shape = Shape.Rectangle; 117 142 palikka.Color = Color.Green; 143 palikka.Restitution = 0.0; 118 144 Add(palikka); 119 145 } … … 125 151 palikka.Shape = Shape.Rectangle; 126 152 palikka.Color = Color.DarkJungleGreen; 153 palikka.Restitution = 0.0; 127 154 Add(palikka); 128 155 } … … 134 161 palikka.Shape = Shape.Rectangle; 135 162 palikka.Color = Color.JungleGreen; 163 palikka.Restitution = 0.0; 136 164 Add(palikka); 137 165 } … … 143 171 palikka.Shape = Shape.Rectangle; 144 172 palikka.Color = Color.Blue; 173 palikka.Restitution = 0.0; 145 174 Add(palikka); 146 175 } … … 152 181 palikka.Shape = Shape.Rectangle; 153 182 palikka.Color = Color.BlueGray; 183 palikka.Restitution = 0.0; 154 184 Add(palikka); 155 185 } … … 161 191 palikka.Shape = Shape.Rectangle; 162 192 palikka.Color = Color.BloodRed; 193 palikka.Restitution = 0.0; 163 194 Add(palikka); 164 195 } … … 170 201 palikka.Shape = Shape.Rectangle; 171 202 palikka.Color = Color.DarkBrown; 203 palikka.Restitution = 0.0; 172 204 Add(palikka); 173 205 } -
2017/24/EmiliaM/Testi_Little_miner/Testi_Little_miner/Testi_Little_miner/Testi_Little_miner.csproj
r8527 r8591 111 111 </ItemGroup> 112 112 <ItemGroup> 113 <Compile Include="..\..\..\Little_miner1.cs" /> 113 114 <Compile Include="Ohjelma.cs" /> 114 <Compile Include="..\..\..\Testi_Little_miner.cs">115 <Link>Testi_Little_miner.cs</Link>116 </Compile>117 115 <Compile Include="Properties\AssemblyInfo.cs" /> 118 116 </ItemGroup> -
2017/24/EmiliaM/Testi_Little_miner/Testi_Little_miner/Testi_Little_miner/Testi_Little_miner.csproj.Debug.cachefile
r8527 r8591 1 1 Content\miner_maa1.xnb 2 Content\miner.xnb 3 Content\kseina.xnb 2 4 Content\miner_maa1.txt -
2017/24/EmiliaM/Testi_Little_miner/Testi_Little_miner/Testi_Little_miner/obj/x86/Debug/ContentPipeline-{531F0758-D3DE-40CC-AEB4-21A3761C9D84}.xml
r8527 r8591 9 9 <Options>None</Options> 10 10 <Output>C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\bin\x86\Debug\Content\miner_maa1.xnb</Output> 11 <Time>2017-06-12T14:38:11.5492589+03:00</Time> 11 <Time>2017-06-13T09:47:26.0545819+03:00</Time> 12 </Item> 13 <Item> 14 <Source>miner.png</Source> 15 <Name>miner</Name> 16 <Importer>TextureImporter</Importer> 17 <Processor>TextureProcessor</Processor> 18 <Options>None</Options> 19 <Output>C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\bin\x86\Debug\Content\miner.xnb</Output> 20 <Time>2017-06-13T13:12:42.0044171+03:00</Time> 21 </Item> 22 <Item> 23 <Source>kseina.png</Source> 24 <Name>kseina</Name> 25 <Importer>TextureImporter</Importer> 26 <Processor>TextureProcessor</Processor> 27 <Options>None</Options> 28 <Output>C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\bin\x86\Debug\Content\kseina.xnb</Output> 29 <Time>2017-06-13T13:20:11.4015242+03:00</Time> 12 30 </Item> 13 31 <BuildSuccessful>true</BuildSuccessful> … … 58 76 <Assembly> 59 77 <Key>C:\WINDOWS\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 60 <Value>2017-06- 07T09:40:29.8063325+03:00</Value>78 <Value>2017-06-10T12:35:11.9829674+03:00</Value> 61 79 </Assembly> 62 80 </Assemblies> -
2017/24/EmiliaM/Testi_Little_miner/Testi_Little_miner/Testi_Little_miner/obj/x86/Debug/Testi_Little_miner.csproj.FileListAbsolute.txt
r8527 r8591 8 8 C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\obj\x86\Debug\Testi_Little_miner.pdb 9 9 C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\bin\x86\Debug\Content\miner_maa1.txt 10 C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\obj\x86\Debug\Testi_Little_miner.csprojResolveAssemblyReference.cache 11 C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\bin\x86\Debug\Content\miner.xnb 12 C:\MyTemp\EmiliaM\Testi_Little_miner\Testi_Little_miner\Testi_Little_miner\bin\x86\Debug\Content\kseina.xnb -
2017/24/EmiliaM/Testi_Little_miner/Testi_Little_miner/Testi_Little_miner/obj/x86/Debug/cachefile-{531F0758-D3DE-40CC-AEB4-21A3761C9D84}-targetpath.txt
r8527 r8591 1 1 Content\miner_maa1.xnb 2 Content\miner.xnb 3 Content\kseina.xnb 2 4 Content\miner_maa1.txt -
2017/24/EmiliaM/Testi_Little_miner/Testi_Little_miner/Testi_Little_minerContent/Testi_Little_minerContent.contentproj
r8527 r8591 53 53 </Compile> 54 54 </ItemGroup> 55 <ItemGroup> 56 <Compile Include="miner.png"> 57 <Name>miner</Name> 58 <Importer>TextureImporter</Importer> 59 <Processor>TextureProcessor</Processor> 60 </Compile> 61 </ItemGroup> 62 <ItemGroup> 63 <Compile Include="kseina.png"> 64 <Name>kseina</Name> 65 <Importer>TextureImporter</Importer> 66 <Processor>TextureProcessor</Processor> 67 </Compile> 68 </ItemGroup> 55 69 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 56 70 <!-- 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.