TGB High Score System

Posted in: Game Development |

The TGB High Score System is a class that contains simple functions for adding, removing and storing High Scores for a game -- the general concept behind the system is this;

JavaScript:
  1. %highScore = HighScores::Create();
  2. %highScore.Load('~/data/levels/level1.hss');
  3. for(%x = 0; %x <%highScores.GetCount(); %x++)
  4. {
  5.     highScoreGuiListCtrl.Add(%highScore.getScore(%x).PlayerName);
  6.     highScoreGuiListCtrl.Add(%highScore.getScore(%x).PlayerScore);
  7. }
  8. %highScore.delete();

The same principal can be applied when a player needs to add a high score, you simply call %highScore.AddScore(%player) -- This function will return true or false -- true meaning that the player has reached a new high score -- whether your scoring system is "Top 10", "Top 25" or "Top 3", you can configure this when you create the HighScore object for the first time in your project, and then update or modify the setting later on.

Currently, the system is in alpha stages, but will eventually be available to the public in either a beta or stable release.

TGB Resource Maker

Posted in: C#,Game Development |

During the design and general work flow of the Urban Platform Kit, I've decided that it would be within my best interests to create a "Resource Maker" application for the Torque Game Builder.

What does this mean? Well, it means my task list just grew quite a bit, and I added a new project onto my "pending" list.

I am not sure what the overall outcome of this project will be -- but I do know that i will be using it to create the resourceDatabase.cs for the Urban Platform Kit -- LOTS of graphics, and hand editting that file is not the funnest thing in the world -- some added items I'll be adding to the project for simplicity is the ability to take a number of PNG's and tile them into a single PNG (including transparencies) so I don't have to keep creating the 'sheets' when steve hands me new or updated art work (what a pain that is ... Wow!)

LinkShare  Referral  Prg - default banner