More personal announcements

New job as a game programmer at West Coast Software LTD, doing top secret stuff :)
I am now also a proud member of the Dirty Casuals hobby gamedev group formed by my new colleagues and will occasionally be doing stuff for their/our horror game Calamity.

All personal projects that I have been working on before are suspended indefinitely and there won’t be any new releases, because… clear boundaries and such, however will be working on new smaller open source projects.

I will try to write more broad and general articles on development and design and will play a lot more games… and will maybe do game reviews ^_^. At least those are my plans regarding this blog thingy. There’s a really tiny chance I might try YouTube as well, but I know I’m too shy for that, plus, time constraints.

Featured edit screenshot

Winning Streak – or how to achieve epicness in just 3 days

Play: here

After 3 days of sleep deprived struggle to get on top of things and add as many features as possible we finally did it. The jam’s over and we submitted in the very last hour. Over 900 games entered the competition along with ours.

It is silly, funny, bizarre and extremely buggy game. It completely exceeded my expectations and at the same time we couldn’t add everything we wanted and at the moment it is this cool thing which is half made.

The game is called Winning Streak and is at gamejolt. You play as a football streaker who wants to get some action, he runs about and avoids being caught by the football players and can also perform “tricks” to score more points. The idea is that it is being watched from the cameras set for the TV broadcast of the game and there are two commentators who narrate his actions and make funny remarks. It’s not a completely original concept, it came from these two games: The Streaking Game and Streaker 2013.

There was 10 of us on the battle field:
Patrick Lacey was writing the commentator’s dialogues, and Logan Byers and Frankie Fiore voiced them. Fredrik Larsson, Marcin Mazurski and Danil Tabacari worked on the 3D art, while Twimper and Xylra did some of the 2D stuff. Jake Thorne and me were doing the coding. We all worked pretty well together, especially considering we met less than two weeks before jam.

We’re currently pushing it further and want to continue development.

Here’s a promo gif :)

PokerFaceDance

A gameplay screenshot from untitled tank game v0.0.3

Six weeks in the making (v0.0.3) …

I was supposed to release a version last week (I’m really sorry to those who’ve been awaiting it). Instead I’m releasing it today, and I promise I’ll try to release something every 2 weeks (1 week is way too short to achieve something of reasonable size given the amount of spare time I have).

Now lets get to the point – version 0.0.3. Unfortunately the web player won’t work anymore. I upgraded to Unity 4.6 beta version which is not yet officially supported, instead here are binaries downloads:

So, what has changed since the last release? Oh boy, where do I begin…

Bombs!

An animation of a bomb that explodes

We had exploding tanks last time, it was only logical to add even more explosions this release (and keep the trend in future until the game can’t possibly handle any more explosions). Bombs are great, they are physics controlled rigid bodies, which wobble around and eventually detonate and go BOOOM, causing massive amounts of damage to anything that’s close to them. Bombs can destroys tanks and other bricks, but what they are really good for is damaging bases. The reason why they are so great (especially in PvP) is because, once someone plots a bomb the other players will see it and try to push it away from its target, before it goes off, but the player who put it there is not going to be standing still either.

Power-ups & Items

the 5 power ups in line

Three  more power-ups and new graphics. From left to right the current power ups are:

  • Speed-boost – on pick-up doubles the tank speed
  • Bomb – Adds 3 bombs to the player’s item slot (which can later be dropped with the “use item” button)
  • Two types of shields – the good old blue shield which protects against a single bullet but last forever and a new yellow shield which blocks every bullet, but has expiration time. When a tank spawns it get a short duration yellow shield this is to prevent spawn camping and give players the chance to react to the spawn. The pickup grants more time.
  • Last but not least – the gear. Gears “heal” the player’s base when picked up, but since they are the only way to increase it’s health they turn out quite valuable, especially that’s the only resource at the moment. They are dropped every now and then from the sky and there is 1 in 4 chance that a normal crate (but not a [?] crate) will drop a gear. Later on, I’ll make gears even more useful, collecting a number of them (5 or 10) and not dying will grant an upgrade… but that’s for later.

Since the addition of bombs it is now possible for tanks to hold items (one of a type, but they can stack) and if it’s a player it will appear as an icon with a number in one of the 4 corners.

Bomb item icon in the lower left corner of the screen

Allies

Yey! Friends!!! Never gonna be lonely again. You can now spawn up to 2 AI controlled ally units using the “unit” button. They can do pretty much everything the enemies units can, except they are on your team and are just slightly smarter. You should use them with care though as they cost resource to spawn.

An ally unit surrounded by enemies

One thing interesting thing that’s worth mentioning is – since the allies are on your team the game does not end if you are unable to spawn as long as at least one ally unit is on the map. This could be a little frustrating as you have to rely on that unit to win… but there is always the “Pause Menu -> Retry” option.

Other mechanics

No grid, more physics. I completely removed the grid mechanics and made the movement completely free and physics based. As a consequence there is no more snapping to angles or positions which not only looks and feels more natural, but also requires more skillz (I find it more engaging this way :3). Another interesting side effect is that tanks can rotate and push other tanks by bumping into them.

Water collider fixed. The water used to be an invisible box with a square in the middle. Then things (especially crates) could fall on top of it and look as if they are floating in the air. That has been fixed – the water is no longer a true collider in the physics sense, and everything could fall into it. Tanks will refuse to fall, but not because they collide with something, instead their motor will “break” just as the tanks start entering an empty cell with water underneath. The resulting behavior is pretty much the same except for a two things:

  •  it is possible to fall into the water if forces other than the motor push you there (say gravity makes you fall from a height, or a tank pushes you), and that’s causing a few bugs at the moment, which should be fixed next time (you can get stuck)
  • The other more interesting thing is – if you push something that can be stepped on (e.g. a crate), into the water, you can make a bridge and use it to cross over to the other side, here’s a short animation that illustrates it:

A short animation illustrating the bridge mechanic

GUI

I spent a lot of time working on the game ui, using the new GUI system in Unity 4.6 beta (which is the reason I upgraded and consequently broke the web-player). Personally, I find the new GUI system the most intuitive and well design framework for game UI I have ever used. It has many features but here are the ones I find most relevant:

  • Keyboard/Joystick navigation – you can go to and click any button without having to use a mouse. Since my goal is to make a console-like game that can be played in Big Picture mode that’s a major plus that really saved me a lot of effort.
  • Fluid(-ish) layout – the GUI can be designed to scale and adjust according to the screen size, which makes supporting different resolutions, aspect ratios and what not so much easier for me
  • Graphics design and animation – so much easier with the new GUI. And who doesn’t like animated windows and dialog boxes :)

In short summary, I remade the old GUI stuff (main menu and win/lose dialogs) and added a level selection screen and a pause menu (which, imagine that, pauses the game).

While on the subject of better usability – I realized that it very easy to get killed, simply because enemy tanks and bullets are somewhat hard to notice and keep track of, when they should really stand out more because they signify danger. So now tanks now have team circles which apart from indicating their team allegiance also improve the visual size and contrast of each tank. Bullets are also slightly larger and brighter.

Aesthetics

First and foremost sound effects – loads of them. Most actions and interactions produce sound effects which make the game sound interesting and cartoony. Although that’s not a purely aesthetic change as sound is a very powerful feedback tool (back to the subject of usability :D).

I also added two more audio tracks. All the game music so far has been generated with  cgMusic – a ingenious tool by Maciej Biedrzycki. I haven’t given it the proper credits in the game yet, so I should mention it here, at least :)

And one last point, I optimized the level rendering by combining all similar static meshes into a bigger one (kudos to Alex for this script). This in turn sped up the dynamic shadow rendering, which make the game look so much nicer, so shadows are now on by default. One other optimization I could do (later on, when the time comes) is to combine all textures into a single texture atlas and render all blocks with a single material as described here.

That is it for now.

Late Update (v0.0.2)

v0.0.2 is out you can play it here:

Play button image

I have not posted anything in over a week, so to avoid falling back any further here is a historically ordered summary of the progress since the last post.

Meet the Weaggles

First and foremost we have the weaggles now – small purple creatures that pilot the tanks and love destroying things. A name born by to unmatched creativity or simply lack of imagination (…cuz they have no arms, they can only wiggle).

A sketch and an in-game screenshot of the weaggle character

Left – a weaggle design sketch (pro art skillz),  Right – a 3D weaggle riding a tank in-game

Lights and Shadows

The next modification was rather minor, but made a huge impact. Making the light brighter changed the gloomy look of the game into a full of color bright and happy toon (which is what we want :)). Dynamic shadows contribute even further, however they come with a big performance hit (my rendering isn’t exceptionally optimal).screenshots of the game with low light, brighter light and shadows enablesOne thing that’s worth mentioning is the color ramp. There is a rule in art/color theory that states shadows are blue… so our ambient light is not the default unity gray, but rather dark blue. Likewise our sun (directional light) is not white, but soft yellow.Unity ambient light and directional light color settings

Spawn Mechanics

Kudos to Yani Genev for helping out on this. The original spawn mechanic was based on an abstract resource that was hidden somewhere, the player had 3 resource points (which are equivalent to 3 lives) and the enemy tanks had 20. If you broke the enemy bases, before the spawn resources were depleted you would be able to achieve victory (which was my way of making the bases an alternative target). The system worked, but it wasn’t as elegant as the one Yani suggested i.e. removing the abstract resource and making spawners pay with their hit points. The reason the new system is better is simple – there are less numbers for the players to keep track of. But there is more, destroying an enemy base or even just damaging it, has a more direct impact on the game (the more damage the less tanks). On the other hand having your base shot at isn’t as punishing – it used to take only 1 hit (and you lose all of your lives), now it drains your lives gradually.

The player base with its hp

Wiser AI

Now that they have someone controlling them it was expected of enemy tanks to become smarter. The AI now targets both the player’s tank and his/her base (as opposed to moving and shooting randomly). See above screenshot :)

Special Effects

EXLOSIONS and brick shattering all over the place, destroying things is now even more fun. When a tank is destroyed it explodes and bricks shatter creating physical particles. Here’s a screenshot showcasing both effects:An explosion and brick shards

What’s in that box?

…who knows, maybe random goodies…

Here’s a quick status update.

My quick and dirty physics implementation has been replaced by the Unity Physics Engine. Everything is now physical; tanks can push other tanks or crates, climb up slopes and fall down in holes. On top of that movement is still grid based (which was actually the hard part).

I added a new kind of crate – the [?] Crate that drops a random power-ups when broken. The selection of power-ups isn’t that great at the moment (only 2), but it should grow bigger by the end of the week. Here’s a screenshot:

Powerup Screenshot

End of the week report.

Alright, it’s Sunday, so lets wrap things up.

Since Thursday…

  • I’ve added background music and 2 sound effects
  • Worked on general accessibility and minor irritating bugs
  • Added a main menu and game over menus
  • Added a second test level
  • Reorganized the project a couple of times

Generally weekends are not a good time for me, so that’s a reasonably good progress considering. I am not happy with all the hacks and cheats I am allowing myself to put in the code. I’m not used to this methodology at all, but it’s all for the sake of efficiency, we’ll fix that tomorrow :)

Anyways, here’s end result:

Play button image

Day 4 – making things pretty… er

Today was mostly dedicated to visuals. I started the day with 3 new block types:

  • ground/grass – which replaced the previous giant ground box, and allowed for making holes
  • water – so that the holes don’t look so awkward (its an impassible indestructible block, which allows for bullets to fly trough)
  • crates – for now they just take two hits, jiggle a bit and get destroyed (a little bit like bricks), but I have huge plans for them

Then I decided to add some texture, because plain colors were starting to look boring. I also meddled with Unity animations and finally got the hang of them (I think). Minor game-play tweaks, minor setting adjustments here and there, but nothing really significant on the functional side.