They Love You

ยท 526 words ยท 3 minute read
They Love You

They Love You is a small top-down arcade game. It was made by Paul Annesley, Zac Duff and myself for TIGJam Australia 2012. This new version re-designs several elements and makes it web-friendly (again).

If you’re in front of a keyboard, GIVE IT A PLAY!

Reviving the game ๐Ÿ”—

I was recently repairing a homemade arcade for a cafe in Gothenburg. As I was getting high off the soldering fumes, I pondered: Would be possible to port our 15yr game to this machine?

They Love You was originally written in an arcane language called UnityScript. Some years ago, Zac and I made a C# version but this was before Unity did WebGL exports.

Updating the game to a new Unity version wouldn’t be hard. The challenge was going to be in the re-design. The original game used 8-directional input, an ACTION and, a RESET button. However, this arcade machine ONLY had a directional stick.

The re-design ๐Ÿ”—

The original version gave the player a finite number of freeze-bombs per level. Dropping the freeze-bomb at the right moment was key, or you had to reset. Several levels were pure resource puzzles.

Here you can play the game with the original rules

For the re-design I removed all the puzzle levels, made the bombs an infinite resource and added a bomb-charge that’s activated by stopping.

It works pretty well. Finding the right place to stop adds a different strategy element.

Same level, same route. Left: the original, where the bomb drops on SPACE. Right: the re-design.
The auto reset got more complicated, and for this I had to get AI assistance. My initial idea was to use an 8-directional raycast to test for collisions. But it wasn't reliable; instead, a "physics test drive" gave the best result.

It kinda works like this:

  • Every 0.1 s before drawing the frame, take control of the playercontroller and steer it in 8 direction till it’s two player sizes away from its current position.
  • As soon as 1 test drive clears. Teleport the player back and draw the frame.
  • If we can’t get out, use the best attempt and try to turn out.
  • Still stuck? Start the stuck countdown

Again, this all happens before the frame renders, and it’s cheaper than I expected.

Pushing South West let the player escape! There is still time to survive!

Pushing South West let the player escape! There is still time to survive!

Sounds ๐Ÿ”—

The original had three sounds: music, bombs and a goal fanfare.

This version adds a lot more. I took this opportunity to get more familiar with noise and tone generation. Almost all the new additions have been built from those basic blocks. In addition I added more texture to the originals. The song also gets a wavy low-pass filter that opens and closes over 25 s.

What about the arcade machine? ๐Ÿ”—

Unfortunately, Unity does not build to linux ARM and the arcade runs a Raspberry Pi 4. If I wanted to make a fast native build I would first need to port the game to Godot. In the day of AI, this is very doable. But my good friend and owner of the arcade has a strict no AI policy. I respect that.

In the end I got a cool new web build, and The Love You is alive again.