You have chosen to sponsor your bid up to a maximum amount of .
The type of games we would like to integrate in our platform are games that maintain some statistics for each user (points or coins or level ). The user will log in our platform and have access to all games with the same user_id. Therefore when we initiate the game, we need the option to pass the current user’s id, and the statistics of the game to be kept by user id’s.
For each game we need a way to “exchange” the coins earned by the user in-game with the coins the user has on our platform. the exchange is both ways.
With this system the user can pass coins between games .
For example : the user has 100 game points on our platform, and chooses to play a game let’s say darts. At darts he wins 120 points (in-game darts points) . after the game is ended he wants to exchange the 120 in-game points for some platform user points for an established rate, lets say 10 to 1.
So if he wins 120 dart points he can exchange them for 12 platform points.
Also if the game requires some points to enter it, lets say... 100 dart points... the user can exchange 10 platform points for 100 dart points, so he can enter the game.
We need 3 big functions . one that gives us the user’s total in-game points depending on user id, one that can add user in-game points, and one that can deduct user in-game points. With these 3 functions we can create an external exchange between in-game points and platform points.
Basically for each game we need some functions that can be called form php to add or reduce some in-game points, depending on current user id.