Is posible to create in Defold an online game?

I trying to create an online card game…

Yes, absolutely. You will need to code the server in something else though. I recommend Elixir. http://elixir-lang.org/getting-started/introduction.html

1 Like

Do Exist some tutorials which explain how to work with ELIXIR and DEFOLD?

I am writing a section on this for my Defold book, but it is not ready yet.

There are tutorials for Elixir on their site. And using HTTP with Defold is very simple.

1 Like

Posible, I will have some questions about this tech, can you give me your email ?

You can ask the questions publicly. You can also ask on the Elixir communities questions. They will give good ones.

Elixer? Why not something based in JavaScript? Whats the benefit of using Elixer over something like Node + Backbone/Express/Restify ???

Yes http://www.defold.com/ref/http/

The reasons are performance, reliability, scalability, concurrency, one user’s process crashing not impacting any other users, ability to scale to many, many users on a single server. Other setups can get the same benefits, using this software is my preference. I would use Elm and Phoenix too with a game project. You could use Erlang + ellli if you wanted a more raw approach for the same benefits.

1 Like

From Defold’s perspective you will use either the http module or using LuaSocket which is built into Defold.

With HTTP requests and TCP and UDP sockets you can connect to any kind of server and as we’ve already seen in this post there are suggestions and discussions going on about which backend tech stack is the best. Is it Elixir, Node, PHP, ASP, Java EE or something else? Who knows? It depends on what features you need for your online card game.

The only thing I’ll offer is to also consider using Lua on the backend. Projects such as Sailor have shown that Lua can be used for webservers as well.

1 Like