Slick Forums

Discuss the Slick 2D Library
It is currently Thu Apr 17, 2014 4:22 am

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Thu Aug 12, 2010 8:24 pm 
Offline
Regular
User avatar

Joined: Tue Apr 07, 2009 12:58 pm
Posts: 232
Location: Uruguay
Hi people, we are working on a simple scores system for our games. We have posted a bit about it on our blog.

We know some people were working on similar systems or talking about them here and here at least.

The server application is going to run over google app engine and it is being developed using python. Also, we are working on a Java client for the games, who interact with the server using apache httpclient. We want to make both opensource in the near future.

There is more detail on the blog's entry.

We will update when we have something to show.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2010 10:14 pm 
Offline
Regular
User avatar

Joined: Tue Apr 07, 2009 12:58 pm
Posts: 232
Location: Uruguay
Our first version of the online server for highscores is up and running on google app engine :D

We have updated Jylonwars to use it, please try the game and leave any feedback you may have, thanks.

Here is a code example to submit a new score:

Code:
      Scores scoresHttpImpl = new ScoresHttpImpl("dsadfasfdsfaasd", "http://localhost:8080");

      HashSet<String> tags = Sets.newHashSet("level1", "easy", "superuser");

      HashMap<String, Object> data = new HashMap<String, Object>() {{
         put("timeAlive", 180);
         put("enemiesKilled", 500);
      }};

      String scoreId = scoresHttpImpl.submit(new Score("player", 12500, tags, data));

      System.out.println("Score submited with id: " + scoreId);

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 17, 2010 7:31 am 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1325
Location: Italy
Works fine with Jylonwars :D

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 17, 2010 1:32 pm 
Offline
Regular
User avatar

Joined: Tue Apr 07, 2009 12:58 pm
Posts: 232
Location: Uruguay
:D thanks for playing it

We will have to improve the game to be entertaining and a real challenge because right now it sucks a bit xD.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 14, 2011 8:47 pm 
Offline
Regular
User avatar

Joined: Tue Apr 07, 2009 12:58 pm
Posts: 232
Location: Uruguay
We made some updates to the high scores server, and moved all the source code to github if anyone is interested, projects are named datastore and datastore-server. More info at our blog here.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 30, 2011 2:52 pm 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1325
Location: Italy
arielsan: there is any chance to have this system as server?

Many developer could benefit from that, just register user, register game, give me unique ID, use api to upload score and so on :D

what do you think about that?

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 30, 2011 5:02 pm 
Offline
Regular
User avatar

Joined: Tue Apr 07, 2009 12:58 pm
Posts: 232
Location: Uruguay
Google app engine is free until you exceed a quota, as we have only 3 games with scores and nobody plays our games, then we have no worries about the quota.

But, in case we let other people to use our instance of datastore-server, and those games get a lot of users, then we will have to worry about our quota.

The good part is that datastore-server can be really easily deployed on google app engine using your google account, so you will use your own instance and quota, inside you will have your own games, scores, etc.

So, my final answer is, if you want to upload an instance of datastore-server and give other users the ability to register new games on your instance, you can and is your decision, but it is probably better to each one uploading their own instances of datastore-server and control it in any way they want.

Of course, if you only want to test the scores system, I could create a test game in our datastore-server instance for you.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 01, 2011 6:41 am 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1325
Location: Italy
sure :D

but how to upload all the stuff? I mean, maybe something like "upload this on your google space", do this and so on?

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 01, 2011 1:58 pm 
Offline
Regular
User avatar

Joined: Tue Apr 07, 2009 12:58 pm
Posts: 232
Location: Uruguay
I added an issue so we don't forget to make a wiki page, when I have some time, to explain how to upload the app to google app engine :D

When it is ready, I will post again on slick/javagaming with its link.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 01, 2011 3:03 pm 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1325
Location: Italy
thanks!

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 03, 2011 7:05 pm 
Offline
Regular
User avatar

Joined: Tue Apr 07, 2009 12:58 pm
Posts: 232
Location: Uruguay
I have started a basic tutorial explaining how to upload the application to your google app engine account and how to register a new game in the application.

It is on the README at datastore-server github page.

I will add later a basic tutorial of how to configure the Scores class of datastore library to interact with datastore-server.

_________________
Image


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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:  
Powered by phpBB® Forum Software © phpBB Group