High Score list!

Talk about making games.

Is this useful?

Yes, very useful! :)
7
88%
It's quite useful.
1
13%
No, I don't think so...
0
No votes
 
Total votes : 8

High Score list!

Postby lcl » Sun Sep 19, 2010 10:40 am

So, here's my high score list engine!
You can freely use it in your game. :D

The list automatically drops
lower scores, if you get better one. :D

Example gives you some random score, and then you can type your name in, and
it adds your score and name to list. :D

Enjoy! And tell me if something could be done better. :D
Attachments
HighScores.png
HighScore.zip
Download it here! :)
(196.86 KiB) Downloaded 374 times
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: High Score list!

Postby zxcvbnm » Sun Sep 19, 2010 6:03 pm

This is great work Lcl , a bonus feature to add to any game. Alot of vets and newbies will thank you for your hard work .
Check out Momo AlienStarcatcher , featured in apples new and noteworthy and has 5 star reviews!!!
http://itunes.apple.com/us/app/momo-ali ... 61779?mt=8
zxcvbnm
 
Posts: 248
Joined: Sun Aug 22, 2010 7:57 pm
Score: 10 Give a positive score

Re: High Score list!

Postby Bee-Ant » Mon Sep 20, 2010 4:18 am

Nice, but pretty looong code for such thing...
You can use Bubble Sort to do this kind of stuff...
Code: Select all
#define arraysize 10 //arraysize is your max array number to store the Score
int array[arraysize];
void Sort()
{
   int i,j;
   for(i=0;i<999;i++) //999 is the loop number for value checking, no need to change this
   {
      for(j=0;j<arraysize-1;j++) //since we use [j+1] bellow, so we use arraysize-1 here to prevent "out of bound" checking
      {
         int temp; //just for temporary
         if(array[j+1]>array[j]) //if there's any value greater bellow the current index, switch it
         {
            temp=array[j];
            array[j]=array[j+1];
            array[j+1]=temp;
         }
      }
   }
}

You can use this function to sort Score, Item, anything :D
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: High Score list!

Postby lcl » Mon Sep 20, 2010 5:41 am

Wow, Bee-Ant... :D I knew that there must be shorter way to do it...
You are genius with the code. :D
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: High Score list!

Postby ayu04 » Sat Jan 28, 2012 1:21 pm

Thankyou sir, :)))
ayu04
 
Posts: 20
Joined: Fri Nov 18, 2011 1:47 pm
Score: 0 Give a positive score

Re: High Score list!

Postby SuperSonic » Sat Jan 28, 2012 2:17 pm

Looks cool :D
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest