[DEV] Tutorial images

In the past two weeks, I have dedicated a lot of time to the tutorial images that help the player know what he has to do. For example, when he flies over a pick up, he will know to press F/H on keyboard or X on a controller.

This system works together with the settingsmanager I designed earlier, which lets the player decide if he’s playing with keyboard or a controller. The tutorial system works with 3 differents sets of images, a set for controller, for the left side of the keyboard and the right side of the keyboard.

Each image is instantiated the moment you need it and destroyed as soon as it is used.
I would still like to add some kind of animation to it to make it look more convincing.

In the current build, the keyboard images for accelerate, move left/right and pickups are added, and the pickups for controller. I am currently reworking the system of them overriding each other a bit before I continue adding the rest of the images.

[DEV] Turret powerup, input choice


This week I have focused on working on a new powerup. It is a turret that follows the player and shoots the other player when that player is within range. The turret auto aims and also rotates towards the other player.

Next to that, I have also made a menu where the players can choose if they want to use a controller or keyboard. A gamesettings manager keeps track of these values.


[DEV] Energyfield, Powerupmanager and Fixes

This week I spent some time working on creating a new powerup: the energyfield. The player can drop it and it will form a field acrosst he whole width of the track to slow down the other player that comes behind him.

Other than that, I have created a separate manager dedicated to the powerups in particular. They used to be in the player manager but that got cluttered quickly by it.

As usual, some time also went into bugfixing and cleaning up some scripts and unused prefabs.

And lastly, I have also made a change to the camers. We can now change the rotation around the z axis so it is possible to see more of the track before us.

This slideshow requires JavaScript.

[DEV] Bugfixing and slowing down on the edge of track

This week was spent fixing and tweaking some problems in the game (see list below). Next to that, I made sure the player slows down when hitting the edge of the track, so he can not just stick to the side of the track.

Some fixes I made:

  • Bullets now get destroyed on impact
  • Player 2 is now visible on minimap
  • Powerups get removed when picking them up
  • If player already has powerup slotted and tries to pick up another one, it doesn’t disappear
  • Shield icon stays until timer runs out
  • Bullets can find other player again
  • Made shockwave bigger, destroys asteroids correctly and drains enemy’s energy


[DEV] Auto-Aiming, managers


I have been working some more on the managers to make everything more organized and less all over the place.

Additionally, I spent time working on the auto-tracking. When a bullet gets within a certain range of the other player, it curves towards the other player. The curve is not perfect yet, but I am still trying to figure out how to make it look nicer by lerping.

[DEV] Managers, bug fixes


This week was mostly spent on fixing bugs, improving the structure o
f our code, and adding more to the managers. Some bugs were created by moving things around and being moved to the managers, which sometimes made variables not accessible.

The structure was improved by changing the way UI works, instead of 2 separate canvases as loose gameObjects (which required scripts to ask for the player number every time), they are now instantly accessible for each player without having to worry which player it is exactly.

Also more script variables were added to the managers.