Thursday, 7 November 2019

A couple of shaders

Wow, it's been a long time since I put anything here. I haven't had much time for quality long-form articles but here's a couple of really simple shaders I recently did (Unreal Engine but the logic here should be applicable to anything really). Click on the titles for details.

Simple LOS shader

View post on imgur.com


Show silhouettes when a mesh is behind something

View post on imgur.com

Thursday, 1 June 2017

The player death cycle

Some time ago I wondered if the game mechanics in most of today's games have become standardized. Occasionally we find some innovation here and there but most games in the industry follow the same tropes, specifically when we're talking about failure.

I've recently started playing "Shadow of Mordor" (way overdue, I know) and upon my first death I was amazed at the elegant way in which it was handled in the overall game loop.

In most games there is a quite simplistic risk/reward mechanism that relies in player avatar death. In order to keep the player engaged there is a risk - failure leads to restarting a section of the game - which usually can be simplified as player death. The reward is progress and the feeling of accomplishment.

This is a classic mechanism for game design: you can see it on anything from RTSs, where you have to restart the mission, to platformers where you have to redo anything from a specific section, level or even the entire game (for more "old-school" titles) once all the lives run out. You can see this failure - go back - repeat concept in most games you can get your hands on.

Of course, there have been attempts at subverting this. "Wario Land 2" for instance, completely removes player death but still relies on the same formula of failure leading to repetition. It does this in extremely ingenious ways but the end result is still the same. The most notable level pattern being failure to clear a vertical platform section will make you fall and have to repeat parts of it, but not too much. This mechanic can also be seen in titles so disparate as mainstream Mario games and the Assassin's Creed series.

A good example of the Warioland II mechanics at play: being set on fire by an enemy will make you break the "flame" blocks and inevitably fall. The player will then need to climb up again.

So-called "open" or "sandbox" games have an easy cop-out of this mechanism. The non-linearity leads to more interesting approaches - enemies may not be there and force you to take a different approach. Bioshock handles player death and failure as a simple consequence, the player is recreated elsewhere, but the world remains as he left it. Yet some players have said this removes some of the challenge - after all, where lies the enjoyment of the game if failure has no consequence? The entire game experience becomes busywork.

Curiously, Roguelikes are an interesting subversion of all this. By some definitions of Roguelike, the player literally shouldn't have a chance at repeating a section he has just failed at. Failures are permanent and openly embraced. The fun is derived from the potential of doing better next time by taking better choices when faced with similar situations.

There's also other interesting approaches to player failure: "Life Goes On" uses it a mechanic. The remnants (corpses) and consequences of your failures are used to (sometimes literally) build a path towards success.

Coming back to "Shadow of Mordor", every time the player dies - that is, every time he fails - he isn't forced to repeat gameplay sections, he comes back, the world left as it was, but his failure will lead to consequences in the world, usually punishing. The enemy you fought against and failed, is now stronger. It's an ingenious concept: failure isn't rewarding yet isn't punishing in itself. Yet even his failure has changed the world in noticeable ways. Failure can just be a part of progress after all.

Sunday, 19 March 2017

My problem with most F2P games

I've been meaning to write this article for some time and I'm never happy with how it flows. I think it's time I just poured it out and maybe do some adjustments later.

I've seen a few people throw around that if you want a successful game (especially if it's online or for mobile) it should be Free to Play (or Freemium if you want). I think this is inherently true, but most people I've asked don't seem to understand what's going on to make this business model so prevalent for those two cases.

Lets define the success of a game. For most this could be some sort of formula that could relate profit with (for those of us that actually care) some amount of critical praise, player count and the desired impact on the target audience.

All of these goals more or less depend on making people want to play your game. So what's the easiest way to get people to play you game? Just make it free, now all you have to do is convince people to try it rather than the much harder process of getting them to actually put money into something. But wait, you say. I'm no longer making any money from people trying out my product. How am I supposed to make money out of it? There's thing thing called monetization and it's an entire discipline which could be (very horribly) summed up as finding a solution to the problem of having lots of players yet no money coming in.

For most companies this has an inherent tendency to become a really shady practice rather easily. You're luring people in with a premise (free game) and trying to make the game fun so they keep playing, yet not so fun so they actually feel comfortable not purchasing anything. So you're compromising the most important part of your game (the fun part) because you followed the F2P model. I'm not even going into the balance issues you'll have if your game is competitive. Soon you'll be designing your game in a way that will lure players into associating microtransactions with dopamine drips: the waiting games with instant gratification if you pay, the powerup slot machines that get you another roll for a few extra cents, the instant energy refill that lets you play for 20 more minutes today.

Note that I'm lumping convenience purchases like Path of Exile's extra slots as a compromise due to the fact that you will also have to consider convenience as a factor that affects the gameplay. Lumping content behind paywalls also falls into this category. The only alternative to this (that I'm aware of) is to sell purely aesthetics items.

In short, picking a F2P model for your game should be a carefully considered decision. Its main advantage is that it will net you a ton of players (very useful if you're going for a multiplayer title where player count is extremely important) but then you will have to shift your gameplay efforts into making sure some percentage of your player base is spending money.

And this is the part that scares me. You're shifting your design efforts to extracting as much money as possible from your fans. Usually some extremely low percentage of players that spend thousands of dollars on things like hats and slightly faster movement speeds. I could never get behind this practice as it feels intellectually dishonest and the best results seem to be appealing to basic human emotions like gambling and immediate gratification. You're making your product successful not by making a good game that people will purchase, but by luring as many people as possible into downloading it and then convincing some small percentage of players to spend as much money as possible.

Can you do F2P in a way that doesn't make me want to take several showers? Kind of (my moral compass is extremely sensitive). Both Path of Exile and Warframe seem to have found a balance where the F2P model helps keep player counts high, and the benefits for paying are designed for the most dedicated fans in such a way that it doesn't give them competitive advantages or make the game simply more enjoyable for them (game design is hard to quantify).

Wednesday, 18 November 2015

Low-poly water on UE4

Note: For some reason, the original videos disappeared from blogger and I've had to create new ones.


Here's how to achieve a cool retro-style water effect using UE4

First of all, we need a suitable plane. While Unreal comes with one we can use straight out of the box, I prefer having one that's just right for my purposes. Here's one I made using Blender.

The UV map (to the left) is rather important to get right, or you'll just get wonky results. Make sure it maps the corners to 0,0 and 1,1.
And because I know you're in a hurry, here's the final shader (you can copy and paste this into an empty material to save you a lot of work):

How it works:

Firstly we take the current time and use it as UV coordinate modifiers to sample a nice, smooth and tiled noise texture. I found "LowResBlurredNoise" (make sure you're allowed to view engine assets in order to select it) perfect.


To avoid most issues with occlusion culling I then "normalize" the values between -0,5 and 0,5. Why is this important? It allows us to increase and decrease the vertices' height relative to their original position rather than just adding to it (and thus always skewing them upwards). You could multiply this by 2 to make the values range from -1 to 1 but you can achieve the same thing by tweaking the wave scale value.

Finally, with a suitable noise map, all we have to do it modify the original vertex position. We take the normal (which would point up in the case of your plane), multiply it by the noise values and as time pans the noise texture forward through all the vertices in our plane, we get a wave.


Why use the vertex normal instead of just a global "up vector" (like 0,0,1)? It allows us to place water sideways and so some weird stuff with other shapes, like this:



The bits connected to the "normal" part of the material are a bit of "dark math magic" which recalculates the vertex normals after we modify their position. If it wasn't there, the lighting on our water would be constant and look completely hideous. I may go into more detail on this one day.

Usage Notes:

  • You CAN put several of these planes beside each other. They will cleanly fit and should have no seams if you've done the uv mapping properly.
  • As with all vertex-deforming materials, this one will become a bit iffy with occlusion culling, especially with huge "Wave Height Scale" values.
  • Make sure the water plane isn't casting shadows on itself or is otherwise baked by Lightmass
  • Keep in mind that due to oscillating height, it may clip through the ground if you're not careful.
  • Unfortunately, due to the way Unreal handles flat shading, this leaves us with a rather high poly count for a simple flat shaded plane. But this has nothing to do with the Water Material itself.


Addendum: If you're into Unity3D, /u/Ro9AM has posted a neat little tutorial (with source code) that does pretty much the same thing :)

Wednesday, 14 October 2015

There is such a thing as too much compiler optimization

I spent my University years using antiquated subsets of C and C++, so I decided to try my hand at the latest Standards and Proposals.

After some time I found this weird... Bug? I had a GetNeighbours function that would fill out an array which was passed by reference. It spent a few days as an empty placeholder. Once I filled out the function so it would actually return the neighbours, I started getting compiler errors because std:array was undefined. How could this be? The function had been there for ages, and had always received an std:array parameter. Why was it only throwing out errors now?

The answer was simple but it took a bit of lateral thinking: The compiler had figured out GetNeighbours was performing no useful work and simply ignored it, not even caring that the type of argument was undefined. The function call had been removed and the code had never been compiled.

I'm ashamed to say this took me a few minutes to figure out.


This works
This doesn't (std::array is not a defined type)
This works. Wat?

Thursday, 10 September 2015

On moving from Unity to Unreal

The team at Titan is working on a soon-to-be-announced Top Secret Project. We've recently changed from Unity to Unreal and here are some things we've thought about sharing with other Devs that are thinking of making the jump.


The good stuff: 

  • Unreal let's you easily alter the aesthetics of your project. The drag and drop material editor, the huge amounts of built-in high quality content let you easily reach AAA levels of quality, even for small prototypes.
  • Blueprints are amazing for quickly prototyping concepts! Beware: any non-trivial math expressions will be a mess of wires, but thankfully there's a handy math expression node to help you avoid turning your code into a spaghetti mess.
  • The community has a lot of experienced developers, which makes useful content and non-trivial tutorials easier to find.
  • The architecture and the way everything is structured encourages newbie developers to write more robust code. Contrary to Unity, there's already a game state, game modes, an Actor-Controller model...
  • Epic's experience has led to so much high quality content that you can easily pick up something like the FPS Tutorial and merely have to tweak a few values to suit your needs - We recreated the movement style of our first Unity game (Slinki) in a matter of minutes.

The bad stuff:

  • The render pipeline is setup for realistic lighting, if you want something really stylistic illumination you can either "hack" your way around this with more complex materials or get down and dirty with the rendering pipeline.
  • Don't get me wrong, Unity can be a bit of a resource hog sometimes. But Unreal seems to be an expert at making even our reasonable Gaming PCs suffer. Compile times will be measured in minutes for anything but the smallest projects.
  • The way Unreal handles project files is simply not as robust as Unity's. Every time you move something, a file a redirector is created. 
  • You can't just drop a png file and use it as an asset, there's always going to be some sort of pipeline to get assets into your game. 
  • As a sidenote to the previous point, you will have to export your blender models as an fbx. Many things can and will go wrong with this process. I would write a tutorial but I found it changes a lot between versions of both programs and none of our solutions have been ideal so far.
  • C# is gone. You will be using C++. This can be a curse or a blessing but overall C++ is not as great for quickly prototyping.
  • It's not very stable. Seriously, it's not. The update to 4.9 broke transparent sprites on the UI. This is not a trivial and easily-ignored bug.
  • The huge ingress of novice game developers has made communication with the Epic team and experienced members slightly harder due to a sea of (mostly) trivial questions.

Wednesday, 29 July 2015

Chocolatey is awesome and you should use it



I've recently started using Chocolatey. While the thought of a package manager for Windows has crossed my mind (oh, my long gone Linux fanboy days), I always relegated it to something that would be too hard to maintain and work with.

For anyone who hasn't used a package manager, here's what makes it better than the classic install/uninstall babble.
  • The endless cycle of "Go to website, navigate to download link, wait, double click, click next, uncheck the 'install malware option', press next 2 more times, wait again, press finish" is gone.
  • Update ALL your software with no user input
  • Got a new machine? Run a single-line command and all your favourite programs are now installed.
  • A lot less annoying popups saying an update is available
  • I think avoiding Adobe Flash updates deserves an entire bullet point. 
So how does it work? Suppose you want to install git and Flash. Easy, launch the command line as an administrator and run this command.
 choco install Git flashplayerplugin -y 
After some time both Git and flash will be installed.

Firefox's giving you warnings that your version of Flash is unsafe?

 choco upgrade all -y 
Now both flash and Git are up to date with (nearly) no user input.

Wednesday, 27 May 2015

Unity's new event system

Despite being very poorly documented, Unity's new event system can be incredibly useful. Here's a really simple script that I keep using over and over.




Saturday, 15 February 2014

Regarding Meshes in Unity

Maybe it's just my OpenGL (1.1) background but here's a few roadblocks I've hit while doing procedural Mesh generation in Unity, along with a few tips not many people seem to know of. Some of this knowledge has been useful even outside my procedural experiments.

Quick Overview (stuff you really should know)

  • You will read this until your eyes bleed
  • Mesh.vertices contains your vertices. Mesh.triangles contains indexes to the vertices array. 
  • Normals (and UVs) are per Vertice. E.g.: Mesh.normals[i] has the normal for Mesh.vertices[i] (Blender uses normals for each face, which sometimes confuses people)
  • Different materials means different submeshes (or a new Mesh if that's what you're into).

A few pitfalls and tips

  • Mesh.uv1 != Mesh.uv (WHY AREN'T MY TEXTURE COORDINATES DOING ANYTHING?)
  • If your mesh has more than  one material, you have to use submeshes to define which area has a certain material. When copying meshes, I've found that I have to manually SetTriangles() as no other way of copying submeshes seems to work.
  • The backface is determined by the order of the vertices in each triangle, NOT its normal. If your mesh looks like it's inside out this is probably why.
  • Some of Unity's built-in shaders (namely the bump mapped ones) do not calculate their own tangents. Each Mesh has their own tangent array for this specific purpose. Unfortunately they can't be auto-calculated.
    • Blender files do not have these by default but fortunately Unity can calculate them automatically. Sadly, we don't have access to their algorithm for this.
    • Fortunately there's some code floating around that works. 
  • Don't generate a new Mesh() every time. Use the same mesh instance and .Clear() it. New meshes will get fed to the GPU but won't replace the old data there, causing memory leaks.
  • 99% of the time you can just call Mesh.RecalculateNormals() at the end instead of reinventing the wheel and calculating your own normals. As far as I know this calculates the normals based on the order of the vertices. 
  • Don't forget to Mesh.RecalculateBounds() if having decent bounds is important to you.
  • When you add a collider Unity will automatically fit it to the current Meshfilter's bounds.

Monday, 3 February 2014

What a good F2P model looks like

Out of all the F2P games I've tried, Warframe has by far the best microtransactions I've seen. So much so that I've been meaning to write this article so I know what to do if I ever find myself in a similar position. However, let me just say this is not a review, just an overview of their Business Model and why I think it's great:


An Excalibur Warframe proudly proclaims: "I have the poweeeer!"

The paid exclusives

In Warframe there's only 2 things where you need to spend money: Slots and Colours. The free currency you're given at the start can get you quite a few of either and you start out with a decent (but small) selection of colours to give your character a unique look.  Everything else has a chance to show up in random "alerts" or invasions. These events are quite common, however it might take some time until you're lucky and find what you need (I didn't say it was perfect).
You can also purchase boosters but I will get to those later on.

Purchases are permanent

No "renting" costumes or any such bullshit. What you buy is yours forever. When you're purchasing a virtual product you shouldn't have the added insult of having them fade away after some time. The mods system is also amazing and you don't lose anything by trying out new builds.

It's (always) fun

Digital Extremes is an experienced game company. The game looks great and has a lot of "crunchiness". There's a great feeling when your properly modded machine gun is blowing chunks out of the heavily armoured Grineer. Or when your saw-launcher slashes infested into (literal) pieces. All the weapons feel useful in some way (although the community swears some are considered overpowered, as some always are). The game is also based on PvE fights and doesn't have many of the issues of the more competitive games in it's genre. Even so, an experienced game company can turn their amazing game into a grindy, boring mess when trying to get the average free player to give them their money.

Defence missions are basically seeing hundreds of these flying everywhere while a Nova does all the work

No grinding

Sure there's some grinding. Without wanting to go too in-depth into the mechanics, you'll need to level your Suit and your weapons to level 30 to guarantee maximum effectiveness, but a single day's effort is all you'll need to fully level an entire set. You can buy boosters to drastically speed this up if you just want to spend a few hours levelling your gear.

There's always a new reward around the corner. This mission you did just levelled your Pistol. You can now put a slightly better mod on it. How about sticking that multi-shot you got 2 missions ago? Or maybe you now have enough nano-spores to craft that new gun... I rarely find myself looking at the end mission screen and not having anything new to fiddle with. You'll never hit a point where the game will push premium content in order to make it less tedious (I'm looking at you World of Tanks).

Weirdly enough (in the F2P industry), they're also moving AWAY from tedious farming and some extremely rare resources have been made more common or easier to obtain. Eg. : When I started out, Warframe parts used to be rare drops from bosses that you had to pick up once you killed them. You now always get warframe piece every time you kill a boss and you don't have to go around looking for his corpse in case you missed it.

Insignificant timers

Crafting guns takes between 12 and 24 hours and putting together new Warframes (classes/suits) usually takes 3 days. You can rush these for real money but, besides the 3 day wait (along with time to craft each piece that makes up the warframe), it's pretty managable. You'll most likely still be levelling your current gun when the new one's ready at the forge (I currently have around 5 primary weapons ready to be picked up).

Reaching out to the players

Warframe has patches released relatively often (every 2-3 weeks I'd say) which add new content (like new tilesets, weapons or maybe an entire overhaul of the damage system). When there's a need a hotfix will be released ASAP. What does ASAP mean? Literally 3 hours after a patch. There's also the hilarious "red text" that always precedes these releases:



In short, they tell the community what's wrong: when they screw, they work on fixing it and then tell everyone what just happened instead of compiling a changelog and running it through QA for a few weeks (I honestly envy their ability to do this and still have an incredibly bug-free game). They invite everyone in-game to watch their live Twitch livestreams so they can know what's up and there's even a reward for everyone afterwards.


Overview

That being said, here's a rundown along with some bad things:

The good:
  • Levelling/grinding is quick and constantly rewards you
  • You only need to pay if you want to. There's nothing that affects gameplay which you can't craft.
  • Decent aesthetic customization by default
  • Developers that feel like human beings
The meh:
  • I don't get why there's an extremely rare item that doubles your mod points for any object. It ensures that you only use it on weapons you really like but I really don't see why there's a weird item that can double the efficiency of any gun or suit.
  • Market for buying and selling things. Nothing to add here, it's still limited to only a few types of items and the real-money currency.
The bad:
  • That 3 day wait for crafting a Warframe. Ugh. I can take it once I have several to choose but when you're starting out, it just sucks.
  • The weird rare item that can double the efficiency of a weapon is on the "meh" heading because I don't care that much for it. But it is available for purchase with real money. The PvE nature of the game limits the consequences of this. However...
  • They have recently-introduced PvP duels. I would like PvP to remain a side-feature so the P2W threat doesn't ever rear it's ugly head but we shall have to wait and see what they do with it.
  • Getting a particular item that only drops from the Void missions can be a serious pain in the neck.

Phew that was hard to write, I kept having to stop myself from writing a review several times. Nevertheless, Warframe is quite enjoyable and I think anyone that's slightly interested in the shooter genre (or multiplayer game design) should give it a go.

Wednesday, 9 October 2013

Easy Paralax scrolling on a 2.5D game

Classic 2D sidescrollers used a technique called parallax scrolling to make their backgrounds more realistic. Classically it was done by making background sprites move at different speeds, thus creating the illusion that some of them were closer to our eyes. While making Slinki we've done some experiments on this and developed a simple way to replicate this technique that will work in any (most?) 3D engines without too much work.

This article may also be useful if you want to make some part of your game "purely" 2D and have other bits be more realistic 3D meshes.

Sonic 4 paralax
Unfortunately you'll still have a lot of work ahead of you to make backgrounds this gorgeous *sigh*


First we need 2 cameras:
  •     A main camera (the orthogonal one) - This one will render nearly all the game
  •     A second camera, a perspective one - This will render just our backgrounds
Setup your background items, and put them on a special layer (we call ours "Backgrounds". Here's an example, the large panels are all part of this layer and they're ordered according to distance:




Make the second camera follow the main camera. In Unity3D you can simply make it a child GameObject to save yourself a small amount of coding. Also make sure the main camera is drawn first. In Unity this is done by adjusting their depths (0 for the main camera, -1 for the background).

Now the fun part: The main camera should NOT draw the background. This may vary depending on the engine you're using. In Unity you can simply put the backgrounds on a different layer and tell the main camera not to draw it using an occlusion mask. Make sure any empty space rendered by the gameplay camera will fail the depth-test (on Unity this means setting the Clear flag to "Don't Clear").




Make the second camera draw nothing EXCEPT objects in the background layer.


How this works

The first camera will be set to draw all the foreground items and will leave empty space for the second camera to draw on. The second camera will draw the backgrounds in that empty space, using perspective, doing precisely what a parallax scrolling effect tries to replicate.


Here's a couple of animations showing the game in pure orthogonal mode and with our "paralax scrolling".
Entire game in orthogonal projection

Backgrounds using perspective camera


Monday, 9 September 2013

Simple AI in Unity3D

Here's a short writeup on how we're doing the enemy AI for our most recent game, Slinki. I recommend you read up on C# delegates and Unity coroutines if you're not familiar with either.

We decided early on that the enemies should have really simple behaviours. For instance, here's an example of how the Shorg works on the newest version:
  1. Wait until Slinki comes close
  2. Appear and jump out once he's close enough
  3. Wait for 2 seconds
  4. Jump towards slinki a certain small distance
  5. Go to 3
Things like these are really easy to implement using easy AI techniques such as state machines.

The method

Create a new MonoBehaviour for your AI. It should look like this:
//this is like a template for all our states
public delegate IEnumerator State();

//the current state
private State stateFunc; 

//seconds between AI updates
public float AIupdateFrequency = 0.1f; 

void OnEnable() {
 //Sets the first State
 stateFunc = StateWait;
 StartCoroutine (Action());
}

public IEnumerator Action() {
    while (true) {
        //Waits untill stateFunc is done before proceeding
        yield return StartCoroutine(stateFunc());
    
        //Waits for AIupdateFrequency so we don't busy-run our AI logic
        yield return new WaitForSeconds(AIupdateFrequency);
    }
}

Here's an example of a possible state method. This one just makes Shorg stand still for 2 seconds before changing to the "Hop" state.
IEnumerator StateWait() {
    yield return new WaitForSeconds(2);
    
    //next state
    stateFunc = StateHop; 
    yield return null;
}

Here's another state method, this one applies gravity while Shorg is airborne. Once he lands he goes back to waiting.
IEnumerator StateAirborne() {
    kinController.jumpSpeed = -kinController.gravity * AIupdateFrequency;

    if (kinController.isGrounded) {
        stateFunc = StateWait;
    }
    
    yield return null;
}

Guidelines

The "rules" for writting new states are simple: Following the delegate - they should be functions that return IEnumerator , they should end in yield return null,  and they need to have one or more conditions for changing the stateFunc variable (i.e. change to another state).

 

Summary

Advantages of this method:
  • Simple
  • Easy to create new states
  • Very easy to debug just using prints
  • Self destructs cleanly if the GameObject is destroyed or disabled
Disadvantages
  • Can get complicated as the AI gets more complex
  • No way to enforce the guidelines due to the way Unity and C# work
  • Coroutines can get a bit funky to use for an inexperienced programmer
  • State is lost if the gameObject is temporarily disabled

Special thanks to David Craft for this amazing hack that allows code syntax highlighting on blogger


Note: If you need to temporarily run the AI logic more often than AIupdateFrequency will allow, all you need to do is yield inside a cycle. This probably sounds confusing so here's another version of the Wait state. In this one Shorg turns towards the player before waiting:

IEnumerator StateWait() {
 
    //Facing wrong way?
    while (Vector3.Dot(transform.forward, slinkiDirection.x * Vector3.right) < 0) {
        transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.LookRotation(dir), Time.deltaTime * 100);
        Debug.Log("Turning around");
        yield return null;
    }
 
    //Debug.Log("Waiting for 1 second");
    yield return new WaitForSeconds(1);
    stateFunc = StateHop;
}

That while cycle will make the coroutine run every frame update. Without it, Shorg would only try to face the player once every 0.1 seconds, producing a very jerky animation.

Monday, 22 July 2013

Poultron: Bonus

Since a new version of unity came out today with realtime shadows I figured I might as well make a new version with them on.

Shadows!

EDIT: Now actually with shadows as of the 22nd of August

Sunday, 21 July 2013

Poultron: Final day


And to think it looks so small from up here...

The main problem with making a game that's designed to be frustrating to play is that playtesting is hell. In the end I think I made it too easy and removed most of the ramps as I couldn't figure out if they were actually climbable. Oh well...

The credits sequence ended up taking up most of my spare time. It was basically just my name and a list of assets used but a neat little thing to figure out nonetheless.

In the end I think this was a neat little experiment and I might do a post-mortem soonish. I might even compile a list of issues I had with Unity (like the fact prefabs are not clearly marked, which might result in you changing a lot more things than you'd hope when tweaking certain values).

Here's hoping you'll enjoy it.

Saturday, 20 July 2013

Poultron: Day 6

  Been very busy, can't remember most of the things I've done today.


Features:
  • More slight graphical tweaks
  • New flying enemy! (took up most of my time)
  • Landscape is slightly more interesting
  • Keep walking and you'll find new enemies (eventually)

Current issues:
  • Still no endgame :(
  • Enemies pop up in front of you. The level will be tweaked tomorrow.

Tomorrow:
  • Ending and credits
  • Finish the level
 Abandon all hope ye who enter here.

Poultron: Day 5


I just noticed my pilot looks eerily similar to the default minecraft dude

Time's starting to run out! I still have no flying enemies and the level's still mostly empty! That being said, the game now has a menu of sorts and a second robot to choose from.

 Features:

  • An interactive menu and intro sequence
  • A new robot to fall in love with (not recommended for people with low self-esteem)
  • LASERS!
  • Slight graphical tweaks here and there
  • Wobbly feet
  • I'm starting to lose track to be honest

Current issues:
  • Footstep detection is a bit wonky
  • We need an endgame 
  • You can hear the tank trying to shoot outside the hangar (will be fixed tomorrow)

Tomorrow:
  • Make the level!
  • Hopefully put in the flying enemy

Embark on an adventure of a lifetime by clicking this link

Thursday, 18 July 2013

Poultron: Day 4



The closest you'll ever be to his pretty face

I tried to go with no health system and I like the results. However, this made me spend most of the day rewriting the projectile system into something a lot more physics-based. I also spent some time polishing up the robot and some other features.

 Features:

  • Enemy bullets can now hit you and will make it harder for you to keep walking
  • Footstep sounds!
  • Rate of fire limitations on your own mech (the huge cannon is no longer semi-automatic)
  • The robot looks 20% cooler and features a tiny pilot (which I might animate if I feel like it)
  • Dings!

Current issues:
  • Footstep detection is a bit wonky

Tomorrow:
  • I might make the "shoot" button a keyboard key if it doesn't make the game too easy. I intended to keep it on the screen as an added challenge.
  • Maybe make the feet separate parts to make walking seem smoother and more realistic (also should help polish the footstep sounds)
  • Begginings of robot number 2 (aka hard mode)
  • Make the menu.
  • Put flying enemy into the game if we're very lucky

This link over here should take you on today's adventure.



Wednesday, 17 July 2013

Poultron: Day 3


My gun is slightly bigger


Spent most of the day doing other non-game related things like going to the dentist and such. Despite this I think I made quite a bit of progress. Most of it can be summed up as "cleaning up" the messy code and fixing lesser issues.

Features:

  • Cool special effects for the bullets!
  • Graphical tweaks, sort of... Well at least everything should look shinier now .
  • The tank now runs away from you!
  • It also shoots back (bullets hitting the robot may not actually do anything yet. Batteries sold separately.)
  • Made the gun mount more "rigid" (it now doesn't wobble every time you shoot). This means it's now harder to use the recoil as an improvised jetpack (sorry)
  • Did you know the tank had moving tracks? Well now you'll notice they exist.

Current issues:
  • THE BULLETS, THEY DO NOTHING. Should I make the mech have a health bar or just make the shots move it back a bit and make it harder to move?
  • The tank dies in one shot
  • The tank explosion's effect disappears suddenly. This won't be trivial to fix unfortunately.
  • Bullets still do nothing when they hit the ground
  • As you can see from the screenshot, that shell might be slightly bigger than it should
Tomorrow:
  • Consider implementing a health system or not.
  • Make a menu?
  • Tweak the interface?
  • More graphical tweaks?
  • Model a flying enemy.
 As usual, amazing fun awaits thee here.

Tuesday, 16 July 2013

Poultron: Day 2

Added a decent sky (from the awesome SkyBox valume 2 found on the Unity store), made a geodesic dome for scenery and decided on going for a WE'RE IN SPAAAACE theme.

I spent most of my day implementing the ballistics system. What I currently have is probably not the best solution but it works. There's bullets, that can collide with level geometry (like the ground, buildings, etc) and there's Hitboxes, that can only collide with bullets. Once a bullet touches anything it checks to see if that object has a hitbox. If it does, it triggers a death effect.

Features:
  • A small tank that walks up to you and says "Hi" (ok, it doesn't really say "Hi" but you get the idea)
  • Longer legs for the mech (it was hard aiming down and it made the controls a bit easier but not too much)
  • Bullets that do things
  • Explosions!
  • SKY! (the moon was my own personal addition, boy do I feel proud)

Current issues:
  • The effects should be tweaked to make them more coherent (and cooler)
  • Bullets impacting the ground just disappear. This simply cannot do
  • The poor little tank doesn't fight back
  • The tank was programmed to keep his distance but that doesn't seem to work
  • In related news, you can walk right over the tank and nothing happens
Tomorrow:
  • Fix all the tank issues
  • Maybe make the tank shoot back
  • Improve the explosion effects (graphics and sound)
  • More things to prettify the scenery (maybe a small corridor uniting several domes, that would be nice)
You may make fun of my accomplishments for the day here.

I modelled it after a Panther and a Leopard 2.
Yes I'm aware only tank geeks will know what those are.