Game Development Reference
In-Depth Information
function getData(theTask)
print(theTask:getString())
end
task = MOAIHttpTask.new()
task:setCallback( getData )
task:httpGet (theURL)
When we run the code, "hello world!" will be output to in the terminal. We can use any other
language or framework that supports HTTP access to get data from the Moai cloud service.
Note The Moai cloud service has a few options (like a phone plan). All accounts created come with
the Sandbox plan by default, which is free and offers 50 MB of space, 1 GB of transfer, 100,000 push
notifications, and 100,000 API requests. If your needs exceed these, there are other plans to suit your
requirements, ranging from $19 per month for hobbyists to $499 per month for studios.
for a mobile device, you can have a desktop version ready for the Mac App store (if required). It
also discussed the way Moai handles input; it is easy to set up listeners for additional interfaces
and check if they exist. Finally, it covered the Moai cloud, which is separate from the Moai SDK
free offering, and allows developers to use the cloud features from right inside your app. While
developing with Moai may be daunting at first, if you persist with it, it can provide a very pleasant
development experience.
 
Search WWH ::




Custom Search