JavaScript is required to use Bungie.net

OffTopic

Surf a Flood of random discussion.
Edited by bastage: 5/14/2015 12:30:53 PM
2514

Paste The Last Thing You Copied (LATE 3K POSTS PARTY)

empty that bin, yo.

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

View Entire Topic
  • Programming... [spoiler]class LevelLoader { public static List<String> levelNameList = new List<String>(); public static List<int> levelIDList = new List<int>(); public static int currentLevelID; //character: public static int playerX = 0; public static int playerY = 2; public static void registerLevel(int _levelID, String _levelName) { levelNameList.Add(_levelName); levelIDList.Add(_levelID); } public static void setLevel(int _levelID, String _levelName) { if (!levelIDList.Contains(_levelID)) { Console.WriteLine(">>Game Engine: Error, Level is not registered!"); Environment.Exit(1); } else { if (!levelNameList.Contains(_levelName)) { Console.WriteLine(">>Game Engine: Warning: Level Name is not registered!"); } else { Console.Clear(); Console.WriteLine("You entered: " + _levelName); currentLevelID = _levelID; Run(); } } }[/spoiler]

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

1 2
You are not allowed to view this content.
;
preload icon
preload icon
preload icon