Day 0: Revving the Engine
Great seeing all the activity! To fully enjoy this post, open this in a new tab so we can enjoy it together. It’s time for a premature victory lap. Volume warning!
http://www.youtube.com/watch?v=GcTStCOKXGI#t=27s
While we sort out what kind of game we want to make, I’m free to explore the tech before I’m crushed by the weight of demands. RTS is terrific for multiplayer re: input, you’re sending commands instead of keyboard input. And not to mention no collision gargle. So I’d be remiss if I didn’t take a shot.
I gambled on Player.IO as I’m not into hosting a Haxe remoting server and I figure Flash-only-networking for this compo is ok. Yesterday I didn’t know if I could get Player.IO working in Haxe. Today I know!
I long for the day when I’m free to send bullet data across the network every 16 milliseconds. But alas, I’ll spend some time bringing down the 130+kb/s transfer.
BTW The bullets on the other clients are stalled because they don’t know they’ve been told to fire — I can send prefabs across the network but not commands like “go here, this fast” just yet. RPC’s to the rescue!
Finally, here’s the game code so far, all in one file: CTF.hx: http://pastebin.com/MD6fdZGe
CTF is the class that defines and spawns prefabs like with Unity. It does this by creating Actors (GameObjects), and adding shared Behaviours between them. Once defined, we’re free to spawn them however we like, mixing and matching behaviours as needed for gameplay.
You can see it inherits the Engine class, I don’t want to even call it an engine, as that implies a huge turkey that you have to stuff in your mouth all at once (UDK, Unity, etc.). With a framework, I’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?: http://pastebin.com/Wz3eh23f.
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 …if… when the inevitable Swordfish-hacking-scenario erupts. [IMAGE CENSORED]
Stay ready people!
































