Sign in to follow this  
LuckyDice

Making a 2d browser Game

Recommended Posts

LuckyDice    113

    This is my first time posting on this forum, so sorry if I am posting in the wrong section. I want to make a 2d multiplayer browser shooter, but am not sure if which languages to do it in. I was thinking of using Angular JS for client side, and PHP for back end. I am still learning those languages and don't know much yet, but I was hoping for some confirmation or a better suggestion in the languages I should use.

Share this post


Link to post
Share on other sites
RLS0812    3043

Be aware that you need to have quite a bit of IT knowledge to get Node.js and Socket.io to operate correctly on your server.

 

 If you choose remote hosting service , Node.js & Socket.io are either poorly supported or  complicated to set up .

Edited by Shippou

Share this post


Link to post
Share on other sites
kop0113    2453
I find that using Emscripten C++ for the frontend and Emscripten C++ for the backend has been very successful. Emscripten for the backend uses node.js at runtime so ensures that when serving sockets using the traditional BSD sockets API, you infact serve websockets instead.

http://kripken.github.io/emscripten-site

Coupled with static typing and RAII of C++ and portability to all platforms in existence, it is proving to be a really great solution for games. So good infact that even commercial products like Unreal and amateur / hobby game engines like Unity are starting to use it as their backends. Edited by Karsten_

Share this post


Link to post
Share on other sites
smr    2468
I second the choice of Node on the back end for your project.

Myself, I've opted for python on the back end for two reasons: I favor the python language, and ctypes makes it very easy to use C++ (using a c api to python) when python isn't fast enough. Care must be taken to keep the overhead of crossing the ctypes boundary low, so most native functions process data in batches.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this