- Timestamp:
- 2011-06-29 14:56:07 (12 years ago)
- Location:
- 2011/26/JuhoK/SFN
- Files:
-
- 50 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/26/JuhoK/SFN/SFN/SFN/Peli.cs
r2284 r2316 12 12 { 13 13 List<Auto> autot = new List<Auto>(); 14 List<Image> kuvat = new List<Image>(); 14 15 int ID = 0, max_taso = 20; 15 16 double raha = 5000; 16 17 17 18 Image MenuBackround = LoadImage("MenuBackround"); 19 Image kuva = LoadImage("Blues\\Perus1"); 18 20 Label number, malli, moottori, renkaat, moottorin_hinta, renkaiden_hinta, sell_price, rahat; 21 string ChangeColor; 19 22 20 23 public override void Begin() 21 24 { 25 26 for (int i = 0; i < 4; i += 1) 27 { 28 kuvat.Add(LoadImage("Blues\\Car" + (i + 1))); 29 kuvat.Add(LoadImage("Greens\\Car" + (i + 1))); 30 kuvat.Add(LoadImage("Reds\\Car" + (i + 1))); 31 kuvat.Add(LoadImage("Whites\\Car" + (i + 1))); 32 kuvat.Add(LoadImage("Yellows\\Car" + (i + 1))); 33 } 34 22 35 autot.Add(new Auto("Model1", 1, 4, 5)); 23 36 autot.Add(new Auto("Model3", 3, 9, 1)); … … 160 173 renkaiden_hinta.Position = new Vector(oikeareuna.X, Screen.Top * 0.4); 161 174 Add(renkaiden_hinta); 175 176 //Ostaminen 177 178 PushButton vihrea = new PushButton(""); 179 vihrea.Color = Color.Green; 180 vihrea.Size = new Vector(50, 50); 181 vihrea.Position = new Vector(Screen.Right * 0.9, Screen.Bottom * 0.9); 182 Add(vihrea); 183 184 PushButton sininen = new PushButton(""); 185 sininen.Color = Color.Blue; 186 sininen.Size = new Vector(50, 50); 187 sininen.Position = new Vector(Screen.Right * 0.8, Screen.Bottom * 0.9); 188 Add(sininen); 189 190 PushButton punainen = new PushButton(""); 191 punainen.Color = Color.Red; 192 punainen.Size = new Vector(50, 50); 193 punainen.Position = new Vector(Screen.Right * 0.9, Screen.Bottom * 0.78); 194 Add(punainen); 195 196 PushButton keltainen = new PushButton(""); 197 keltainen.Color = Color.Yellow; 198 keltainen.Size = new Vector(50, 50); 199 keltainen.Position = new Vector(Screen.Right * 0.8, Screen.Bottom * 0.78); 200 Add(keltainen); 201 202 PushButton valkoinen = new PushButton("White"); 203 valkoinen.Clicked += new Action(ChangeCarColor); 204 valkoinen.Color = Color.White; 205 valkoinen.BorderColor = Color.Black; 206 valkoinen.Size = new Vector(118, 50); 207 valkoinen.Position = new Vector(Screen.Right * 0.85, Screen.Bottom * 0.66); 208 Add(valkoinen); 162 209 210 } 211 212 void ChangeCarColor() 213 { 214 163 215 } 164 216 -
2011/26/JuhoK/SFN/SFN/SFN/SFN.csproj.Debug.cachefile
r2198 r2316 1 1 Content\MenuBackround2.xnb 2 2 Content\MenuBackround.xnb 3 Content\Blues\Car1.xnb 4 Content\Blues\Car2.xnb 5 Content\Blues\Car3.xnb 6 Content\Blues\Car4.xnb 7 Content\Greens\Car1.xnb 8 Content\Greens\Car2.xnb 9 Content\Greens\Car3.xnb 10 Content\Greens\Car4.xnb 11 Content\Reds\Car1.xnb 12 Content\Reds\Car2.xnb 13 Content\Reds\Car3.xnb 14 Content\Reds\Car4.xnb 15 Content\Whites\Car1.xnb 16 Content\Whites\Car2.xnb 17 Content\Whites\Car3.xnb 18 Content\Whites\Car4.xnb 19 Content\Yellows\Car1.xnb 20 Content\Yellows\Car2.xnb 21 Content\Yellows\Car3.xnb 22 Content\Yellows\Car4.xnb -
2011/26/JuhoK/SFN/SFN/SFN/obj/x86/Debug/SFN.csproj.FileListAbsolute.txt
r2249 r2316 28 28 J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\obj\x86\Debug\SFN.exe 29 29 J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\obj\x86\Debug\SFN.pdb 30 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car1.xnb 31 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car2.xnb 32 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car3.xnb 33 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car4.xnb 34 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car1.xnb 35 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car2.xnb 36 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car3.xnb 37 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car4.xnb 38 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car1.xnb 39 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car2.xnb 40 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car3.xnb 41 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car4.xnb 42 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car1.xnb 43 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car2.xnb 44 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car3.xnb 45 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car4.xnb 46 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car1.xnb 47 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car2.xnb 48 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car3.xnb 49 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car4.xnb -
2011/26/JuhoK/SFN/SFN/SFN/obj/x86/Debug/cachefile-{D9F6E8F1-4CCD-4B4B-AF15-FED124B4F786}-targetpath.txt
r2198 r2316 1 1 Content\MenuBackround2.xnb 2 2 Content\MenuBackround.xnb 3 Content\Blues\Car1.xnb 4 Content\Blues\Car2.xnb 5 Content\Blues\Car3.xnb 6 Content\Blues\Car4.xnb 7 Content\Greens\Car1.xnb 8 Content\Greens\Car2.xnb 9 Content\Greens\Car3.xnb 10 Content\Greens\Car4.xnb 11 Content\Reds\Car1.xnb 12 Content\Reds\Car2.xnb 13 Content\Reds\Car3.xnb 14 Content\Reds\Car4.xnb 15 Content\Whites\Car1.xnb 16 Content\Whites\Car2.xnb 17 Content\Whites\Car3.xnb 18 Content\Whites\Car4.xnb 19 Content\Yellows\Car1.xnb 20 Content\Yellows\Car2.xnb 21 Content\Yellows\Car3.xnb 22 Content\Yellows\Car4.xnb -
2011/26/JuhoK/SFN/SFN/SFNContent/SFNContent.contentproj
r2198 r2316 56 56 </Compile> 57 57 </ItemGroup> 58 <ItemGroup> 59 <Compile Include="Blues\Perus1.png"> 60 <Name>Car1</Name> 61 <Importer>TextureImporter</Importer> 62 <Processor>TextureProcessor</Processor> 63 </Compile> 64 <Compile Include="Blues\Perus2.png"> 65 <Name>Car2</Name> 66 <Importer>TextureImporter</Importer> 67 <Processor>TextureProcessor</Processor> 68 </Compile> 69 <Compile Include="Blues\Sporttinen1.png"> 70 <Name>Car3</Name> 71 <Importer>TextureImporter</Importer> 72 <Processor>TextureProcessor</Processor> 73 </Compile> 74 <Compile Include="Blues\Sporttinen2.png"> 75 <Name>Car4</Name> 76 <Importer>TextureImporter</Importer> 77 <Processor>TextureProcessor</Processor> 78 </Compile> 79 <Compile Include="Greens\Perus1.png"> 80 <Name>Car1</Name> 81 <Importer>TextureImporter</Importer> 82 <Processor>TextureProcessor</Processor> 83 </Compile> 84 <Compile Include="Greens\Perus2.png"> 85 <Name>Car2</Name> 86 <Importer>TextureImporter</Importer> 87 <Processor>TextureProcessor</Processor> 88 </Compile> 89 <Compile Include="Greens\Sporttinen1.png"> 90 <Name>Car3</Name> 91 <Importer>TextureImporter</Importer> 92 <Processor>TextureProcessor</Processor> 93 </Compile> 94 <Compile Include="Greens\Sporttinen2.png"> 95 <Name>Car4</Name> 96 <Importer>TextureImporter</Importer> 97 <Processor>TextureProcessor</Processor> 98 </Compile> 99 <Compile Include="Reds\Perus1.png"> 100 <Name>Car1</Name> 101 <Importer>TextureImporter</Importer> 102 <Processor>TextureProcessor</Processor> 103 </Compile> 104 <Compile Include="Reds\Perus2.png"> 105 <Name>Car2</Name> 106 <Importer>TextureImporter</Importer> 107 <Processor>TextureProcessor</Processor> 108 </Compile> 109 <Compile Include="Reds\Sporttinen1.png"> 110 <Name>Car3</Name> 111 <Importer>TextureImporter</Importer> 112 <Processor>TextureProcessor</Processor> 113 </Compile> 114 <Compile Include="Reds\Sporttinen2.png"> 115 <Name>Car4</Name> 116 <Importer>TextureImporter</Importer> 117 <Processor>TextureProcessor</Processor> 118 </Compile> 119 <Compile Include="Whites\Perus1.png"> 120 <Name>Car1</Name> 121 <Importer>TextureImporter</Importer> 122 <Processor>TextureProcessor</Processor> 123 </Compile> 124 <Compile Include="Whites\Perus2.png"> 125 <Name>Car2</Name> 126 <Importer>TextureImporter</Importer> 127 <Processor>TextureProcessor</Processor> 128 </Compile> 129 <Compile Include="Whites\Sporttinen1.png"> 130 <Name>Car3</Name> 131 <Importer>TextureImporter</Importer> 132 <Processor>TextureProcessor</Processor> 133 </Compile> 134 <Compile Include="Whites\Sporttinen2.png"> 135 <Name>Car4</Name> 136 <Importer>TextureImporter</Importer> 137 <Processor>TextureProcessor</Processor> 138 </Compile> 139 <Compile Include="Yellows\Perus1.png"> 140 <Name>Car1</Name> 141 <Importer>TextureImporter</Importer> 142 <Processor>TextureProcessor</Processor> 143 </Compile> 144 <Compile Include="Yellows\Perus2.png"> 145 <Name>Car2</Name> 146 <Importer>TextureImporter</Importer> 147 <Processor>TextureProcessor</Processor> 148 </Compile> 149 <Compile Include="Yellows\Sporttinen1.png"> 150 <Name>Car3</Name> 151 <Importer>TextureImporter</Importer> 152 <Processor>TextureProcessor</Processor> 153 </Compile> 154 <Compile Include="Yellows\Sporttinen2.png"> 155 <Name>Car4</Name> 156 <Importer>TextureImporter</Importer> 157 <Processor>TextureProcessor</Processor> 158 </Compile> 159 </ItemGroup> 58 160 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 59 161 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2011/26/JuhoK/SFN/SFN/SFNContent/obj/x86/Debug/ContentPipeline.xml
r2262 r2316 19 19 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround.xnb</Output> 20 20 <Time>2011-06-28T10:27:54.1975092+03:00</Time> 21 </Item> 22 <Item> 23 <Source>Blues\Perus1.png</Source> 24 <Name>Blues\Car1</Name> 25 <Importer>TextureImporter</Importer> 26 <Processor>TextureProcessor</Processor> 27 <Options>None</Options> 28 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car1.xnb</Output> 29 <Time>2011-06-29T14:27:36.0294742+03:00</Time> 30 </Item> 31 <Item> 32 <Source>Blues\Perus2.png</Source> 33 <Name>Blues\Car2</Name> 34 <Importer>TextureImporter</Importer> 35 <Processor>TextureProcessor</Processor> 36 <Options>None</Options> 37 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car2.xnb</Output> 38 <Time>2011-06-29T14:27:36.0294742+03:00</Time> 39 </Item> 40 <Item> 41 <Source>Blues\Sporttinen1.png</Source> 42 <Name>Blues\Car3</Name> 43 <Importer>TextureImporter</Importer> 44 <Processor>TextureProcessor</Processor> 45 <Options>None</Options> 46 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car3.xnb</Output> 47 <Time>2011-06-29T14:27:36.0294742+03:00</Time> 48 </Item> 49 <Item> 50 <Source>Blues\Sporttinen2.png</Source> 51 <Name>Blues\Car4</Name> 52 <Importer>TextureImporter</Importer> 53 <Processor>TextureProcessor</Processor> 54 <Options>None</Options> 55 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car4.xnb</Output> 56 <Time>2011-06-29T14:27:36.0450992+03:00</Time> 57 </Item> 58 <Item> 59 <Source>Greens\Perus1.png</Source> 60 <Name>Greens\Car1</Name> 61 <Importer>TextureImporter</Importer> 62 <Processor>TextureProcessor</Processor> 63 <Options>None</Options> 64 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car1.xnb</Output> 65 <Time>2011-06-29T14:27:36.1388492+03:00</Time> 66 </Item> 67 <Item> 68 <Source>Greens\Perus2.png</Source> 69 <Name>Greens\Car2</Name> 70 <Importer>TextureImporter</Importer> 71 <Processor>TextureProcessor</Processor> 72 <Options>None</Options> 73 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car2.xnb</Output> 74 <Time>2011-06-29T14:27:36.1388492+03:00</Time> 75 </Item> 76 <Item> 77 <Source>Greens\Sporttinen1.png</Source> 78 <Name>Greens\Car3</Name> 79 <Importer>TextureImporter</Importer> 80 <Processor>TextureProcessor</Processor> 81 <Options>None</Options> 82 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car3.xnb</Output> 83 <Time>2011-06-29T14:27:36.1544742+03:00</Time> 84 </Item> 85 <Item> 86 <Source>Greens\Sporttinen2.png</Source> 87 <Name>Greens\Car4</Name> 88 <Importer>TextureImporter</Importer> 89 <Processor>TextureProcessor</Processor> 90 <Options>None</Options> 91 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car4.xnb</Output> 92 <Time>2011-06-29T14:27:36.1544742+03:00</Time> 93 </Item> 94 <Item> 95 <Source>Reds\Perus1.png</Source> 96 <Name>Reds\Car1</Name> 97 <Importer>TextureImporter</Importer> 98 <Processor>TextureProcessor</Processor> 99 <Options>None</Options> 100 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car1.xnb</Output> 101 <Time>2011-06-29T14:27:36.1857242+03:00</Time> 102 </Item> 103 <Item> 104 <Source>Reds\Perus2.png</Source> 105 <Name>Reds\Car2</Name> 106 <Importer>TextureImporter</Importer> 107 <Processor>TextureProcessor</Processor> 108 <Options>None</Options> 109 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car2.xnb</Output> 110 <Time>2011-06-29T14:27:36.1857242+03:00</Time> 111 </Item> 112 <Item> 113 <Source>Reds\Sporttinen1.png</Source> 114 <Name>Reds\Car3</Name> 115 <Importer>TextureImporter</Importer> 116 <Processor>TextureProcessor</Processor> 117 <Options>None</Options> 118 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car3.xnb</Output> 119 <Time>2011-06-29T14:27:36.1857242+03:00</Time> 120 </Item> 121 <Item> 122 <Source>Reds\Sporttinen2.png</Source> 123 <Name>Reds\Car4</Name> 124 <Importer>TextureImporter</Importer> 125 <Processor>TextureProcessor</Processor> 126 <Options>None</Options> 127 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car4.xnb</Output> 128 <Time>2011-06-29T14:27:36.1857242+03:00</Time> 129 </Item> 130 <Item> 131 <Source>Whites\Perus1.png</Source> 132 <Name>Whites\Car1</Name> 133 <Importer>TextureImporter</Importer> 134 <Processor>TextureProcessor</Processor> 135 <Options>None</Options> 136 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car1.xnb</Output> 137 <Time>2011-06-29T14:27:36.2169742+03:00</Time> 138 </Item> 139 <Item> 140 <Source>Whites\Perus2.png</Source> 141 <Name>Whites\Car2</Name> 142 <Importer>TextureImporter</Importer> 143 <Processor>TextureProcessor</Processor> 144 <Options>None</Options> 145 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car2.xnb</Output> 146 <Time>2011-06-29T14:27:36.2169742+03:00</Time> 147 </Item> 148 <Item> 149 <Source>Whites\Sporttinen1.png</Source> 150 <Name>Whites\Car3</Name> 151 <Importer>TextureImporter</Importer> 152 <Processor>TextureProcessor</Processor> 153 <Options>None</Options> 154 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car3.xnb</Output> 155 <Time>2011-06-29T14:27:36.2169742+03:00</Time> 156 </Item> 157 <Item> 158 <Source>Whites\Sporttinen2.png</Source> 159 <Name>Whites\Car4</Name> 160 <Importer>TextureImporter</Importer> 161 <Processor>TextureProcessor</Processor> 162 <Options>None</Options> 163 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car4.xnb</Output> 164 <Time>2011-06-29T14:27:36.2169742+03:00</Time> 165 </Item> 166 <Item> 167 <Source>Yellows\Perus1.png</Source> 168 <Name>Yellows\Car1</Name> 169 <Importer>TextureImporter</Importer> 170 <Processor>TextureProcessor</Processor> 171 <Options>None</Options> 172 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car1.xnb</Output> 173 <Time>2011-06-29T14:27:36.2482242+03:00</Time> 174 </Item> 175 <Item> 176 <Source>Yellows\Perus2.png</Source> 177 <Name>Yellows\Car2</Name> 178 <Importer>TextureImporter</Importer> 179 <Processor>TextureProcessor</Processor> 180 <Options>None</Options> 181 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car2.xnb</Output> 182 <Time>2011-06-29T14:27:36.2482242+03:00</Time> 183 </Item> 184 <Item> 185 <Source>Yellows\Sporttinen1.png</Source> 186 <Name>Yellows\Car3</Name> 187 <Importer>TextureImporter</Importer> 188 <Processor>TextureProcessor</Processor> 189 <Options>None</Options> 190 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car3.xnb</Output> 191 <Time>2011-06-29T14:27:36.2482242+03:00</Time> 192 </Item> 193 <Item> 194 <Source>Yellows\Sporttinen2.png</Source> 195 <Name>Yellows\Car4</Name> 196 <Importer>TextureImporter</Importer> 197 <Processor>TextureProcessor</Processor> 198 <Options>None</Options> 199 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car4.xnb</Output> 200 <Time>2011-06-29T14:27:36.2638492+03:00</Time> 21 201 </Item> 22 202 <BuildSuccessful>true</BuildSuccessful>
Note: See TracChangeset
for help on using the changeset viewer.