The Last E8 Postmortem
Last weekend was the triannual Ludumdare game jam. If you don’t know what that is, it’s a masochistic ritual where you voluntarily force yourself to create a new game over a weekend and publish it for all to see.
Akiko pressured me into it as she wanted to Blender up some things for practice. I acquiesced to be her programming partner if we could come up with something to match the theme.
The LD theme announced was “Running out of power”. This was 10 AM our time.
The Idea Phase
We agreed to think up some ideas and exchange them at lunch. So in a Kyoto thai place Akiko showed me her idea:
Hmm. I don’t know what to say about that except, I like it. Something about being an employee who has to manage his drug use to stay productive. (for the record, RTsoft does not endorse the use of illegal narcotics. I do however, endorse the world’s favorite stimulant, coffee.)
As for myself, I didn’t have much except a vague concept of celebrating the Tesla Model 3’s release with a game based on it somehow. 3D flying game?
So we starting working on Akiko’s idea – resolutely requiring that we completely nail down the game mechanics in photoshop or on paper before even starting.
I figured there were two possible ways to take this:
- Lemonade Stand style: Strategic choices made, some kind of turns system. Mostly buttons and clicks.
- Cookie Clicker style: Also buttons and clicks, no real strategy but slowly building up your empire. (I’m playing as I write this article. Whee!)
I was appalled to find Akiko wasn’t aware of either game. You think you know somebody.
I decided “Cocaine Clicker” was the way to go simply because I liked the name and according to google it wasn’t taken.
Side note: I always google names because if I don’t, people will think I copied something else. I sort of miss pre-internet days where you could just be original without caring if people thought you weren’t original.
I did some photoshop mockups of the buttons and tried to map out some gameplay.
Unfortunately “Running out of power” didn’t really match what I’d designed; the concept of running an office, buying more employees and managing their illicit substance needs just didn’t work with it.
A fundamental problem is you never run out of anything in a classical clicker game, you only gain.
I did like her idea of a split screen, half being the office, and half being the drug farm/factory. Sort of two games in one with a symbiotic relationship between them required for survival.
As I mulled this over I fired up my game engine for the first time. I decided to use UE4 as that’s what I’ve had in my head in recently for some VR tests. (If you have a Vive, please try my tech demo later!)
Lo and behold, UE4 was cursed. I had setup a basic C++ UE4 project but was plagued by crashes and bugs. I mean, I hadn’t even written any real code yet.
The worst of it was the silent errors. Sometimes something internally was broken that caused a setting to be grayed out that shouldn’t be. I feel like the only way to be safe is basically restart the editor after every C++ class is added or a blueprint is reparented. Slow.
Those issues are WORSE than a simple crash, because until it occurs to you to restart, your progress is entirely obstructed for unknown reasons. I thought I had done something wrong, when I hadn’t.
Knowing I probably had less than a day of total time to throw at this, I said screw it and used this jam as a chance to try out Unity 2017. (I’d used Unity 5 last year but forgot everything)
I have to admit, Unity is nice. The MS Visual Studio 2017 integration is fantastic these days. Zero crashes. Breakpoint debugging worked immediately with no hoops to hop. Goodbye forever, MonoDevelop.
I’m constantly switching back and forth between these two engines (plus my own homegrown one for 2D and simple 3D) so I’m going to pause for a second and show my current engine scorecard in this middleware battle royale.
Seth’s Unity VS UE4 scorecard:
Unreal Engine 4:
- Allows real C++ so the last twenty years of code doesn’t feel wasted
- Actually using that C++ causes editor glitches non-stop and longish compile times
- I think it’s faster overall and easier for me to replace the networking code with my own
- I don’t like the royalty scheme. Being legally required to calculate royalties for eternity (assuming your game makes anything) is awful
- Blueprints may seem ok at first, but they are actually the spawn of satan as soon as you need to do anything slightly tricky. Go ahead, write Vector3 vFinal = (vDir +vOffset).Normalize()*speed*dragMod); in BP, see what a mess that looks like. Now cut and paste it into a new entity and get forced to recreate and reconnect all the variables involved.
- Forced to choose between overly simplistic BP or slow compiling C++
- HTML5 support is questionable, doesn’t seem to be a priority. Huge file sizes, rendering problems
- Full source code. Makes this a good choice if you’re going to be implementing your own streaming landscape or enet networking.
- No C++. C# isn’t bad, but I miss my direct pointer manipulation and huge library of code I’ve written, so it means a lot of porting, or using plugins that are less portable.
- Compile times are a dream
- No crashes, was 100% stable (so far, anyway)
- Better 3D import options, it can handle .blend files directly
- Better audio import options too, unlike UE4 it can properly handle a simple .mp3 file
- Excellent HTML5 support – nearly a must for a public game jam, more on this later
- Month to month licensing isn’t cheap for the Pro version, but at least they don’t have their hooks on your game royalties for eternity. Free version isn’t bad either really
- No source code (well, not for peons like me, anyway)
So in the end, I’m thinking I’m around 5X faster when using Unity simply because of faster compiling and smarter import options. I guess I need to do a VR demo in Unity and test that side of things too though.
Screw it, let’s use Unity
In the end I told Akiko, look, I’m switching engines so how about I do a sort of simple 2D flying game as a refresher for me.
“Can I still make 3D models in blender?”
“Ok, I’m in. What will the game be like?”
“It will be like The Last V8 crossed with Space Taxi”
“Never heard of those”
The Last V8:
Using Unity’s auto collision
I remembered this trick from when I made Multiplayer Space Taxi a while ago, you can very easily add collision to a level simply from an image.
About HTML5 vs native with game jams
Because this is my main development machine, long gone are the days where I can run unsigned binaries from people I don’t know. I know, I hate that, but unless I setup a clean or virtual machine that’s just how it is.
Play our game
So finally, here is the game we made. True to its heritage, it’s extremely hard. Good luck!
Play the game in your desktop browser here
Unity project/source code here
(also, the LDJAM site link for it is here)