GameConstants.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. namespace FuelCell
  3. {
  4. public class GameConstants
  5. {
  6. //camera constants
  7. public const float NearClip = 1.0f;
  8. public const float FarClip = 1000.0f;
  9. public const float ViewAngle = 45.0f;
  10. //ship constants
  11. public const float Velocity = 0.75f;
  12. public const float TurnSpeed = 0.025f;
  13. public const int MaxRange = 98;
  14. public const float HeightOffset = 2;
  15. // Game board setup
  16. public const int MaxRangeTerrain = 98;
  17. public const int NumBarriers = 40;
  18. public const int NumFuelCells = 12;
  19. public const int MinDistance = 10;
  20. public const int MaxDistance = 90;
  21. //bounding sphere scaling factors
  22. public const float FuelCarrierBoundingSphereFactor = .7f;
  23. public const float FuelCellBoundingSphereFactor = .5f;
  24. public const float BarrierBoundingSphereFactor = .7f;
  25. //Gameplay tracking variables
  26. public static readonly TimeSpan RoundTime = TimeSpan.FromSeconds(30.25);
  27. // Display Text
  28. public const string StrTimeRemaining = "Time Remaining: ";
  29. public const string StrCellsFound = "Fuel Cells Retrieved: ";
  30. public const string StrGameWon = "Game Won !";
  31. public const string StrGameLost = "Game Lost !";
  32. public const string StrPlayAgain = "Press Enter/Start to play again or Esc/Back to quit";
  33. public const string StrInstructions1 = "Retrieve all Fuel Cells before time runs out.";
  34. public const string StrInstructions2 = "Control ship using keyboard (A, D, W, S) or the left thumbstick.";
  35. }
  36. }