Changeset 6754
- Timestamp:
- 2015-07-02 14:45:17 (8 years ago)
- Location:
- 2015/27/LukaP
- Files:
-
- 15 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/LukanPeli.cs
r6732 r6754 9 9 public class LukanPeli : PhysicsGame 10 10 { 11 const double nopeus = 200; 11 12 const double nopeus = 250; 12 13 const double hyppyNopeus = 850; 13 14 const int RUUDUN_KOKO = 40; … … 19 20 Image Vihunkuva = LoadImage("Vihu"); 20 21 Image Maalinkuva = LoadImage("Maali"); 22 Image taustaKuva = LoadImage("Background 3"); 23 24 25 21 26 22 27 … … 24 29 IntMeter pistelaskuri; 25 30 int kenttaNro = 1; 31 26 32 27 33 … … 37 43 public override void Begin() 38 44 { 39 40 41 SeuraavaKentta();45 46 47 LuoAlkuValikko(); 42 48 43 49 } … … 51 57 kentta.SetTileMethod('1', LisaaKolo); 52 58 kentta.SetTileMethod('V', LisaaVihu); 53 kentta.SetTileMethod('M', LisaaMaali);59 kentta.SetTileMethod('M', LisaaMaali); 54 60 IsFullScreen = true; 61 62 55 63 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); 56 Level.Background.CreateGradient(Color.White, Color.SkyBlue); 64 // Level.Background.CreateGradient(Color.White, Color.SkyBlue); 65 Level.Background.Image = taustaKuva; 66 Level.Background.TileToLevel(); 57 67 58 68 } … … 106 116 107 117 a.Destroy(); 118 MessageDisplay.Add("FAIL!"); 119 Timer.SingleShot(1.0, SeuraavaKentta); 108 120 //ClearControls(); 109 121 }); … … 163 175 { 164 176 pelaaja.Destroy(); 177 MessageDisplay.Add("FAIL!"); 178 Timer.SingleShot(1.0, SeuraavaKentta); 165 179 } 166 180 } … … 179 193 180 194 PlatformWandererBrain tasoAivot = new PlatformWandererBrain(); 181 tasoAivot.Speed = 50;195 tasoAivot.Speed = 250; 182 196 Vihu.Brain = tasoAivot; 183 197 … … 190 204 191 205 192 193 void Luopistelaskuri() 206 void Luopistelaskuri() 194 207 { 195 208 pistelaskuri = new IntMeter(0); … … 248 261 void LuoAlkuValikko() 249 262 { 250 MultiSelectWindow alkuValikko = new MultiSelectWindow("Pelin alkuvalikko", "Aloita Peli", " ParhaatPisteet", "Lopeta");263 MultiSelectWindow alkuValikko = new MultiSelectWindow("Pelin alkuvalikko", "Aloita Peli", "Lopeta"); 251 264 252 265 Add(alkuValikko); … … 254 267 255 268 alkuValikko.AddItemHandler(0, AloitaPeli); 256 alkuValikko.AddItemHandler(1, ParhaatPisteet); 257 alkuValikko.AddItemHandler(2, Exit); 258 alkuValikko.DefaultCancel = 3; 269 alkuValikko.AddItemHandler(1, Exit); 270 alkuValikko.DefaultCancel = 1; 259 271 alkuValikko.Color = Color.Red; 260 272 … … 264 276 void AloitaPeli() 265 277 { 266 278 SeuraavaKentta(); 267 279 } 268 280 269 void ParhaatPisteet() 281 282 283 284 285 286 287 288 289 void luotausta() 270 290 { 271 291 Level.Background.Image = taustaKuva; 272 292 } 273 public class Peli : Game 274 { 275 EasyHighScore topLista = new EasyHighScore(); 276 277 278 279 293 294 295 296 297 298 280 299 } 281 282 } 283 284 285 286 287 288 289 290 291 292 293 300 301 302 303 304 305 306 307 308 309 310 -
2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/LukanPeli.csproj.Debug.cachefile
r6732 r6754 8 8 Content\Maali.xnb 9 9 Content\maaliAani.xnb 10 Content\Background.xnb 11 Content\Background 2.xnb 12 Content\Background 3.xnb 13 Content\kentta4.xnb 14 Content\Piikki.xnb -
2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/obj/x86/Debug/ContentPipeline-{2119C4D2-AF14-42FC-976F-6011121F8356}.xml
r6732 r6754 9 9 <Options>None</Options> 10 10 <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\kentta1.xnb</Output> 11 <Time>2015-07-02T1 1:34:24.210558+03:00</Time>11 <Time>2015-07-02T14:35:56.7179082+03:00</Time> 12 12 </Item> 13 13 <Item> … … 83 83 <Time>2015-06-30T13:58:10.2600977+03:00</Time> 84 84 </Item> 85 <Item> 86 <Source>Background.png</Source> 87 <Name>Background</Name> 88 <Importer>TextureImporter</Importer> 89 <Processor>TextureProcessor</Processor> 90 <Options>None</Options> 91 <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Background.xnb</Output> 92 <Time>2015-07-02T13:00:18.9195556+03:00</Time> 93 </Item> 94 <Item> 95 <Source>Background 2.png</Source> 96 <Name>Background 2</Name> 97 <Importer>TextureImporter</Importer> 98 <Processor>TextureProcessor</Processor> 99 <Options>None</Options> 100 <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Background 2.xnb</Output> 101 <Time>2015-07-02T14:03:39.0056603+03:00</Time> 102 </Item> 103 <Item> 104 <Source>Background 3.jpg</Source> 105 <Name>Background 3</Name> 106 <Importer>TextureImporter</Importer> 107 <Processor>TextureProcessor</Processor> 108 <Options>None</Options> 109 <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Background 3.xnb</Output> 110 <Time>2015-07-02T14:20:58.3970756+03:00</Time> 111 </Item> 112 <Item> 113 <Source>kentta4.txt</Source> 114 <Name>kentta4</Name> 115 <Importer>TextFileImporter</Importer> 116 <Processor>TextFileContentProcessor</Processor> 117 <Options>None</Options> 118 <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\kentta4.xnb</Output> 119 <Time>2015-07-02T14:35:56.6857088+03:00</Time> 120 </Item> 121 <Item> 122 <Source>Piikki.png</Source> 123 <Name>Piikki</Name> 124 <Importer>TextureImporter</Importer> 125 <Processor>TextureProcessor</Processor> 126 <Options>None</Options> 127 <Output>C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Piikki.xnb</Output> 128 <Time>2015-07-02T14:34:33.9672778+03:00</Time> 129 </Item> 85 130 <BuildSuccessful>true</BuildSuccessful> 86 131 <Settings> -
2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/obj/x86/Debug/LukanPeli.csproj.FileListAbsolute.txt
r6732 r6754 16 16 C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Maali.xnb 17 17 C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\maaliAani.xnb 18 C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Background.xnb 19 C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Background 2.xnb 20 C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Background 3.xnb 21 C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\kentta4.xnb 22 C:\MyTemp\LukaP\LukanPeli\LukanPeli\LukanPeli\bin\x86\Debug\Content\Piikki.xnb -
2015/27/LukaP/LukanPeli/LukanPeli/LukanPeli/obj/x86/Debug/cachefile-{2119C4D2-AF14-42FC-976F-6011121F8356}-targetpath.txt
r6732 r6754 8 8 Content\Maali.xnb 9 9 Content\maaliAani.xnb 10 Content\Background.xnb 11 Content\Background 2.xnb 12 Content\Background 3.xnb 13 Content\kentta4.xnb 14 Content\Piikki.xnb -
2015/27/LukaP/LukanPeli/LukanPeli/LukanPeliContent/LukanPeliContent.contentproj
r6732 r6754 104 104 </Compile> 105 105 </ItemGroup> 106 <ItemGroup> 107 <Compile Include="Background.png"> 108 <Name>Background</Name> 109 <Importer>TextureImporter</Importer> 110 <Processor>TextureProcessor</Processor> 111 </Compile> 112 </ItemGroup> 113 <ItemGroup> 114 <Compile Include="Background 2.png"> 115 <Name>Background 2</Name> 116 <Importer>TextureImporter</Importer> 117 <Processor>TextureProcessor</Processor> 118 </Compile> 119 </ItemGroup> 120 <ItemGroup> 121 <Compile Include="Background 3.jpg"> 122 <Name>Background 3</Name> 123 <Importer>TextureImporter</Importer> 124 <Processor>TextureProcessor</Processor> 125 </Compile> 126 </ItemGroup> 127 <ItemGroup> 128 <Compile Include="kentta4.txt"> 129 <Name>kentta4</Name> 130 <Importer>TextFileImporter</Importer> 131 <Processor>TextFileContentProcessor</Processor> 132 </Compile> 133 </ItemGroup> 134 <ItemGroup> 135 <Compile Include="Piikki.png"> 136 <Name>Piikki</Name> 137 <Importer>TextureImporter</Importer> 138 <Processor>TextureProcessor</Processor> 139 </Compile> 140 </ItemGroup> 106 141 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 107 142 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
2015/27/LukaP/LukanPeli/LukanPeli/LukanPeliContent/kentta1.txt
r6732 r6754 6 6 .............................................................................................................................................................................. 7 7 ....................................................................................................................................................................................... 8 ............................................................................................................................V................................................................. .....V.........M.......9 .................... ...............*.V..*......*....*.........*.....V.....................................*..................V..............................................................###################.........................10 ..................#.#..#..#...#....#....#....#.....#......#.....#....#...:...#.....V ........#................................V..................#....#.....#....#.....#...#....#....##########################8 ............................................................................................................................V.................................................................VVV..V.........M....... 9 ....................V.....V........*.V..*......*....*.........*.....V.....................................*..................V..............................................................###################......................... 10 ..................#.#..#..#...#....#....#....#.....#......#.....#....#...:...#.....VVV......#................................V..................#....#.....#....#.....#...#....#....########################## 11 11 ..............#...#....#......#....#....#....#.....#.......................#......######..........#..............*.......*...V.........#....#............................................................. 12 ..N.. .....*V........................11111111111111111111111111111111...................................#....#....#...#...#...#....#.........................................12 ..N..P.....*V........................11111111111111111111111111111111...................................#....#....#...#...#...#....#......................................... 13 13 #############.................................... 14 14 #############11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
Note: See TracChangeset
for help on using the changeset viewer.