{"author_name":"yangamedev","cat":"MiniLD","comments":[],"epoch":1374542220,"likes":2,"metadata":{"p_key":"42343","p_author":"yangamedev","p_authorkey":"20928","p_urlkey":"77967","p_title":"Day 0: Revving the Engine","p_cat":"MiniLD","p_event":"LD26","p_time":"1374542220","p_likes":"2","p_comments":"0","p_status":"UPD5","us_key":"20928","us_name":"yangamedev","us_username":"yangamedev","event_start":"1366934400","event_key":"16","event_name":"LD26"},"text":"<p>Great seeing all the activity! To fully enjoy this post, open this in a new tab so we can enjoy it together. It&#8217;s time for a premature victory lap. Volume warning!<\/p>\n <p><a href=\"http:\/\/www.youtube.com\/watch?v=GcTStCOKXGI#t=27s\">http:\/\/www.youtube.com\/watch?v=GcTStCOKXGI#t=27s<\/a><\/p>\n <p>While we sort out what kind of game we want to make, I&#8217;m free to explore the tech before I&#8217;m crushed by the weight of demands. RTS is terrific for multiplayer re: input, you&#8217;re sending commands instead of keyboard input. And not to mention\u00a0<strong>no collision<\/strong> gargle. So I&#8217;d be remiss if I didn&#8217;t take a shot.<\/p>\n <p><span style=\"font-size: 13px;line-height: 19px\">I gambled<\/span><span style=\"font-size: 13px;line-height: 19px\">\u00a0on Player.IO as I&#8217;m not into hosting a Haxe remoting server and I figure Flash-only-networking for this compo is ok. Yesterday I didn&#8217;t know if I could get Player.IO working in Haxe. Today I know!<\/span><\/p>\n <p><a style=\"font-size: 13px;line-height: 19px\" href=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2013\/07\/shipit.png\"><img class=\"alignnone size-medium wp-image-262918\" alt=\"shipit\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2013\/07\/shipit-300x168.png\" width=\"300\" height=\"168\" srcset=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2013\/07\/shipit-300x168.png 300w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2013\/07\/shipit-550x309.png 550w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n <p>&nbsp;<\/p>\n <p><span style=\"font-size: 13px;line-height: 19px\">I long for the day when I&#8217;m free to send bullet data across the network every 16 milliseconds. But alas, I&#8217;ll spend some time bringing down the 130+kb\/s transfer. \u00a0<\/span><\/p>\n <p><span style=\"font-size: 13px;line-height: 19px\">BTW\u00a0<\/span>The bullets on the other clients are stalled because they don&#8217;t know they&#8217;ve been told to fire &#8212; I can send prefabs across the network but not commands like &#8220;go here, this fast&#8221; just yet. RPC&#8217;s to the rescue!<\/p>\n <p>Finally, here&#8217;s the game code so far, all in one file: <strong>CTF.hx:<\/strong>\u00a0<a href=\"http:\/\/pastebin.com\/MD6fdZGe\">http:\/\/pastebin.com\/MD6fdZGe<\/a><\/p>\n <p><span style=\"font-size: 13px;line-height: 19px\"><strong>CTF<\/strong> is the class that defines and spawns prefabs like with Unity. It does this by creating <strong>Actors<\/strong> (GameObjects), and adding shared <strong>Behaviours<\/strong> between them. Once defined, we&#8217;re free to spawn them however we like, mixing and matching behaviours as needed for gameplay.<\/span><\/p>\n <p>You can see it inherits the\u00a0<strong>Engine<\/strong>\u00a0class,\u00a0I don&#8217;t want to even call it an\u00a0<strong>engine<\/strong>, as that implies a huge turkey that you have to stuff in your mouth all at once (UDK, Unity, etc.). With a\u00a0<strong>framework<\/strong>, I&#8217;m free to nibble or scarf as I choose. Having this class makes creating new games all the quicker because the boilerplate is solved up front, but can be modified per game with overrides to add new components or just replaced completely, see?:\u00a0<a href=\"http:\/\/pastebin.com\/Wz3eh23f\">http:\/\/pastebin.com\/Wz3eh23f<\/a>.<\/p>\n <p><span style=\"font-size: 13px;line-height: 19px\">My strategy this compo: keep the tech clean, funnel in art, stumble over game ideas by accident, be able to punch out a game in 60 seconds <del>&#8230;<\/del><\/span><del><del style=\"font-size: 13px;line-height: 19px\">if&#8230;<\/del><del style=\"font-size: 13px;line-height: 19px\">\u00a0<\/del><\/del><span style=\"font-size: 13px;line-height: 19px\"><em>when<\/em> the inevitable Swordfish-hacking-scenario erupts. [IMAGE CENSORED]<\/span><\/p>\n <p>Stay ready people!<\/p>","time":"July 22nd, 2013 8:17 pm","title":"Day 0: Revving the Engine"}