{"assets":[{"original":"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2013\/03\/Screenshot-at-2013-03-05-092530.png","local":"\/data\/posts\/2013\/03\/da2c3e4e194d30250110fd83ff57205b.png"}],"author_link":"author\/zelen3d\/","author_name":"Zelen3d","cat":"MiniLD","categories":["MiniLD"],"comments":[],"epoch":1362469320,"event":"","likes":5,"metadata":{"p_key":"78485","p_author":"Zelen3d","p_authorkey":"0","p_urlkey":"287495","p_title":"My first multiplayer online demo!","p_cat":"MiniLD","p_event":"LD25","p_time":"1362469320","p_likes":"5","p_comments":"0","p_status":"WAYBACK","us_key":null,"us_name":null,"us_username":null,"event_start":"1355443200","event_key":"14","event_name":"LD25"},"source_url":"2013\/03\/05\/my-first-multiplayer-online-demo\/","text":"<h1><\/h1>\n<h1><del><a href=\"http:\/\/174.88.189.127:8000\">&gt;&gt; Play on my home server &gt;&gt;<\/a><\/del><\/h1>\n<p><del><a href=\"http:\/\/174.88.189.127:8000\">&gt;&gt;Play on my home server&gt;&gt;<\/a><\/del><\/p>\n<p><a href=\"http:\/\/www.ludumdare.com\/compo\/2013\/03\/05\/my-first-multiplayer-online-demo\/screenshot-at-2013-03-05-092530\/\" rel=\"attachment wp-att-222250\"><img alt=\"Screenshot at 2013-03-05 09:25:30\" class=\"alignnone size-full wp-image-222250\" height=\"521\" sizes=\"(max-width: 527px) 100vw, 527px\" src=\"\/data\/posts\/2013\/03\/da2c3e4e194d30250110fd83ff57205b.png\" srcset=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2013\/03\/Screenshot-at-2013-03-05-092530-300x296.png 300w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2013\/03\/Screenshot-at-2013-03-05-092530.png 527w\" width=\"527\"\/><\/a><\/p>\n<p>\u00a0<\/p>\n<p>So I started making an online multiplayer thingy. How hard can it be? I asked myself.<\/p>\n<p>Well\u2026 PRETTY HARD! Making a game on a single computer has became pretty straightforward to me, but making a game on multiple computers is much more complicated, since I had to synchronize the characters, and make sure to remove and add characters when they connected or disconnected. I used js for both client and server (node.js) and used sockets.io to do the realtime communication. My code is certainly a huge mess! I had a chunk of code for the client, a chunk of code for the server, and a chunk of code that both had access to, not speaking about libraries.<\/p>\n<p>Anyways, it\u2019s a beginning, and I\u2019d like to see some of you made try it, to make sure the port forwarding and everything is correct. The link will be valid until I will shutdown the computer or my IP adress changes.<\/p>\n<p><del><a href=\"http:\/\/174.88.189.127:8000\">&gt;&gt;Play on my home server&gt;&gt;<\/a><\/del><\/p>\n<p>The link will be down<\/p>\n<p>\u00a0<\/p>","time":"March 5th, 2013 7:42 am","title":"My first multiplayer online demo!","title_was_empty":false}