Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


advice for a web service based game w/ mobile clients


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 timothyjlaird   Members   -  Reputation: 404

Like
0Likes
Like

Posted 15 May 2014 - 05:02 PM

Here is my problem...I want to make a card game that can run on a web server and serve 'x' number of clients that is mostly platform agnostic on the client end (i.e. Android, IPhone, PC, Linux). I was thinking about writing a web service to act as the game server itself and then have 'apps' around it for individual platforms so that users can play the game on different devices. What are some ways I can structure this? What languages and APIs should I consider? I want to make the clients as thin as possible.

 

I've got some experience with c++, c#, Javascript and PHP and I limited experience with WCF and ASP.NET. I think the JSON format would be best for a medium but I'm open to ideas. Running it on a Microsoft web server is an option but I would like to explore Linux as well since it is a cheaper solution.

 

I know this is vague but any input on how to get started would be appreciated.



Sponsor:

#2 Buster2000   Members   -  Reputation: 1774

Like
0Likes
Like

Posted 16 May 2014 - 01:46 AM

I think you are already most of the way there.  All modern mobile devices have some way of consuming and sending json requests over HTTP.  You already know PHP and Javascript so use one of these to make a RESTful web service running on a Linux web server. 

It should be possible so that if you published a public API then a third party would be able to develop their own client.

I write mobile apps as a day job and the majority of the popular non trivial apps out there (BBC iPlayer, Facebook, Instagram)  are really just just rich front ends for interacting with a web database through web services.



#3 BeerNutts   Crossbones+   -  Reputation: 2998

Like
0Likes
Like

Posted 16 May 2014 - 08:18 AM

I actually started doing something like that, but I was using python as my web server (using BaseHTTPServer), and it was really easy (running on Linux, Windows, Mac, whatever).

 

FWIW, I didn't know Python until recently, but ti's a simple language, and json can be read and written with ease, so I'd use that as the server, and use a HTML5/javascript app (check out phaser as a game API layer for HTML5/js)


My Gamedev Journal: 2D Game Making, the Easy Way

---(Old Blog, still has good info): 2dGameMaking
-----
"No one ever posts on that message board; it's too crowded." - Yoga Berra (sorta)

#4 dr01d3k4   Members   -  Reputation: 431

Like
0Likes
Like

Posted 16 May 2014 - 09:06 AM

You could look into a preexisting solution such as Google Play Game Services. I haven't used it for multiplayer before though so I don't know how thin the clients would be.


Falling block colour flood game thing I'm making: http://jsfiddle/dr01d3k4/JHnCV/


#5 timothyjlaird   Members   -  Reputation: 404

Like
0Likes
Like

Posted 19 May 2014 - 05:23 PM

Thanks for the posts all...I'll resurrect this when I get somewhere.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS