Dream and Doldrums

“…there is no way that writers can be tamed and rendered civilized. Or even cured. In a household with more than one person, of which one is a writer, the only solution known to science is to provide the patient with an isolation room, where he can endure the acute stages in private, and where food can be poked in to him with a stick. Because, if you disturb the patient at such times, he may break into tears or become violent. Or he may not hear you at all… and, if you shake him at this stage, he bites…” – Robert Heinlein

These days, I find myself short on energy. It’s hard to concentrate on programming when my office is in shambles and there is no shortage of housework to be done: Painting, decorating, yard work, hauling off lots of junk left – some of it mine, but the majority belonging to my former house sitters and their extended family – all of it needs to go!

Despite so much to do I find I have little time or energy to do much of anything after a long day of work… Mostly I just sit lay about and watch videos until I fall sleep.

When I sleep, I dream. My unsatiated creativity gives way to restless nights of dreams, urging me to return to my unfinished work. Somehow, distractions always seem to overtake me, and before I know it, a whole day is wasted with nothing to show for it but writers block.

In other news, my code-signing certificate has been renewed despite having a few new hoops to have to jump through.

I need to find inspiration, and I need to organize my office into something conducive for productive work.

The Fourth Level

As mentioned in a previous post, Level 4 of the GPC was not a lesson, but rather a series of challenges meant to reinforce what was taught in Level’s 2 and 3. This time, I elected to create a new game rather than modify an existing one.

I settled on a top down shooter/adventure game and added features and flourishes as I went along. I used my earlier conceived true grid movement code, but this time, I used a switch statement instead of a series of if statements (or at least fewer of them):

switch (keyboard_key)
  case vk_left:
  case ord("A"):
     if moving=0 {
 case vk_right:
 case ord("D"):
    if moving=0 {
 case vk_up:
 case ord("W"):
    if moving=0 {
 case vk_down:
 case ord("S"):
    if moving=0 {

While trying to figure out line of sight, I came a new function:


That was my first time using the collision_line, which I don’t think is covered at all in the GPC, though it might be included in his how-to’s somewhere…I came across it after watching a tutorial video by “GM Wolf” on YouTube:

This would have solved a lot of issues for me…for instance, in a previous project, I had an idea to create a trap comprised of two moving blocks which collided into and bounced off of each other. While everything worked fine, it would occasionally cause the block to get stuck in a wall. This happened because it’s movement caused it to overlap before it detected the collision, thereby getting stuck inside the wall, unable to go anywhere.

I solved this before using the place_meeting function, but was never introduced to the End Step Event, which  would have been the right way to do it. Nevertheless, I can think of other uses for collision_line and am glad I learned of it!

All in all, I spent about 2 days (most of the weekend) working on this little mini-game, and here are some of the features I included:

  • Destructible walls that advance in damage by manipulating the image_index
  • Enemies that can navigate mazes (using John Janeka’s code from Level 12)
  • Line of Sight for enemies with projectiles
  • Health, ammunition and keys global variables that persistent between rooms
  • Lock and key mechanism
  • A switch that reveals the exit when touched
  • Randomized muzzle flare and smoke when firing bullets
  • Randomized impact splatters when an enemy is hit
  • Different sounds for each impact
  • Randomized health power up sprites to add variety using a single object
  • Exits that allow you to advance to the next room
  • Capped health at 100%

What I not did include were:

  • Fail condition/game over when you run out of hitpoints
  • Start screen
  • Game Over screen

All in all, it’s a neat little game though unfinished, and good practice for more serious projects to come!

GPC Level 3 Revisited


With my files recovered, I’m free to concentrate on getting back to my second run through the GPC. I’m back to Level 3, and bits and pieces of the GML syntax are coming back to me.

For instance, when calculating variables, the course suggests something like this:

hitpoints = hitpoints + 1

This works of course, but he also suggests that hitpoints = +1 does not work, which is true, however, if you reverse that (e.g. hitpoints +=1), it does the same thing with fewer characters to type. A small, but useful time saver.


A Hamburger That Fires Bananas (Improved)

In GPC 3-03-A, he introduces a function that randomizes an integer:


This allows you use a random number generator (RNG) to decide the outcome of a particular variable within a specified range (i.e. 0 to 100 in the code above). This is used to manipulate the direction that a hamburger fires bananas, and the speed at which they are fired.

I took this a step further by adding the following step event (pun very much intended) to obj_banana:


This (in my most humble opinion) makes the bananas far more interesting/exciting to watch as it causes them to spin through the air at a speed consistent with their velocity – i.e. a fast traveling banana rotates faster than a slower moving banana.

Try it yourself!

Aside: I couldn’t help but giggle at the silliness of this lesson – you wouldn’t think a burger that shoots bananas would be so amusing but you’d be wrong! Very entertaining stuff 🙂

Switching Things Up

In Level 3, “Challenge 2 – Random Generation,” the student is required to write a series of if statements to randomly move the player character in one of 4 orthogonal directions.

In my first time around, I recall touching on Switch statements, which can be a good way to handle this very scenario. Here’s how that would look:

Instead of this:


if num=1 {

if num=2 {

if num=3 {

if num=4 {

You could do something like this:

switch (irandom_range(1,4)) { 
 case 1: direction=90; 
 case 2: direction=0; 
 case 3: direction=270; 
 case 4: direction=180;

This seems like a far more efficient and cleaner way to handle multiple (more than 3+) consecutive if statements, but is cheating at this stage as Switch isn’t covered in the GPC until much, much later*…

So why mention it now? Because I want to get in the habit of making my code clean and efficient.

And with that, on to Level 4!

*I can’t quite recall exactly where this was introduced, but I seem to recall where that was… For all I know, it may not have even been in the GPC, but if I do come across it later, I will update this post with where you can find it.


“Use a superior development system than your target to develop your game.”
– John Romero, Early Id Software Programming Principles

One of the nice things about being employed again was the ability to afford a new computer, something I’ve put off as long as I could.

About 5 years ago, I’d purchased a very high-end mobile workstation to take with me overseas so I’d have something to keep myself entertained on the 26+ hour flights to and from the US:

  • Intel Core i7 3630QM @3.2GHz
  • 32GB of DDR3 RAM @ 1600MHz
  • Nvidia GTX 675MX 4GB of VRAM
  • 120GB SSD Primary Drive
  • 1TB Storage Drive

When I came back home, I found it more convenient to develop on my aging desktop machine with ideas of upgrading it when possible:

  • Intel Core i7 2600K @ 3.4GHz
  • 8GB DDR3 @ 1600MHz
  • AMD HD 5770s 2GB VRAM (x2 in Crossfire)
  • 120 GB SSD Primary Drive
  • 80GB SSD Auxiliary Drive
  • 320GB Storage Drive
  • 1 TB Secondary Storage Drive

A couple of months ago, I built myself a new PC that should last me a good 3-4+ years with minor upgrades:

  • Intel Core i7 7700K @ 4.2 GHz
  • 16GB DDR4 @ 3200MHz
  • Nvidia GTX 1080 8GB of VRAM
  • 240GB SSD Primary Drive
  • 2TB Storage Drive

I’ve been very pleased with it so far, and have been slowly reinstalling my development tools. The next step was to copy down my data so that I could pick up where I left off. To facility this, I purchased an inexpensive but well-made USB 3.0 SATA Hard Drive Docking Station.

What was intended to be a simple task, however, turned out to be anything but…The data I needed was spread across 4 different drives, one of which was BitLocker encrypted. The machine itself belonged to me originally, was lent a friend who in-turn savaged it, replacing several of the drives and the OS. On the actual computer, I’d solved this using Windows Libraries, but didn’t have that luxury when reading the raw drives.

So what did I do? I incorporated a handy application called SpaceSniffer to help me work out [visually] where the files I was looking for were.

This application is very similar to WinDirStat, but performs significantly faster. I still have a few more applications to [re]install, but I can get that done tomorrow at some point as it is now 4:13am, and I should think about getting to bed as I have to be up in 3 hours.

Here I Go Again on My Own

It’s been over 6 months since my last post. I’ve settled into my new role, and as the year winds to a close, I’ve been getting the itch to return to game making. Unfortunately, circumstances are such that I’ll be going it alone as Eric has retired from V-Toad Games.

Game programming and design is difficult, frustrating and greatly rewarding… but it’s not for everyone. What I learned from last go at it was that programming is not painting by the numbers. Being able to complete an exercise no more makes you a programmer than following a recipe makes you a cordon bleu chef. There are core skills you have to master, and to do that, you have to be passionate enough to stick with it.

Eric really tried – I sincerely believe that. Nevertheless, I know all too well that bills must be paid, and can’t blame him for not having the energy to go home and learn something that he just wan’t passionate about.

So why is being a solo project a problem for me? Many game developers, past and present, were/are one-man shows. I suppose it’s because I like feedback; I like to share what I’ve learned and bounce ideas off of other people because this helps me to reinforce and retain that knowledge.

As a consequence of my hiatus, I’ve all but lost everything I learned about GML, and will need to go through the lessons again to get back in the saddle. This time around should be much quicker, albeit lonelier.

“…Here I go again on my own…” – David Coverdale, Whitesnake

Keeping the Lights On

A couple of weeks ago, I found a new job through a good of friend of mine. It’s a technical role, pretty much what I was looking for…The pay could be better but it’s good enough for now.

They have a lot of challenges, but none are particularly difficult to resolve. It’s just going to take time and money, and the business has to decide to move forward.

Needless to say, I’ve got about 2-3 months worth of 60+ hour weeks ahead of my friend and I to right the course. Once things are stable enough to be able to work only 40 hours a week, I can return to game development. Until then, I’ll just have to pick at it when time and energy permits…

Get on with it!!!

Conflicting Priorities

I spent most of last week preparing for a face-to-face interview, pouring over the job description and reviewing every detail so as to be prepared for whatever the interviewer might bring up – this meant putting just about everything else on hold and using every waking moment to study.

The interviewers seemed pleased with me, and I was disappointed to learn that the job descriptions were erroneous; most of what were listed as, “required skills” weren’t required at all! What a waste…

Earlier this week, I received a call back from the recruiter explaining that they elected to go with someone else. In short, a week wasted and nothing to show for it but a heaping helping of disappointment…


After about a day of laying about and feeling sorry for myself, I decided that what I really needed was to focus on something productive… the game I’d set aside to study up for the interview was sitting there, 90% done, waiting for me to cross the last mile…

“If you know where you’re going, you can get there very fast.” – Grandmaster Henrik Danielsen

The most time consuming part of making any game is getting a clear picture of what you want to do. This is true for every component, whether it’s creating artwork, making sound effects, writing music or programming.

Of these, artwork is probably the most difficult (for me) and time consuming…  Often times, I may not have a clear mental picture of what I want to do, and haven’t developed a good system for working through ambiguity yet – but once I do break through, things move very quickly!

I’ve accomplished more in two days than I have in the last 2 months, and the end is in sight! All that’s left is just putting in the time I need to spend to get through the last few pieces, a few days more to test, then on to distribution!

With luck, I’ll have a successful YouTube marketing campaign and will sell enough copies to support myself until I finish Beaster’s Dungeon.

Pizza and Diet Coke

You Need Enough Pizza and Diet Coke…

It’s been about three and half weeks since my last update, so I wanted to take a moment and talk about where I am, and where I’d like to be.

As with anything, development is tied to real-world constraints. While it is true that some barriers are self-imposed, others are bound to either personal limitations (your own capacity to learn and develop new skills) or external limitations, mostly financial in nature.

John Carmack once said, “In the information age, the barriers [to entry into programming] just aren’t there. The barriers are self imposed. If you want to set off and go develop some grand new thing, you don’t need millions of dollars of capitalization. You need enough pizza and Diet Coke to stick in your refrigerator, a cheap PC to work on, and the dedication to go through with it. We slept on floors. We waded across rivers.

The sentiment is noble enough; I concede that you don’t need millions of dollars to make something great, just the will the see it through – even if that means sleeping on the floor or wading across rivers…but that isn’t the whole truth, is it?

Who pays for the floor you sleep on? Where do you get the money for your pizza and diet coke? Who pays for the electricity to power your cheap PC? Suppose something breaks – who pays for the replacement?

…and where do you get the cheap PC anyway? Not everyone is morally ambiguous enough to abscond with their employer’s computers to a rented lake house, away from prying eyes to work on their own projects in secret. Lakes flood, and when they do, you may find yourself wading through deep water indeed (and a lawsuit if you aren’t careful).

There is no honor among thieves. That fact is self-evident, but if you aren’t convinced, consider this: half of Id Software’s founding members were fired or forced to resign within the span of 5 years… but that’s all ancient history now.

…I would venture to say that the outlook of a teenager with no student debt or mortgage is very different. It’s a lot easier to just pack and move when all of your belongings fit into the boot of a brown MGB (which is to say, not much).

Then again, I never did like Diet Coke.

Paging Mr. Finagle Sod-Murphy…

About 2.5 weeks ago, we had a severe thunderstorm, losing power for a short while as well as about 4 hours of unsaved work. A few days later, I heard a loud pop near my feet, followed by the smell of burning plastic.

I quickly disconnected the power strip and the issue became immediately clear – the power cable connecting to my PC was to warm to the touch, and 4″ segment in the middle (presumably a short) was fused into a straight, blackened, stiff and brittle mass. This was probably the cheapest (and easiest to replace) component – it could have been the power supply, or worse yet, the motherboard!

A few days later, my dish washer stopped draining and needed to be repaired – I did so and threw out my back in the process – standing and sitting were difficult and painful for about a week or so.

Not long after that, my wife’s vehicle began stalling after she took it in to get the oil changed. I took it in the following day, and stuck around to talk to the shop owners as I had been coming there for about 12 years and had a good relationship with them. He asked about my work situation, and offered to refer me to a guy he knew at a large, local IT provider – more on that later…

…We Gotsta Get Paid!

Last month, over the course of a day or so, I made a small game for a friend. I wanted to explore making a game from start to finish just for the practice of it. It was just the right mixture of cheese, fun and juvenile humor to potentially make it a YouTube Let’s Play sensation.

The game had a start screen, a non-numerical score and a game over screen. I figured, if I could add a few more levels, enemies and secrets, I might be able to sell it for $0.99 on GameJolt. I have a list of hundreds of YouTube Let’s Players I could give a free copy to with the request that they make a video for it. The press might be sufficient to get enough people to buy a copy to keep me a float for another 3-6 months while I work on Beaster’s Dungeon.

While I managed to overcome several programming issues, and add far more so sophisticated features than I initially expected to, what eventually sent my progress grinding to a halt was my own limitations as an artist – my imagination was well beyond my skill and this stifled me.

For the last 3.5 weeks, I’ve been about 10% from finishing the game to my satisfaction, a loss of time I simply could not afford to bare. With bills looming overheard, and my savings coming dangerously close to exhaustion, coupled with the few meaty bitch slaps from Mr. Murphy I described above, it became apparent to me that I can’t weather much more of this. I needed a plan B.

Quit Your Day Job…

In order to quit your day job, you have to have one to begin with…If I go on to finish that last 10% and publish my game and it fails commercially, I’d still have a job to fall back on and bills would continue to get paid.

On the opposite end of the spectrum, the game might be a runaway hit, and I could use the money to put a substantial dent in my mortgage and/or student loans, bringing me one step closer to financial independence.

In either case, I couldn’t wait to see which way the pendulum swung as bills will not wait…

So I got in contact with the guy my car dealer referred me to, and within a week, I was on the phone with a recruiter. Following that call, I was invited to interview in person, which takes place next week. If successful, I could working full-time again as little as 2 weeks later. The pay is below average for the kind of work it is, the hours would be unusually long and there would be no overtime.

The last time I worked was almost a year ago, and so at this point, I’d rather take a step down in rank and pay to get back into a more technical role (the last two jobs I had leaned more toward general management). I could learn a lot, and potentially get a better job somewhere else.

This all a moot point unless I’m actually made an offer, which is not a foregone conclusion. Between now and my face-to-face, I’ve got to spend my time preparing for the interview and boning up on technologies I haven’t worked with in 5 years or more.

Wish me luck!


Development Progress Update, Week 4

Busy != Productivity…*

This has been a busy, though not an especially fruitful week in terms of development progress. I got side tracked trying to learn a couple of new techniques I’d need (shaders and surfaces) and I’m continuing to troubleshoot code signing certificate issues…

For the prior, I just stumbled on the fix this afternoon while trying to make a pause function – more on that on a separate post when I have the time/motivation to write it.

On the later, much of what I have encountered keeps coming back to the certificate signing request (.CSR) and private key export (.PFX/.PVK). I’ve been using OpenSSL, which my provider doesn’t seem to support, instead preferring that I use Window’s certificate snap-in.

This would be fine if I were on a domain, but I’m not…Ergo, there’s no certificate enrollment policy as there is no domain controller or active directory service. I had a spare PC sitting around (my wife’s old gaming desktop which had since been replaced by a much nicer gaming laptop), so I decided to plug it in and see if it still ran.

When I did this, I was greeted with a long series of short beeps (power failure) followed by repeated attempts to start itself only to immediately shutdown again. After digging around in the garage, I found a craptastic 500W PSU to replace the relatively nice 700W OCZ Stealth Steam modular PSU that was in it…

This allowed it to boot, and a cursory look around the machine seemed to indicate that it was good working condition otherwise.

Next Steps

Once I get the “server” up and running, setup all the required services and so forth, I should be able to sort out the SSL issue… I feel as though I’m spending way too much time on this, but without it, I’m not only out $140 on something I can’t use, but I’m also unable to distribute “trustworthy” applications.


*The prefix “!” means NOT (i.e. ‘!=’ is NOT Equal to)

Development Progress Update, Week 3


Game prototype is 67% complete!

I finally received verification on my code-signing certificate. While I was able to successfully sign an .exe file using the cert, I’m still getting a SmartScreen warning when running the file.

Further research suggests that I might need an Extended Verification (EV) code signing certificate (which isn’t available from my Certificate Authority (CA)), and/or publish the application on the Windows App Store.

I’ve received assurances from my CA that the certificate I purchased from them should work fine, and that the problem was with my Certificate Signing Request (CSR). Having rekeyed the request at least twice already, I feel sure that I’ve done everything correctly.

The only anomaly at this point is that Publisher is being displayed as the entire Subject string (i.e. state, city, country, organization etc.) rather than just the common name, “V-Toad Games.”

This is a big enough issue to warrant my full attention as a SmartScreen warning could deter potential players from running my games.