Main Menu

Share score

Started by Grew, August 03, 2016, 08:32:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Grew

Hi,
I'm about to release my game, but I'm sad that I will never know if people succeed to finish it.
I wondering if there is a way to share the score in Twitter or Facebook directly from my game.
For exemple :
"My hight score on GAME_NAME is XXXX, can you beat me ?"


Any ideas to afford this (with PixTudio) ?
My game developer instagram :
https://www.instagram.com/ben_dev_game/

gecko

The solution i'm thinking of is using an intermediate web server where you send the scores, and then from that server you can post them to the social networks.

For example you can run PHP or Ruby on the web server, and there are lots of libraries or scripts that can authenticate and publish on facebook or twitter.

I don't know if it's possible DIRECTLY through bennugd, but i'm positive sure that is possible using an intermediate server. (I've done this using a NodeJS server, for example).
Torres Baldi Studio
http://torresbaldi.com

Grew


Thank you for your reply.


Is there a way to open an url in PixTudio ? The OS will be able to open this url with the associated app. For exemple if PixTudio send a twitter url request on Android, I think Android will open it with the Twitter App.
My game developer instagram :
https://www.instagram.com/ben_dev_game/

l1nk3rn3l

Please add a new post with ...   Bennugd Christmas Wish List..


;D

Grew

Haha !


You're right ! :P
My game developer instagram :
https://www.instagram.com/ben_dev_game/

blabla

That's how i did for my BennuGD games (or even my C Android games), Pixplantilla can open URLs or even URIs !
I'm not sure if the recent Pixplantilla can do this though...

For twitter, you can open it up inside of a browser :
exec(_P_NOWAIT, "https://twitter.com/intent/tweet?text= My score is : "+(int)myhighscore+". I'm so great #sogreat", 0, 0);

Or even better, using the official twitter application:
exec(_P_NOWAIT, "twitter://post?message=My score is : "+(int)myhighscore+". I'm so great #sogreat", 0, 0);