I was able to deploy a JRails application using warbler in Apache. The latest warbler gem is very nice and stable. I just needed to make sure warbler and jar were in my PATH variable. I also had to tell warbler to generate the files outside my truecrypt drive because somehow, truecrypt was not allowing WEB-INF folder to be uppercase. I still can't figure out how to change the Rails environment from Production to Development, it seems that warbler forces you to use Production which is very understandable considering that you usually deploy to production servers.
Futhermore, thanks to the excellent Setting Up SSL on Tomcat In 3 Easy Steps article by nitinpai, i was able to set up apache and the rails application to run under SSL. Very, very nice and it was incredible easy, however, to make the certificate work with firefox 3 you need to tell keytool to use RSA. The is another article on the web about that, you can google it.
Construct2 can use websockets to send and receive messages between games. By using socket-io , we can use a Node.js script as the server and my modification to the socket-io plugin for Construct2 to allow the games to synchronize data between them in real-time. There are two parts to this design: the Node.js server and the Construct2 clients (the games playing). The main part of building an online multiplayer HTML5 game is to plan: how the clients will communicate how often and what to communicate how much of the logic will go into the server and how much to the client. In my sample game, I chose to have each client own a player and have the server just relay messages: Use string messages in the form TypeOfMessage, Parameter1, Paremeter2, Parater3, etc to communicate. Have the clients send their player position about 16 times a second. Whenever their player shoots, the client needs to send a message immediately. Almost all of the game logic will...
Comments