Slick Forums

Discuss the Slick 2D Library
It is currently Wed Nov 21, 2018 3:56 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Slick's games highscore
PostPosted: Thu Jan 15, 2009 10:55 am 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1340
Location: Italy
Hi!

I have a little idea about a global highscore for every game made with slick.
This is my idea:

- every project have an unique code generated by an online services (php+mysql)

-there is a php+mysql server online that expose some services to add, retrieve, etc.. highscores about a certain code


So.. a new game need web/score?
Simply:

1) get unique code from a service (a "sequence" new value on a id, for example)

2) use service of adding/deleting/clear/list of global score


what do you think?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 26, 2009 4:20 pm 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1340
Location: Italy
no one want to add a comment?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 26, 2009 7:23 pm 
Offline
Oldbie

Joined: Tue Jun 17, 2008 5:11 pm
Posts: 336
I have considered making a service like this in the past, not strictly for Slick but a more general service. Here are some problems that come to mind:

* How do you prevent people from entering fake scores?
* How do you decide what data can be tracked?
* What if I want to track 6 different fields, or 10, or 100?
* How do you ensure that one game doesn't accidentally write a score to a second?
* What is the value added for the game developer?
* What is the value added over other possible competitors?
* How does a game developer interact with the application? Is there a web interface?
* What policy is in place for the data? What if your servers go down? DB gets corrupted? You get tired of supporting the service?

Overall I think it's a neat idea and fairly straightforward. That said once you start talking about a web interface to manage your account, etc, then things get messy.

Also, some of the questions surrounding the maintenance and lifetime of the product are problematic. My immediate reaction is that the project may be better served if it starts off as an open source library in which different parties can pool their collective talent/knowledge. That way people would still get the benefit of reusing best ideas/practices but no one person would be responsible for owning and maintaining all of the data/service.

You could consider looking to something like github for an example company which takes an open source project and provides a service on top of it. The service gains additional value as more people sign up to use it, i.e. a network effect. I think the biggest challenge for doing something similar with this idea is to determine how to make the experience become better as more users sign on.

_________________
My website about game development http://anotherearlymorning.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 28, 2009 5:25 pm 
Offline

Joined: Wed Aug 19, 2009 3:57 pm
Posts: 33
Location: Englanshire
Image

Hello, not sure where to put this but I found this post and it makes most sense to put it here I suppose.

Introducing:
Marks Free Highscore System

http://mark.st/highscores/

Information:
I have written a web interface and small library that interacts with my web server.

The service allows you to store highscores for games. It will also allow you to pull rank data out of the board as well. Example, you can get the top 100 ranks. You can also get "pages" of ranks. I.e. you specify how many ranks per page you want and what page you want and it will return the specified data. You can download the library and example code from the website (http://mark.st/highscores/)

What can it do for you?
At the moment it allows you to store highscores onto a server that is available 99.999% of the time. It cuts out on the need for you to have a server.

It also provides a very easy interface to get the score data into your game, rendering of the data is still up to you.

It not only stores the score! Along with the score, there are 5 extra text fields (max length 255 each) for you to store what ever you want! This could be player names, player country, level reached and other stats. It also gives you a unix timestamp of when the data was stored into the database.

When you insert a new score, it will return the rank of the score that had just been uploaded.

Using the service:
Register at the website. Once registered, login and create a new board. When the new board is created, you will be given an API key for that board. You can have as many boards per account that you want.

Using the library:
Example code is on the website, it is quite self explanatory. All you need to do is insert your API key into the code so the server knows where to store your highscores.

Limitations:
It will only return a maximum of 100 ranks at a time, this is to cut down on server cpu time. This may be increased in the future.

Also note that this is hosted on my personal server and if it proves popular enough, I will have to find an alternative hosting solution and so the library will need to be updated with a new URL.

Why have I made this?
I made this as I needed a highscore system for a game I am making at the moment and when I searched these very forums, I found this post and was up to the challenge! So here I am a few days later.

Feedback
Please give me feedback on anything please! If you want another method added into the library or or features etc, let me know. If there are bugs, they would be gratefully welcomed. Please email me at mark.satterthwaite@gmail.com

Thank you :D


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 28, 2009 7:23 pm 
Offline
Game Developer
User avatar

Joined: Sun May 25, 2008 9:45 am
Posts: 578
Neat. I think Google App Engine is a perfect candidate for hosting a high score system.

_________________
SingSong Karaoke - http://singthegame.com


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 29, 2009 5:13 pm 
Offline

Joined: Wed Aug 19, 2009 3:57 pm
Posts: 33
Location: Englanshire
NateS wrote:
Neat. I think Google App Engine is a perfect candidate for hosting a high score system.


You are probably correct but I had a look and it confused me, a bit more figuring how it works and I might give it a shot.

But this little score system was just something that should suit most small games. Easy access without a lot of effort.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group