RSS
 

Mojo Platform

04 Mar

Definition: This Platform lets developers communicate among users of
their games in multiplayer mode – No matter what device you use – It
will request and send information of game status to all teh players
playign with each other – It communicates between Apple iPhone -
Google Android – Palm Pre – PC/Mac Games – and more….

Lets start with example -

We make a game called as “Guess what device is thinking” -

The Game has single player and multiplayer modes…

Single player is normal guess what device is thinkign and if you guess
right in first turn u get 10 points -
(u have to guess form 0 – 9) so first guess gives u 10 points and nd 9
points adn so on….. so every time u guess u go to next level…. any
time you can quit adn that will eb your final score – addition of all
levels….. just a normal dumb game….

Now here comes teh new platform technology…… The developer of this
game(which is me now) …. i will implement this platform what i will
do is i will integarte the api – what this api does… when a user
selects multiplayer it checks the server if there is a session
available – if session is availabe lthe user can join or else he
creates his own room…. there is also option to join available or
make his own… if he just wnats a private session….. One teh
session is created different peopel can joina dn ocne there are enough
peopel to start teh gae teh host can start teh game….

The device of teh host thinks a number adn everyone guess teh
number…. these are all passed through the server… Now te server
checks all teh numbers with teh winnign number(teh number that devie
is thinking) and teh oen who guess right wins if not go for anoteh
rtry….

Here is what happens in technical pseudo code…

init(“requestSessoion”, “gameName”)

join(“session”,”gameName”,”

userName”)

create(“session”, “gameName”,”userName”)

all of these are self explanatory….

Once teh host says gamestart….

start(“gameName”,”session”)

all players now see teh numebers 0-9 – they have to pick one…….

and ocne picked it will call….

sendMessage(“gameName”,”session”,”userName”,”6″)
sendMessage(“gameName”,”session”,”userName”,”3″)
sendMessage(“gameName”,”session”,”userName”,”0″)

the host machine will also sent the message at teh start of teh game…

sendMessage(“gameName”,”session”,”rules”,”correct – Right
Number”,”……..) – whatever rules teh user wnat to set

sendMessage(“gameName”,”session”,”initialParameters”,”8″)

since all 3 players guess wrogn number -

it will look up teh rules and repy accordingly – adn each device will
look up after they send teh request…

whatsNext(“gameName”,”session”,”Wrong ANswer”) – Rules responses
requests will eb all developer defined…. teh platform doesnt have to
do anything… all it has is a session and it will handle requests and
responses….. rules will eb provided by developer we can make it
either when he registers for this api….

I just set a few rules out – The main thing about this platform will
be it will let developers build apps or games or whatever they wnat
for different phones adn devices and communicate thorugh our
platform…..

What say guys…. it will be open source so anyoen can contribute….

If you wnat to add or subtract anythign let me know….

 
 

Leave a Reply

You must be logged in to post a comment.

 

Videos, Slideshows and Podcasts by Cincopa Wordpress Plugin