How to make a client / server game using Google App Engine

I am trying to run my first client / server game using the Google Apps Engine as my back end (specification requirement.) I have done tutorials (Java), but they all look very browser oriented.

Basically, I would like my application (mobile, not that it matter):

  • Allow user to create an account (NOT their Google account!)
  • Log in with this account.
  • Press the "MARCO" button to send a request to the server indicated on the server.
  • Get the answer “POLO” from the server.
    • As data (for example, a JSON object, XML-DOM or similar), and not as a web page.

Can someone point me to a good tutorial / sample project / detailed reading to help me achieve this? I am pretty sure that as soon as I get this work, I can do the rest, but I had a problem "stuck in the start gate", not being able to work with the main account, and non-HTML data exchange.

Thank!

+3
source share
5 answers

Unfortunately, all my knowledge of AppEngine uses their Python SDK, but it has to "translate" into Java.

. Google, Google, . , , AppEngine, : http://github.com/aht/suas

( cookie), , cookie. , , . . , , suas, .

, RPC . RPC, , AppEngine HTTP. HTTP POST- POST, JSON/XML, , , , . HTTP, JSON/XML. Python simplejson API Python dicts JSON, XML-, . Java API.

RPC HTTP AppEngine ( Python, ) : http://code.google.com/appengine/articles/rpc.html

, JavaScript ( ). , , - , , :

self.response.out.write(simplejson.dumps(result))

, . !

+4
+1

, GAE.

1) JPA/JDO.

2) JDOM xml

3) JSON google json JAVA api, - google- http://code.google.com/p/google-api-translate-java/

0

GAE HTTP. , HTTP- (POST/GET) GAE. JSON XML - ( html, ).

( Google!)

.

.

POST GAE, GAE /pwdhash.

"MARCO", , .

- . cookie, . GAE. .

"POLO" .

... HTTP-.

(, JSON, XML-DOM ), -.

- (html) JSON (Content-Type) ( http, json character data). http.

0

You can use other clients, and not use your own client, which will waste your time stupidly. I have explored the entire Internet and they do not give specific instructions on how to create a client / server for games or anything.

-1
source

Source: https://habr.com/ru/post/1756801/


All Articles