Score board
by Jay Crossler · in Torque Game Engine · 07/13/2007 (4:57 am) · 2 replies
I'm implementing a scoreboard in my game. It's currently a single player game.
I'm thinking I'll do it like:
- Play Game, end with score, player name and completion time
- Read in existing winners file, decrypt results, store into array
- Add current score/name/time
- Sort, show top 10 and player's position if not in top 10
- (Possibly limit to only keeping top 10 scores)
- Create an encrypted string of all variables
- Write encrypted string to text file
- (Possibly send this encrypted string to an HTTP call if present to add to an online leaderboard)
- (Build PHP or ASP code to catch this, write to database (removing duplicates), then show winners in table)
Anyone done all or part of this before, and willing to share? Most pleadingly, does anyone have a good GUI code for a scoreboard (my GUI skillz are lacking).
I'm thinking I'll do it like:
- Play Game, end with score, player name and completion time
- Read in existing winners file, decrypt results, store into array
- Add current score/name/time
- Sort, show top 10 and player's position if not in top 10
- (Possibly limit to only keeping top 10 scores)
- Create an encrypted string of all variables
- Write encrypted string to text file
- (Possibly send this encrypted string to an HTTP call if present to add to an online leaderboard)
- (Build PHP or ASP code to catch this, write to database (removing duplicates), then show winners in table)
Anyone done all or part of this before, and willing to share? Most pleadingly, does anyone have a good GUI code for a scoreboard (my GUI skillz are lacking).
#2
02/25/2009 (5:55 pm)
Jay, did you end up modifying this for TGE and set this up online with PHP. I'm looking at doing the same thing.
Torque 3D Owner Jay Crossler
Here's an Advanced Scoreboard object from TGB:
tdn.garagegames.com/wiki/Torque_2D/StandardTutorials/Advanced/HighScores
I'll start with this and build upon.