HUD Bar Component A HUD bar is composed of two equally sized images. The bar image is resized according to a percentage value passed to the Bar. The key to this is using the Size Delta property of the Image Rect Transform. Ammo HUD Component A Bar HUD can be added to any Canvas and […]
Tag Archives: Shooter
Death to the Capsule!
The objective here was to create a target dummy for me to shoot with my laser gun. The target needed a GUI health component and a score when it dies. I wanted to mock this up fairly quickly and this is what I came up with: The Target Capsule The Target Capsule has three core […]
Ammo Use: Laser Rifle
Energy Ammo Component First, this thing probably needs to have most of its functionality abstracted into a base class called Ammo. There’s a lot going on here that any kind of ammo could use. Of note are the exposures of several private fields via public getter properties. This was necessary because the Weapon is being […]