I did not implement cocoslive in my game yet, but I wanted to have the ability to maintain all-time scores and today's highest score which would reset once a day. I think this is a feature that would keep people playing as they attempt to crack the daily top scorers list.
Add today's highest score feature to cocoslive?
(12 posts) (5 voices)-
Posted 2 years ago #
-
I agree.
It's not as easy as it seems to implement that in Google App Engine, but it's not impossible.
It's on the to-do list, but I can't give any release date.Posted 2 years ago # -
If I finish my game before then, I can volunteer to work on it. It's python? I use python at work ... when I have to :)
Posted 2 years ago # -
Yes, it's in python.
you can find the source code here:
http://code.google.com/p/cocoslive/source/checkoutPosted 2 years ago # -
I agree, this would be a great feature to have. Glad to hear it's on your to-do list, Riq.
Posted 2 years ago # -
riq - I just started looking at this tonight. I think the functionality for high score of the day is already available in cocoslive:
typedef enum { kQueryIgnore = 0, kQueryDay = 1, kQueryWeek = 2, kQueryMonth = 3, kQueryAllTime = 4, } tQueryType;Default is kQueryAllTime.
In the cocoslivetest call it like this and you have the top scores for the day:
[request requestScores:kQueryDay limit:15 offset:0 flags:flags category:cat];Posted 2 years ago # -
Does that actually work? I was under the impression that the foundation code for the client (iphone) side has been laid out but the server does not actually handle everything yet.
I remember reading the comments in the CocosLive example that other than All Time, none of the other requests will work. Didn't bother testing because of that.
Posted 2 years ago # -
I'll test it out tomorrow hopefully. It worked within the cocoslivetest but that may not go against a live server? I tested by adding 3 scores, then changing the code as mentioned above and then build/go. Only the 3 scores I added showed up. One local, two global.
Posted 2 years ago # -
yes, at the moment only the "all time" works.
Posted 2 years ago # -
I noticed this was posted 3 months ago from now:
Do these features work now?Posted 2 years ago # -
Nope, I don't think there's been much changes to CocosLive. If there's anyone good with Python who's also interested in helping out on it, riq and all of us would probably appreciate it :p
Depending on the scope of your game, an all time feature may just be enough. If you need more, then there's more options available out there for you.
Posted 2 years ago # -
yes, patches are very welcome! :-)
remember that the server is open source too:
http://code.google.com/p/cocoslive/Posted 2 years ago #
Reply
You must log in to post.