Computer Science Canada [Tutorial]High Score List |
Author: | Dan [ Sat Jun 05, 2004 3:40 pm ] | ||
Post subject: | [Tutorial]High Score List | ||
I made this tutorial awhile ago and when i made it, i did it kind of fast b/c it was to help some one with there code, so hopfully there are not any logic errors in it. This method of doing a highscore list is one of the more simple ones and there are ways to make it more advaced and work faster but i was going for somting poleop whould understand. So here it is:
|
Author: | s_climax [ Sat Jun 05, 2004 5:26 pm ] | ||
Post subject: | |||
What about re-writing the high-score list. Why doesn't this work?
|
Author: | [Gandalf] [ Thu Jan 13, 2005 8:12 pm ] |
Post subject: | |
I tried experimenting with this, but it didn't work. If a high score did show up, it did not save to the file... When I try to incorporate it into my game, it says that scorse has no value when the time to sort the list comes. Can you please rewrite this for everyone? I would greatly appreciate that. I, in the meantime will try to experiment some more. |
Author: | jr.ranger.33 [ Mon Sep 18, 2006 3:52 pm ] |
Post subject: | Confused |
I'm new to programming and in the midst of designing a classic arcade games program... i'd like to add a simple highscores feature to it. Instead of takeing ur program and adding it to mine i'd like to try and understand it so i can program one of my own...so i'm probably going to be asking a few questions over the next few days (hope u don't mind). First question is: What is the numOfPeolpe variable representing? (It may seem like a retarded question...it is, but for some reason i can't figure out what it is representing lol) |
Author: | Clayton [ Mon Sep 18, 2006 4:53 pm ] |
Post subject: | |
first of all, questions should be posted in [Turing Help] so please post there in the future right now though, numOfPeople is representing the number of people there are to be in the high score list, you should also look into File I/O and sorting methods available. |
Author: | Decadence666 [ Sun Oct 29, 2006 6:20 pm ] | ||||||
Post subject: | |||||||
Thanks this is exactly what i needed for an assignment. For anybody who wants to reverse the order of the scores ( from lowest to greatest ) its really easy. Took me a bit to figure it out, and then it was really obvious lol. Here we go: Heres Hacker Dans Version
Just change this line:
To:
All it takes is to change the less than < to a greater than > Just thought that might be helpful to somebody... |
Author: | razrdude [ Mon Oct 30, 2006 1:07 am ] |
Post subject: | |
lol thanks, nice tut overall im gonna try to implement it in my program, although i gotta make a scoring system first. |