- Timestamp:
- 2011-07-01 12:39:14 (11 years ago)
- Location:
- 2011/26/LinusV
- Files:
-
- 5 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/26/LinusV/SFN/SFN-säätöä/SFN-säätöä/SFN-säätöä/Map.txt
r2376 r2426 1 BBBBBBCCCCCCCCC 2 ==============AA 3 AAAAAAAAAA===A 4 cccccccccA===B 5 =========B===A 6 ==========ABC -
2011/26/LinusV/SFN/SFN-säätöä/SFN-säätöä/SFN-säätöä/Peli.cs
r2376 r2426 136 136 137 137 //Kartan lataus 138 /*TileMap World = TileMap.FromFile("Map.txt");138 TileMap World = TileMap.FromFile("Map.txt"); 139 139 World.SetTileMethod('A', taloA); 140 140 World.SetTileMethod('B', taloB); 141 141 World.SetTileMethod('C', taloC); 142 World.Execute(150,150); */142 World.Execute(150,150); 143 143 144 144 AddCollisionHandler(kaara, KasitteleKaaranTormays); -
2011/26/LinusV/SFN_New/SFN/SFN/SFN/Peli.cs
r2386 r2426 6 6 using Jypeli.Effects; 7 7 using Jypeli.Widgets; 8 using System.Globalization;9 10 namespace SFN 8 using Physics2DDotNet.Ignorers; 9 10 public class Peli : TopDownPhysicsGame 11 11 { 12 public class Peli : TopDownPhysicsGame 13 { 14 [Save] List<Auto> autot = new List<Auto>(); 15 List<Image> autokuvat = new List<Image>(); 16 List<int> hinnat = new List<int>(); 17 String[] mallit = new String[4]; 18 Label[] kauppakuvat = new Label[4]; 19 Label number, malli, moottori, renkaat, moottorin_hinta, renkaiden_hinta, sell_price, rahat, keskiauto; 20 Image MenuBackround, Arrow; 21 [Save] int ID = 0; 22 int max_taso = 5; 23 [Save] double raha = 50000; 24 int ChangeColor; 25 26 Automobile kaara; 27 /*int engine = 1; 28 int tires = 1;*/ 29 Vector goal = new Vector(0, 0); 30 GameObject nuoli; 31 PhysicsObject[] kisat; 32 Automobile[] siviilit; 33 Vector[] kohteet; 34 int siviilimaara; 35 Timer kisa_aika; 36 37 string pelitallennus = ""; 38 39 public override void Begin() 40 { 41 //Set cursos visible 42 Mouse.IsCursorVisible = true; 43 //Load images, set variables and more... 44 PrepareGame(); 45 //Create main menu 46 CreateMenu(); 47 48 //Create a car 49 autot.Add(new Auto(mallit[3], 3, 1, 4, 5)); 50 51 } 52 53 protected override void Update(Time time) 54 { 55 if (keskiauto != null) 56 { 57 keskiauto.Angle = keskiauto.Angle - Angle.FromDegrees(0.5); 58 } 59 if (nuoli != null) 60 { 61 nuoli.Position = kaara.Position; 62 nuoli.Angle = (goal - kaara.Position).Angle; 63 } 64 if (goal != Vector.Zero && (goal - kaara.Position).Magnitude < 100) 65 { 66 goal = new Vector(0, 0); 67 LuoKisat(); 68 nuoli.IsVisible = false; 69 raha += (1000 / kisa_aika.CurrentTime); 70 MessageDisplay.Add("Money:" + raha); 71 } 72 } 73 74 void PrepareGame() 75 { 76 //Load resources 77 LoadResources(); 78 79 //Set cars price 80 hinnat.Add(5000); //Car 0 Price 81 hinnat.Add(5200); //Car 1 Price 82 hinnat.Add(20000); //Car 2 Price 83 hinnat.Add(21000); //Car 3 Price 84 85 //Set model names 86 mallit[0] = "Model0"; //Car 0 Price 87 mallit[1] = "Model1"; //Car 1 Price 88 mallit[2] = "Model2"; //Car 2 Price 89 mallit[3] = "Model3"; //Car 3 Price 90 91 kisa_aika = new Timer(); 92 MessageDisplay.TextColor = Color.Yellow; 93 Gravity = 200; 94 KineticFriction = 10; 95 goal = Vector.Zero; 96 } 97 98 void LoadResources() 99 { 100 //Load menu backround 101 MenuBackround = LoadImage("MenuBackround"); 102 103 //Load arrow 104 Arrow = LoadImage("Arrow"); 105 106 //Load car images in loop 107 for (int i = 0; i < 4; i += 1) 108 { 109 autokuvat.Add(LoadImage("Whites\\Car" + (i + 1))); 110 autokuvat.Add(LoadImage("Blues\\Car" + (i + 1))); 111 autokuvat.Add(LoadImage("Greens\\Car" + (i + 1))); 112 autokuvat.Add(LoadImage("Reds\\Car" + (i + 1))); 113 autokuvat.Add(LoadImage("Yellows\\Car" + (i + 1))); 114 } 115 } 116 117 void CreateMenu() 118 { 119 //Set menu backround 120 Level.Background.Image = MenuBackround; 121 122 //Quit game button 123 PushButton quit_game = new PushButton("Quit game"); 124 quit_game.Clicked += new Action(quit_game_Clicked); 125 quit_game.Position = new Vector(380.0, -50.0); 126 Add(quit_game); 127 128 //Load game button 129 PushButton load_game = new PushButton("Load game"); 130 load_game.Clicked += new Action(load_game_Clicked); 131 load_game.Position = new Vector(200.0, -50.0); 132 Add(load_game); 133 134 //New game button 135 PushButton new_game = new PushButton("New game"); 136 new_game.Clicked += new Action(new_game_Clicked); 137 new_game.Position = new Vector(20.0, -50.0); 138 Add(new_game); 139 } 140 141 void new_game_Clicked() 142 { 143 ClearAll(); 144 Keyboard.Listen(Key.Space, ButtonState.Released, GoToShop, null); 145 //Sekalaista säätöä 146 Level.Background.Image = null; 147 Level.BackgroundColor = Color.LightGray; 148 Camera.ZoomFactor = 0.4; 149 150 //Keyboard.Listen(Key.Escape, ButtonState.Released, Exit, null); 151 //Window.AllowUserResizing = true; 152 153 154 LuoKisat(); 155 156 //Kontrollit 157 Keyboard.Listen(Key.Up, ButtonState.Down, kaasu, null); 158 Keyboard.Listen(Key.Left, ButtonState.Down, rattiV, null); 159 Keyboard.Listen(Key.Right, ButtonState.Down, rattiO, null); 160 Keyboard.Listen(Key.Down, ButtonState.Down, pakki, null); 161 Keyboard.Listen(Key.RightControl, ButtonState.Down, jarru, null); 162 Keyboard.Listen(Key.Tab, ButtonState.Released, rahatShow, null); 163 164 //Auton kanssa säätöä 165 kaara = new Automobile(100, 50); 166 Camera.FollowedObject = kaara; 167 kaara.TopSpeed = autot[ID].moottori * 75; 168 kaara.Acceleration = autot[ID].moottori * 50; 169 kaara.KineticFriction = 0.999; 170 kaara.Maneuverability = Angle.FromDegrees(autot[ID].renkaat * 5); 171 kaara.BrakeDeceleration = autot[ID].renkaat * 200; 172 kaara.Image = autokuvat[(autot[ID].kori * 5) + (autot[ID].vari)]; 173 kaara.X = Level.Left + 150; 174 kaara.MomentOfInertia = 10000; 175 kaara.LinearDamping = 0.9999; 176 kaara.Mass = 10000; 177 kaara.AngularDamping = 0.95; 178 Add(kaara); 179 180 nuoli = new GameObject(30, 30); 181 nuoli.Color = Color.Green; 182 nuoli.Shape = Shape.Triangle; 183 nuoli.Image = Arrow; 184 nuoli.IsVisible = false; 185 Add(nuoli); 186 187 //Turvatalo 188 PhysicsObject Turva = PhysicsObject.CreateStaticObject(50, 50); 189 Turva.Color = Color.Red; 190 Turva.Shape = Shape.Circle; 191 Turva.X = Level.Left + 60; 192 Turva.Tag = "TT"; 193 Add(Turva); 194 195 //Kartan lataus 196 /*TileMap World = TileMap.FromFile("Map.txt"); 197 World.SetTileMethod('A', taloA); 198 World.SetTileMethod('B', taloB); 199 World.SetTileMethod('C', taloC); 200 World.Execute(150,150);*/ 201 202 AddCollisionHandler(kaara, KasitteleKaaranTormays); 203 LuoSiviilit(); 204 } 205 206 void load_game_Clicked() 207 { 208 if (DataStorage.Exists("data\\" + pelitallennus.ToString())) 209 { 210 LoadGame(pelitallennus.ToString()); 211 GoToShop(); 212 } 213 else 214 { 215 ShowMessage("Game not loaded", "Save file does not exist."); 216 } 217 218 } 219 220 void quit_game_Clicked() 221 { 222 Exit(); 223 } 224 225 void GoToShop() 226 { 227 Save(); 228 //Clear all 229 ClearAll(); 230 //Zoom camera to level 231 Camera.ZoomToLevel(); 232 //Set level backround color light gray 233 Level.BackgroundColor = Color.LightGray; 234 235 //Ylapallki 236 Label ylapalkki = new Label(Screen.Width, Screen.Height / 15); 237 ylapalkki.Color = Color.SkyBlue; 238 ylapalkki.Position = new Vector(0, Screen.Top - (ylapalkki.Height / 2)); 239 Add(ylapalkki); 240 241 //Alapalkki 242 Label alapalkki = new Label(Screen.Width, Screen.Height / 4); 243 alapalkki.Color = Color.SkyBlue; 244 alapalkki.Position = new Vector(0, Screen.Bottom + (alapalkki.Height / 2)); 245 Add(alapalkki); 246 247 //Oikea reuna 248 Label oikeareuna = new Label(Screen.Width / 6, Screen.Height); 249 oikeareuna.Color = Color.SkyBlue; 250 oikeareuna.Position = new Vector(Screen.Right - oikeareuna.Width / 2, 0); 251 Add(oikeareuna); 252 253 254 //Next button 255 PushButton nextid = new PushButton("-->"); 256 nextid.Position = new Vector(Screen.Right * 0.9, ylapalkki.Y); //Level.Right + 80, Level.Top + 60 257 nextid.Clicked += new Action(nextid_Clicked); 258 Add(nextid); 259 260 //Previous button 261 PushButton previousid = new PushButton("<--"); 262 previousid.Position = new Vector(Screen.Right * 0.65, ylapalkki.Y); //Level.Right - 80, Level.Top + 60 263 previousid.Clicked += new Action(previousid_Clicked); 264 Add(previousid); 265 266 //Update engine 267 PushButton update_engine = new PushButton("Update engine"); 268 update_engine.Position = new Vector(oikeareuna.X, Screen.Top * 0.75); 269 update_engine.Clicked += new Action(update_engine_Clicked); 270 Add(update_engine); 271 272 //Update tiers 273 PushButton update_tiers = new PushButton("Update tiers"); 274 update_tiers.Position = new Vector(oikeareuna.X, Screen.Top * 0.52); 275 update_tiers.Clicked += new Action(update_tiers_Clicked); 276 Add(update_tiers); 277 278 //Leave safehouse 279 PushButton drive = new PushButton("Leave safehouse"); 280 drive.Position = new Vector(oikeareuna.X, Screen.Bottom * 0.4); 281 drive.Clicked += new Action(drive_Clicked); 282 Add(drive); 283 284 //Sell car 285 PushButton sell = new PushButton("Sell car"); 286 sell.Position = new Vector(oikeareuna.X, Screen.Bottom * 0.2); 287 sell.Clicked += new Action(sell_Clicked); 288 Add(sell); 289 290 //Show selected car number of maximum 291 number = new Label((ID + 1).ToString() + "/" + autot.Count.ToString()); 292 number.Position = new Vector(Screen.Right * 0.78, ylapalkki.Y); 293 Add(number); 294 295 //Show car model 296 malli = new Label(autot[ID].korinnimi.ToString()); 297 malli.Position = new Vector(Screen.Left * 0.9, ylapalkki.Y); 298 Add(malli); 299 300 //Show engine level 301 moottori = new Label("Engine: " + autot[ID].moottori.ToString()); 302 moottori.Position = new Vector(Screen.Left * 0.5, ylapalkki.Y); 303 Add(moottori); 304 305 //Show money 306 string RahaString; 307 if (raha > 9) 308 { 309 RahaString = raha.ToString("0,0", CultureInfo.InvariantCulture); 310 } 311 else 312 { 313 RahaString = raha.ToString(); 314 } 315 rahat = new Label("Money: " + RahaString.ToString()); 316 rahat.Position = new Vector(oikeareuna.X, 0); 317 Add(rahat); 318 319 //Show car sell price 320 double hinta = (hinnat[autot[ID].kori] * 0.75) + ((autot[ID].moottori * 100) / 2) + ((autot[ID].renkaat * 100) / 2); 321 sell_price = new Label("Sell price: " + hinta.ToString("0,0", CultureInfo.InvariantCulture)); 322 sell_price.Position = new Vector(oikeareuna.X, Screen.Bottom * 0.28); 323 Add(sell_price); 324 325 //Show tiers level 326 renkaat = new Label("Tiers: " + autot[ID].renkaat.ToString()); 327 renkaat.Position = new Vector(Screen.Left * 0.05, ylapalkki.Y); 328 Add(renkaat); 329 330 //Show updated engine price 331 moottorin_hinta = new Label("Price: " + (autot[ID].moottori * 100).ToString("0,0", CultureInfo.InvariantCulture)); 332 moottorin_hinta.Position = new Vector(oikeareuna.X, Screen.Top * 0.65); 333 Add(moottorin_hinta); 334 335 //Show updated tiers price 336 renkaiden_hinta = new Label("Price: " + (autot[ID].renkaat * 100).ToString("0,0", CultureInfo.InvariantCulture)); 337 renkaiden_hinta.Position = new Vector(oikeareuna.X, Screen.Top * 0.4); 338 Add(renkaiden_hinta); 339 340 //Change cars color 341 //Green 342 PushButton vihrea = new PushButton(""); 343 vihrea.Color = Color.Green; 344 vihrea.Size = new Vector(50, 50); 345 vihrea.Position = new Vector(Screen.Right * 0.9, Screen.Bottom * 0.9); 346 vihrea.Clicked += new Action(vihrea_Clicked); 347 Add(vihrea); 348 349 //Blue 350 PushButton sininen = new PushButton(""); 351 sininen.Color = Color.Blue; 352 sininen.Size = new Vector(50, 50); 353 sininen.Position = new Vector(Screen.Right * 0.8, Screen.Bottom * 0.9); 354 sininen.Clicked += new Action(sininen_Clicked); 355 Add(sininen); 356 357 //Red 358 PushButton punainen = new PushButton(""); 359 punainen.Color = Color.Red; 360 punainen.Size = new Vector(50, 50); 361 punainen.Position = new Vector(Screen.Right * 0.9, Screen.Bottom * 0.78); 362 punainen.Clicked += new Action(punainen_Clicked); 363 Add(punainen); 364 365 //Yellow 366 PushButton keltainen = new PushButton(""); 367 keltainen.Color = Color.Yellow; 368 keltainen.Size = new Vector(50, 50); 369 keltainen.Position = new Vector(Screen.Right * 0.8, Screen.Bottom * 0.78); 370 keltainen.Clicked += new Action(keltainen_Clicked); 371 Add(keltainen); 372 373 //White 374 PushButton valkoinen = new PushButton("White"); 375 valkoinen.Clicked += new Action(valkoinen_Clicked); 376 valkoinen.Color = Color.White; 377 valkoinen.Size = new Vector(118, 50); 378 valkoinen.Position = new Vector(Screen.Right * 0.85, Screen.Bottom * 0.66); 379 Add(valkoinen); 380 381 382 //Create cars images, prices and buy buttons 383 double kerroin = 0.85; 384 int kuvaindeksilaskuri = 0; 385 for (int i = 0; i < 4; i++) 386 { 387 kauppakuvat[i] = new Label(40, 20); 388 kauppakuvat[i].Image = autokuvat[0 + kuvaindeksilaskuri]; 389 kauppakuvat[i].Position = new Vector(Screen.Left * kerroin, alapalkki.Y + alapalkki.Height * 0.2); 390 Add(kauppakuvat[i]); 391 392 PushButton nappi = new PushButton("Buy"); 393 nappi.Position = new Vector(Screen.Left * kerroin, alapalkki.Y - alapalkki.Height * 0.2); 394 int temp = i; 395 nappi.Clicked += new Action(delegate { BuyCar(temp); }); 396 Add(nappi); 397 398 Label teksti = new Label("Price: " + hinnat[i].ToString("0,0", CultureInfo.InvariantCulture)); 399 teksti.Position = new Vector(Screen.Left * kerroin, alapalkki.Y - alapalkki.Height * 0.05); 400 Add(teksti); 401 402 kuvaindeksilaskuri += 5; 403 kerroin -= 0.3; 404 } 405 406 //Create rotating car in center area 407 keskiauto = new Label(40 * 2, 20 * 2); 408 keskiauto.Image = autokuvat[(autot[ID].kori * 5) + (autot[ID].vari)]; 409 keskiauto.Position = new Vector(0 - oikeareuna.Width / 2, 0 + alapalkki.Height / 2 - ylapalkki.Height / 2); 410 Add(keskiauto); 411 } 412 413 void valkoinen_Clicked() 414 { 415 //White 416 ChangeColor = 0; 417 ChangeCarColor(); 418 } 419 420 void keltainen_Clicked() 421 { 422 //Yellow 423 ChangeColor = 4; 424 ChangeCarColor(); 425 } 426 427 void punainen_Clicked() 428 { 429 //Red 430 ChangeColor = 3; 431 ChangeCarColor(); 432 } 433 434 void sininen_Clicked() 435 { 436 //Blue 437 ChangeColor = 1; 438 ChangeCarColor(); 439 } 440 441 void vihrea_Clicked() 442 { 443 //Green 444 ChangeColor = 2; 445 ChangeCarColor(); 446 } 447 448 void ChangeCarColor() 449 { 450 //Change all cars color 451 kauppakuvat[0].Image = autokuvat[ChangeColor]; 452 kauppakuvat[1].Image = autokuvat[ChangeColor + 5]; 453 kauppakuvat[2].Image = autokuvat[ChangeColor + 10]; 454 kauppakuvat[3].Image = autokuvat[ChangeColor + 15]; 455 } 456 457 void BuyCar(int indeksi) 458 { 459 //Buy car if enought money 460 if (raha >= hinnat[indeksi]) 461 { 462 raha -= hinnat[indeksi]; 463 autot.Add(new Auto(mallit[indeksi], ChangeColor, indeksi, 1, 1)); 464 ID = autot.Count - 1; 465 UpdateHUD(); 466 } 467 else 468 { 469 ShowMessage("Car not bought", "You don't have enough money."); 470 } 471 } 472 473 void ShowMessage(string Title, string Message) 474 { 475 //Show message 476 MessageWindow message = new MessageWindow(Title, Message); 477 Add(message); 478 } 479 480 void UpdateHUD() 481 { 482 //Update game HUD 483 double hinta = (hinnat[autot[ID].kori] * 0.75) + ((autot[ID].moottori * 100) / 2) + ((autot[ID].renkaat * 100) / 2); 484 sell_price.Text = "Sell price: " + hinta.ToString("0,0", CultureInfo.InvariantCulture); 485 malli.Text = autot[ID].korinnimi.ToString(); 486 moottori.Text = "Engine: " + autot[ID].moottori.ToString(); 487 renkaat.Text = "Tiers: " + autot[ID].renkaat.ToString(); 488 number.Text = (ID + 1).ToString() + "/" + autot.Count.ToString(); 489 moottorin_hinta.Text = "Price: " + (autot[ID].moottori * 100).ToString("0,0", CultureInfo.InvariantCulture); 490 renkaiden_hinta.Text = "Price: " + (autot[ID].renkaat * 100).ToString("0,0", CultureInfo.InvariantCulture); 491 keskiauto.Image = autokuvat[(autot[ID].kori * 5) + (autot[ID].vari)]; 492 493 if (raha > 9) 494 { 495 rahat.Text = "Money: " + raha.ToString("0,0", CultureInfo.InvariantCulture); 496 } 497 else 498 { 499 rahat.Text = "Money: " + raha.ToString(); 500 } 501 } 502 503 void previousid_Clicked() 504 { 505 //Previous car ID 506 ID = (--ID + autot.Count) % autot.Count; 507 UpdateHUD(); 508 } 509 510 void nextid_Clicked() 511 { 512 //Next car ID 513 ID = ++ID % autot.Count; 514 UpdateHUD(); 515 } 516 517 void update_tiers_Clicked() 518 { 519 //Calculate tiers price and continue it if enought money 520 int hinta = autot[ID].renkaat * 100; 521 if (raha >= hinta) 522 { 523 //Buy tiers if level is not maximum 524 if (autot[ID].renkaat < max_taso) 525 { 526 raha = raha - hinta; 527 autot[ID].renkaat += 1; 528 } 529 else 530 { 531 ShowMessage("Tiers not upgradet", "Your tiers are at maximum level."); 532 } 533 } 534 else 535 { 536 ShowMessage("Tiers not upgradet", "You don't have enough money."); 537 } 538 UpdateHUD(); 539 } 540 541 void update_engine_Clicked() 542 { 543 //Calculate engine price and continue it if enought money 544 int hinta = autot[ID].moottori * 100; 545 if (raha >= hinta) 546 { 547 //Buy engine if level is not maximum 548 if (autot[ID].moottori < max_taso) 549 { 550 raha = raha - hinta; 551 autot[ID].moottori += 1; 552 } 553 else 554 { 555 ShowMessage("Engine not upgradet", "Your engine is at maximum level."); 556 } 557 } 558 else 559 { 560 ShowMessage("Engine not upgradet", "You don't have enough money."); 561 } 562 UpdateHUD(); 563 } 564 565 void sell_Clicked() 566 { 567 //Sell car if player have more cars 568 if (autot.Count > 1) 569 { 570 double hinta = (hinnat[autot[ID].kori] * 0.75) + ((autot[ID].moottori * 100) / 2) + ((autot[ID].renkaat * 100) / 2); 571 autot.RemoveAt(ID); 572 raha = raha + hinta; 573 ID = ++ID % autot.Count; 574 UpdateHUD(); 575 } 576 else 577 { 578 ShowMessage("Car not sold", "You can't sell your last car."); 579 } 580 } 581 582 void LuoKisat() 583 { 584 kisat = new PhysicsObject[1]; 585 586 kisat[0] = PhysicsObject.CreateStaticObject(50, 50); 587 kisat[0].Shape = Shape.Circle; 588 kisat[0].Color = Color.Blue; 589 kisat[0].X = 0; 590 kisat[0].Y = 200; 591 kisat[0].Tag = "0"; 592 Add(kisat[0]); 593 594 } 595 public void rahatShow() 596 { 597 MessageDisplay.Add("Money:" + raha); 598 } 599 600 public void kaasu() 601 { 602 kaara.Accelerate(Time.SinceLastUpdate.TotalSeconds); 603 } 604 public void rattiV() 605 { 606 if (kaara.Velocity.Magnitude > 1) { kaara.Turn(Angle.FromDegrees(1), Time.SinceLastUpdate.TotalSeconds); } 607 } 608 public void rattiO() 609 { 610 if (kaara.Velocity.Magnitude > 1) { kaara.Turn(Angle.FromDegrees(-1), Time.SinceLastUpdate.TotalSeconds); } 611 } 612 public void jarru() 613 { 614 if (kaara.Velocity.Magnitude > 1) { kaara.Brake(Time.SinceLastUpdate.TotalSeconds); } 615 } 616 public void pakki() 617 { 618 if (kaara.Velocity.Magnitude > 1) { kaara.Brake(Time.SinceLastUpdate.TotalSeconds); } 619 else if (kaara.Velocity.Magnitude < 1) 620 { 621 Vector matti = Vector.FromLengthAndAngle(kaara.Mass * 5000, kaara.Angle + Angle.FromDegrees(180)); 622 kaara.Push(matti); 623 624 } 625 } 626 627 void KasitteleKaaranTormays(PhysicsObject kaara, PhysicsObject kohde) 628 { 629 if (kohde.Tag.ToString() == "TT") 630 { 631 GoToShop(); 632 } 633 if (kohde.Tag.ToString() == "0") 634 { 635 goal = new Vector(1, 1); 636 nuoli.IsVisible = true; 637 nuoli.Angle = goal.Angle + Angle.FromDegrees(180); 638 for (int i = 0; i < kisat.Length; i++) { kisat[i].Destroy(); } 639 kisa_aika.Interval = 2; 640 kisa_aika.Trigger += Loss; 641 kisa_aika.Start(); 642 } 643 } 644 645 void LuoSiviilit() 646 { 647 siviilit = new Automobile[1]; 648 kohteet = new Vector[1]; 649 siviilit[0] = new Automobile(100, 50); 650 siviilit[0].X = -800; 651 siviilit[0].Y = 0; 652 siviilit[0].Angle = Angle.FromDegrees(0); 653 Add(siviilit[0]); 654 siviilit[0].Accelerate(100); 655 AddCollisionHandler(siviilit[0], Siviiliuhri); 656 657 siviilimaara = 1; 658 } 659 660 void Siviiliuhri(PhysicsObject siviili, PhysicsObject kohde) 661 { 662 if (kohde != kaara) 663 { 664 siviilimaara -= 1; 665 siviili.Destroy(); 666 if (siviilimaara == 0) { LuoSiviilit(); } 667 } 668 } 669 670 void Loss(Timer sender) 671 { 672 for (int i = 0; i < kisat.Length; i++) { kisat[i].Destroy(); } 12 Automobile kaara; 13 //int engine = 1; 14 //int tires = 1; 15 PushButton new_game, load_game, quit_game; 16 Vector goal = new Vector(0, 0); 17 Image MenuBackround = LoadImage("MenuBackround"); 18 GameObject nuoli; 19 PhysicsObject[] kisat; 20 Automobile[] siviilit; 21 Vector[] kohteet; 22 int siviilimaara; 23 Timer kisa_aika; 24 double raha = 0; 25 26 public override void Begin() 27 { 28 kisa_aika = new Timer(); 29 MessageDisplay.TextColor = Color.Yellow; 30 Gravity = 200; 31 KineticFriction = 10; 32 Keyboard.Listen(Key.Escape, ButtonState.Released, Exit, null); 33 Mouse.IsCursorVisible = true; 34 CreateMenu(); 35 goal = Vector.Zero; 36 } 37 38 protected override void Update(Time time) 39 { 40 base.Update(time); 41 42 if (nuoli != null) 43 { 44 nuoli.Position = kaara.Position; 45 nuoli.Angle = (goal - kaara.Position).Angle; 46 } 47 if (goal != Vector.Zero && (goal - kaara.Position).Magnitude < 100) 48 { 49 goal = new Vector(0, 0); 673 50 LuoKisat(); 674 51 nuoli.IsVisible = false; 675 sender.Stop(); 676 } 677 678 void drive_Clicked() 679 { 680 Save(); 681 new_game_Clicked(); 682 } 683 684 void Save() 685 { 686 SaveGame(pelitallennus.ToString()); 687 } 52 raha += (1000 / kisa_aika.CurrentTime); 53 MessageDisplay.Add("Money:" + raha); 54 } 55 } 56 57 void CreateMenu() 58 { 59 //Set menu backround 60 Level.Background.Image = MenuBackround; 61 62 //Quit game button 63 64 quit_game = new PushButton("Quit game"); 65 quit_game.Clicked += new Action(quit_game_Clicked); 66 quit_game.Position = new Vector(380.0, -50.0); 67 Add(quit_game); 68 69 //Load game button 70 load_game = new PushButton("Load game"); 71 load_game.Clicked += new Action(load_game_Clicked); 72 load_game.Position = new Vector(200.0, -50.0); 73 Add(load_game); 74 75 //New game button 76 new_game = new PushButton("New game"); 77 new_game.Clicked += new Action(new_game_Clicked); 78 new_game.Position = new Vector(20.0, -50.0); 79 Add(new_game); 80 81 } 82 83 void new_game_Clicked() 84 { 85 //Sekalaista säätöä 86 Level.Background.Image = null; 87 Level.BackgroundColor = Color.LightGray; 88 Camera.ZoomFactor = 0.4; 89 new_game.Destroy(); 90 load_game.Destroy(); 91 quit_game.Destroy(); 92 //Keyboard.Listen(Key.Escape, ButtonState.Released, Exit, null); 93 //Window.AllowUserResizing = true; 94 95 96 LuoKisat(); 97 98 99 //Kontrollit 100 Mouse.IsCursorVisible = true; 101 Keyboard.Listen(Key.Up, ButtonState.Down, kaasu, null); 102 Keyboard.Listen(Key.Left, ButtonState.Down, rattiV, null); 103 Keyboard.Listen(Key.Right, ButtonState.Down, rattiO, null); 104 Keyboard.Listen(Key.Down, ButtonState.Down, pakki, null); 105 Keyboard.Listen(Key.RightControl, ButtonState.Down, jarru, null); 106 Keyboard.Listen(Key.Tab, ButtonState.Released, rahat, null); 107 108 //Auton kanssa säätöä 109 110 kaara = new Automobile(100, 50); 111 Add(kaara); 112 kaara.AngularDamping = 0.999; 113 kaara.BrakeDeceleration = autot * 200; 114 kaara.Maneuverability = Angle.FromDegrees(tires * 5); 115 116 117 /*Camera.FollowedObject = kaara; 118 kaara.TopSpeed = engine * 75; 119 kaara.Acceleration = engine * 50; 120 kaara.KineticFriction = 0.999; 121 //kaara.StaticFriction = tires * 10; 122 kaara.Maneuverability = Angle.FromDegrees(tires * 5); 123 kaara.BrakeDeceleration = tires * 200; 124 kaara.Image = LoadImage("Blues/Car1"); 125 kaara.X = Level.Left + 150; 126 kaara.MomentOfInertia = 10000; 127 kaara.LinearDamping = 0.9999; 128 kaara.Mass = 10000; 129 kaara.AngularDamping = 0.95;*/ 130 131 nuoli = new GameObject(30, 30); 132 nuoli.Color = Color.Green; 133 nuoli.Shape = Shape.Triangle; 134 nuoli.Image = LoadImage("Arrow"); 135 nuoli.IsVisible = false; 136 Add(nuoli); 137 138 //Turvatalo 139 PhysicsObject Turva = PhysicsObject.CreateStaticObject(50, 50); 140 Turva.Color = Color.Red; 141 Turva.Shape = Shape.Circle; 142 Turva.X = Level.Left + 60; 143 Turva.Tag = "TT"; 144 Add(Turva); 145 146 //Kartan lataus 147 /*TileMap World = TileMap.FromFile("Map.txt"); 148 World.SetTileMethod('A', taloA); 149 World.SetTileMethod('B', taloB); 150 World.SetTileMethod('C', taloC); 151 World.Execute(150,150);*/ 152 153 AddCollisionHandler(kaara, KasitteleKaaranTormays); 154 LuoSiviilit(); 155 } 156 157 void KasitteleKaaranTormays(PhysicsObject kaara, PhysicsObject kohde) 158 { 159 if (kohde.Tag.ToString() == "TT") 160 { 161 //GoToShpo(); 162 } 163 if (kohde.Tag.ToString() == "0") 164 { 165 goal = new Vector(1, 1); 166 nuoli.IsVisible = true; 167 nuoli.Angle = goal.Angle + Angle.FromDegrees(180); 168 for (int i = 0; i < kisat.Length; i++) { kisat[i].Destroy(); } 169 kisa_aika.Interval = 2; 170 kisa_aika.Trigger += Loss; 171 kisa_aika.Start(); 172 } 173 } 174 void Siviiliuhri(PhysicsObject siviili, PhysicsObject kohde) 175 { 176 if (kohde != kaara) 177 { 178 siviilimaara -= 1; 179 siviili.Destroy(); 180 if (siviilimaara == 0) { LuoSiviilit(); } 181 } 182 } 183 184 void LuoSiviilit() 185 { 186 siviilit = new Automobile[1]; 187 kohteet = new Vector[1]; 188 siviilit[0] = new Automobile(100, 50); 189 siviilit[0].X = -800; 190 siviilit[0].Y = 0; 191 siviilit[0].Angle = Angle.FromDegrees(0); 192 Add(siviilit[0]); 193 siviilit[0].Accelerate(100); 194 AddCollisionHandler(siviilit[0], Siviiliuhri); 195 196 siviilimaara = 1; 197 } 198 199 void LuoKisat() 200 { 201 kisat = new PhysicsObject[1]; 202 203 kisat[0] = PhysicsObject.CreateStaticObject(50, 50); 204 kisat[0].Shape = Shape.Circle; 205 kisat[0].Color = Color.Blue; 206 kisat[0].X = 0; 207 kisat[0].Y = 200; 208 kisat[0].Tag = "0"; 209 Add(kisat[0]); 210 211 } 212 void Loss(Timer sender) 213 { 214 for (int i = 0; i < kisat.Length; i++) { kisat[i].Destroy(); } 215 LuoKisat(); 216 nuoli.IsVisible = false; 217 sender.Stop(); 218 } 219 220 void load_game_Clicked() 221 { 222 MessageDisplay.Add("Can't load game. Game save system not availible."); 223 } 224 225 void quit_game_Clicked() 226 { 227 228 Exit(); 229 } 230 231 public void rahat() 232 { 233 MessageDisplay.Add("Money:" + raha); 234 } 235 236 public void kaasu() 237 { 238 kaara.Accelerate(Time.SinceLastUpdate.TotalSeconds); 239 } 240 public void rattiV() 241 { 242 if (kaara.Velocity.Magnitude > 1) { kaara.Turn(Angle.FromDegrees(1), Time.SinceLastUpdate.TotalSeconds); } 243 } 244 public void rattiO() 245 { 246 if (kaara.Velocity.Magnitude > 1) { kaara.Turn(Angle.FromDegrees(-1), Time.SinceLastUpdate.TotalSeconds); } 247 } 248 public void jarru() 249 { 250 if (kaara.Velocity.Magnitude > 1) { kaara.Brake(Time.SinceLastUpdate.TotalSeconds); } 251 } 252 public void pakki() 253 { 254 if (kaara.Velocity.Magnitude > 1) { kaara.Brake(Time.SinceLastUpdate.TotalSeconds); } 255 else if (kaara.Velocity.Magnitude < 1) 256 { 257 Vector matti = Vector.FromLengthAndAngle(kaara.Mass * 5000, kaara.Angle + Angle.FromDegrees(180)); 258 kaara.Push(matti); 259 260 } 261 } 262 263 //Talot 264 void taloA(Vector paikka, double leveys, double korkeus) 265 { 266 PhysicsObject talo = PhysicsObject.CreateStaticObject(leveys, korkeus); 267 talo.Position = paikka; 268 talo.Image = LoadImage("Talo1"); 269 Add(talo); 270 } 271 void taloB(Vector paikka, double leveys, double korkeus) 272 { 273 PhysicsObject talo = PhysicsObject.CreateStaticObject(leveys, korkeus); 274 talo.Position = paikka; 275 talo.Image = LoadImage("Talo2"); 276 Add(talo); 277 } 278 void taloC(Vector paikka, double leveys, double korkeus) 279 { 280 PhysicsObject talo = PhysicsObject.CreateStaticObject(leveys, korkeus); 281 talo.Position = paikka; 282 talo.Image = LoadImage("Talo3"); 283 Add(talo); 688 284 } 689 285 } 286 287 -
2011/26/LinusV/SFN_New/SFN/SFN/SFN/SFN.csproj
r2386 r2426 62 62 </PropertyGroup> 63 63 <ItemGroup> 64 <Reference Include="Jypeli4"> 64 <Reference Include="Jypeli4, Version=4.0.6.0, Culture=neutral, processorArchitecture=x86"> 65 <SpecificVersion>False</SpecificVersion> 66 <HintPath>..\..\..\..\ParempiJypeli\Jypeli4.dll</HintPath> 65 67 </Reference> 66 68 <Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86"> -
2011/26/LinusV/SFN_New/SFN/SFN/SFN/obj/x86/Debug/SFN.csproj.FileListAbsolute.txt
r2386 r2426 29 29 C:\Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround.xnb 30 30 C:\Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Arrow.xnb 31 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car1.xnb 32 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car2.xnb 33 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car3.xnb 34 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car4.xnb 35 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car1.xnb 36 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car2.xnb 37 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car3.xnb 38 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car4.xnb 39 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car1.xnb 40 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car2.xnb 41 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car3.xnb 42 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car4.xnb 43 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car1.xnb 44 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car2.xnb 45 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car3.xnb 46 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car4.xnb 47 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car1.xnb 48 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car2.xnb 49 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car3.xnb 50 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car4.xnb 51 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround.xnb 52 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Arrow.xnb 53 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\SFN.exe 54 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\SFN.pdb 55 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Jypeli4.dll 56 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Jypeli4.xml 57 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\obj\x86\Debug\ResolveAssemblyReference.cache 58 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 59 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\obj\x86\Debug\SFN.exe 60 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\obj\x86\Debug\SFN.pdb -
2011/26/LinusV/SFN_New/SFN/SFN/SFNContent/obj/x86/Debug/ContentPipeline.xml
r2386 r2426 8 8 <Processor>TextureProcessor</Processor> 9 9 <Options>None</Options> 10 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car1.xnb</Output>11 <Time>2011-0 6-30T22:08:49.469+03:00</Time>10 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car1.xnb</Output> 11 <Time>2011-07-01T09:22:11.3816782+03:00</Time> 12 12 </Item> 13 13 <Item> … … 17 17 <Processor>TextureProcessor</Processor> 18 18 <Options>None</Options> 19 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car2.xnb</Output>20 <Time>2011-0 6-30T22:08:49.474+03:00</Time>19 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car2.xnb</Output> 20 <Time>2011-07-01T09:22:11.3816782+03:00</Time> 21 21 </Item> 22 22 <Item> … … 26 26 <Processor>TextureProcessor</Processor> 27 27 <Options>None</Options> 28 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car3.xnb</Output>29 <Time>2011-0 6-30T22:08:49.479+03:00</Time>28 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car3.xnb</Output> 29 <Time>2011-07-01T09:22:11.3816782+03:00</Time> 30 30 </Item> 31 31 <Item> … … 35 35 <Processor>TextureProcessor</Processor> 36 36 <Options>None</Options> 37 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car4.xnb</Output>38 <Time>2011-0 6-30T22:08:49.484+03:00</Time>37 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Blues\Car4.xnb</Output> 38 <Time>2011-07-01T09:22:11.4285529+03:00</Time> 39 39 </Item> 40 40 <Item> … … 44 44 <Processor>TextureProcessor</Processor> 45 45 <Options>None</Options> 46 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car1.xnb</Output>47 <Time>2011-0 6-30T22:08:49.491+03:00</Time>46 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car1.xnb</Output> 47 <Time>2011-07-01T09:22:10.4598091+03:00</Time> 48 48 </Item> 49 49 <Item> … … 53 53 <Processor>TextureProcessor</Processor> 54 54 <Options>None</Options> 55 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car2.xnb</Output>56 <Time>2011-0 6-30T22:08:49.495+03:00</Time>55 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car2.xnb</Output> 56 <Time>2011-07-01T09:22:10.4598091+03:00</Time> 57 57 </Item> 58 58 <Item> … … 62 62 <Processor>TextureProcessor</Processor> 63 63 <Options>None</Options> 64 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car3.xnb</Output>65 <Time>2011-0 6-30T22:08:49.5+03:00</Time>64 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car3.xnb</Output> 65 <Time>2011-07-01T09:22:10.4598091+03:00</Time> 66 66 </Item> 67 67 <Item> … … 71 71 <Processor>TextureProcessor</Processor> 72 72 <Options>None</Options> 73 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car4.xnb</Output>74 <Time>2011-0 6-30T22:08:49.504+03:00</Time>73 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Greens\Car4.xnb</Output> 74 <Time>2011-07-01T09:22:10.4598091+03:00</Time> 75 75 </Item> 76 76 <Item> … … 80 80 <Processor>TextureProcessor</Processor> 81 81 <Options>None</Options> 82 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car1.xnb</Output>83 <Time>2011-0 6-30T22:08:49.512+03:00</Time>82 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car1.xnb</Output> 83 <Time>2011-07-01T09:22:16.5222703+03:00</Time> 84 84 </Item> 85 85 <Item> … … 89 89 <Processor>TextureProcessor</Processor> 90 90 <Options>None</Options> 91 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car2.xnb</Output>92 <Time>2011-0 6-30T22:08:49.517+03:00</Time>91 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car2.xnb</Output> 92 <Time>2011-07-01T09:22:16.5378952+03:00</Time> 93 93 </Item> 94 94 <Item> … … 98 98 <Processor>TextureProcessor</Processor> 99 99 <Options>None</Options> 100 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car3.xnb</Output>101 <Time>2011-0 6-30T22:08:49.522+03:00</Time>100 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car3.xnb</Output> 101 <Time>2011-07-01T09:22:16.5378952+03:00</Time> 102 102 </Item> 103 103 <Item> … … 107 107 <Processor>TextureProcessor</Processor> 108 108 <Options>None</Options> 109 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car4.xnb</Output>110 <Time>2011-0 6-30T22:08:49.527+03:00</Time>109 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Reds\Car4.xnb</Output> 110 <Time>2011-07-01T09:22:16.5378952+03:00</Time> 111 111 </Item> 112 112 <Item> … … 116 116 <Processor>TextureProcessor</Processor> 117 117 <Options>None</Options> 118 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car1.xnb</Output>119 <Time>2011-0 6-30T22:08:49.533+03:00</Time>118 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car1.xnb</Output> 119 <Time>2011-07-01T09:22:10.5066838+03:00</Time> 120 120 </Item> 121 121 <Item> … … 125 125 <Processor>TextureProcessor</Processor> 126 126 <Options>None</Options> 127 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car2.xnb</Output>128 <Time>2011-0 6-30T22:08:49.537+03:00</Time>127 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car2.xnb</Output> 128 <Time>2011-07-01T09:22:10.5066838+03:00</Time> 129 129 </Item> 130 130 <Item> … … 134 134 <Processor>TextureProcessor</Processor> 135 135 <Options>None</Options> 136 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car3.xnb</Output>137 <Time>2011-0 6-30T22:08:49.542+03:00</Time>136 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car3.xnb</Output> 137 <Time>2011-07-01T09:22:10.5223087+03:00</Time> 138 138 </Item> 139 139 <Item> … … 143 143 <Processor>TextureProcessor</Processor> 144 144 <Options>None</Options> 145 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car4.xnb</Output>146 <Time>2011-0 6-30T22:08:49.547+03:00</Time>145 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Whites\Car4.xnb</Output> 146 <Time>2011-07-01T09:22:10.5223087+03:00</Time> 147 147 </Item> 148 148 <Item> … … 152 152 <Processor>TextureProcessor</Processor> 153 153 <Options>None</Options> 154 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car1.xnb</Output>155 <Time>2011-0 6-30T22:08:49.553+03:00</Time>154 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car1.xnb</Output> 155 <Time>2011-07-01T09:22:16.569145+03:00</Time> 156 156 </Item> 157 157 <Item> … … 161 161 <Processor>TextureProcessor</Processor> 162 162 <Options>None</Options> 163 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car2.xnb</Output>164 <Time>2011-0 6-30T22:08:49.559+03:00</Time>163 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car2.xnb</Output> 164 <Time>2011-07-01T09:22:16.5847699+03:00</Time> 165 165 </Item> 166 166 <Item> … … 170 170 <Processor>TextureProcessor</Processor> 171 171 <Options>None</Options> 172 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car3.xnb</Output>173 <Time>2011-0 6-30T22:08:49.563+03:00</Time>172 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car3.xnb</Output> 173 <Time>2011-07-01T09:22:16.5847699+03:00</Time> 174 174 </Item> 175 175 <Item> … … 179 179 <Processor>TextureProcessor</Processor> 180 180 <Options>None</Options> 181 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car4.xnb</Output>182 <Time>2011-0 6-30T22:08:49.568+03:00</Time>181 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Yellows\Car4.xnb</Output> 182 <Time>2011-07-01T09:22:16.5847699+03:00</Time> 183 183 </Item> 184 184 <Item> … … 188 188 <Processor>TextureProcessor</Processor> 189 189 <Options>None</Options> 190 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround.xnb</Output>191 <Time>2011-0 6-30T22:10:37.511+03:00</Time>190 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround.xnb</Output> 191 <Time>2011-07-01T09:22:16.6003948+03:00</Time> 192 192 </Item> 193 193 <Item> … … 197 197 <Processor>TextureProcessor</Processor> 198 198 <Options>None</Options> 199 <Output>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\Arrow.xnb</Output>200 <Time>2011-07-01T0 0:00:27.9968+03:00</Time>199 <Output>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\Arrow.xnb</Output> 200 <Time>2011-07-01T09:22:16.6160197+03:00</Time> 201 201 </Item> 202 202 <BuildSuccessful>true</BuildSuccessful> … … 206 206 <BuildConfiguration>Debug</BuildConfiguration> 207 207 <CompressContent>false</CompressContent> 208 <RootDirectory>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFNContent\</RootDirectory>209 <LoggerRootDirectory>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\</LoggerRootDirectory>210 <IntermediateDirectory>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFNContent\obj\x86\Debug\</IntermediateDirectory>211 <OutputDirectory>C:\ Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFN\bin\x86\Debug\Content\</OutputDirectory>208 <RootDirectory>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFNContent\</RootDirectory> 209 <LoggerRootDirectory>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\</LoggerRootDirectory> 210 <IntermediateDirectory>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFNContent\obj\x86\Debug\</IntermediateDirectory> 211 <OutputDirectory>C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFN\bin\x86\Debug\Content\</OutputDirectory> 212 212 </Settings> 213 213 <Assemblies> 214 214 <Assembly> 215 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key>216 <Value>2010-08-23T12:41:18+03:00</Value> 217 </Assembly> 218 <Assembly> 219 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key>220 <Value>2010-08-23T12:41:18+03:00</Value> 221 </Assembly> 222 <Assembly> 223 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key>224 <Value>2010-08-23T12:41:18+03:00</Value> 225 </Assembly> 226 <Assembly> 227 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key>228 <Value>2010-08-23T12:41:18+03:00</Value> 229 </Assembly> 230 <Assembly> 231 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key>232 <Value>2010-08-23T12:41:18+03:00</Value> 233 </Assembly> 234 <Assembly> 235 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key>236 <Value>2010-08-23T12:41:18+03:00</Value> 237 </Assembly> 238 <Assembly> 239 <Key>C:\W indows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key>240 <Value>2011-06-2 7T19:07:01.563+03:00</Value>215 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 216 <Value>2010-08-23T12:41:18+03:00</Value> 217 </Assembly> 218 <Assembly> 219 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 220 <Value>2010-08-23T12:41:18+03:00</Value> 221 </Assembly> 222 <Assembly> 223 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 224 <Value>2010-08-23T12:41:18+03:00</Value> 225 </Assembly> 226 <Assembly> 227 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 228 <Value>2010-08-23T12:41:18+03:00</Value> 229 </Assembly> 230 <Assembly> 231 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 232 <Value>2010-08-23T12:41:18+03:00</Value> 233 </Assembly> 234 <Assembly> 235 <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 236 <Value>2010-08-23T12:41:18+03:00</Value> 237 </Assembly> 238 <Assembly> 239 <Key>C:\WINNT\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 240 <Value>2011-06-28T12:15:30.8753069+03:00</Value> 241 241 </Assembly> 242 242 </Assemblies> -
2011/26/LinusV/SFN_New/SFN/SFN/SFNContent/obj/x86/Debug/SFNContent.contentproj.FileListAbsolute.txt
r2386 r2426 1 1 C:\Users\Linus\Ohjelmointi\SpeedForNeed\SFN\SFN\SFN\SFNContent\obj\x86\Debug\ResolveAssemblyReference.cache 2 C:\MyTemp\LinusV\SFN_New\SFN\SFN\SFNContent\obj\x86\Debug\ResolveAssemblyReference.cache
Note: See TracChangeset
for help on using the changeset viewer.