[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]

/agdg/ - Amateur Game Development General

AGDG - The Board

Catalog

Infinity Never
Name
Email
Subject
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Oekaki
Show oekaki applet
(replaces files and can be used instead)
Options
dicesidesmodifier
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4, swf, pdf
Max filesize is 8 MB.
Max image dimensions are 10000 x 10000.
You may upload 5 per post.


Welcome to AGDG, have you ever made a game?
See also: /ideaguy/ | /vm/

File: 1453661445999.jpg (231.59 KB, 1023x1543, 1023:1543, eobuk-133-flappy-bird.jpg)

05178c No.24984

Hello my friends,

does someone know how to make a Highscore board with a list method that tracks the score someone got in a playthrough like flappy bird it does ? :))

80214f No.24998

you don't think this question is somewhat trivial?


0eb22e No.25029

Yeah you're right i did it somehow ^_^

maybe is a leaderboard i bit harder where like 10 players are listed sorted by score or maybe its just beginner stuff again :D


1449e1 No.25032

You don't happen to be one of those opportunists who are jumping into something without any clue what they're getting into?

You literally loop through an array and insert your score between a number that is larger than yours and a number that is lower than yours, and then delete/ignore anything past the 10th number in the array. That's all there is to it, this shouldn't even be a question.

If you want nerds to compare their numbers against each other, then you'll need an online server to store the data, and that's when it becomes way more complicated than just "doing it in C#".


c75583 No.25037

>>25032

>You literally loop through an array and insert your score between a number that is larger than yours and a number that is lower than yours, and then delete/ignore anything past the 10th number in the array. That's all there is to it, this shouldn't even be a question.

You can probably just use an OrderedDictionary for this (I think? I don't know C#) instead of manually going through an array and trimming the last record


37de93 No.25074

>>25037

And what do you think happens inside an OrderedDictionary at lower level hmmmm?


ad1d1d No.25092

I've never programmed anything in my life and even I find this question a bit too simple, so I'm not bumping this thread. But I have a little idea that is related: People often like to post screenshots with their scores, and you could put in mechanisms to work out for yourself whether people make fake claims about scores without even having any sort of database.

That is, the score screen could have some details like background color and some border around the numbers based on some attributes of the score, like whether its even or odd or how many sevens appear or whatever, working like a checksum. So you could tell with good probability whether a score screenshot was faked. But you don't even need a screenshot. If your game has really long scores, you can put in a speed bonus at the end of the game for say the last four digits that in reality is only a speed bonus for the left half of these, and the other two are really a sneaked-in checksum.


23f46c No.25190

>>25074

>And what do you think happens inside an OrderedDictionary at lower level hmmmm?

http://reflector.webtropy.com/default.aspx/4@0/4@0/DEVDIV_TFS/Dev10/Releases/RTMRel/ndp/fx/src/CompMod/System/Collections/Specialized/OrderedDictionary@cs/1305376/OrderedDictionary@cs

That's not what it does. Also, please use a tree or something instead of loops and inserts.


23f46c No.25191

>>25037

>>25074

>>25190

Sorry, I forgot where I was. You solved it your way and if that works, that's good enough.




[Return][Go to top][Catalog][Post a Reply]
Delete Post [ ]
[]
[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]