Open in app

Sign In

Write

Sign In

Ahad L. Amdani
Ahad L. Amdani

32 Followers

Home

About

Jun 3, 2021

Building UI Elements

It’s fairly straightforward to put together a working user interface system thanks to Unity’s Canvas mechanics. As you can see pictured above, you can create multiple scenes, one dedicated as your build settings root index to be your main menu, and one for the actual level/gameplay (or more if you…

Unity

3 min read

Building UI Elements
Building UI Elements
Unity

3 min read


Jun 1, 2021

Modular Abilities

It’s fairly straight forward, we enable different powerups based on the ID of the power up. 0 is for the Triple Shot, 1 is for the Speed Up, and 2 is for the Shield. Now, I don’t like the default way this is done, so I’m going to convert it into an enumeration and case against that within the switch. Which means I’m going to go ahead and rename powerupID to PowerUpType and convert it from an int to an enum PowerUpType.

Unity

2 min read

Modular Abilities
Modular Abilities
Unity

2 min read


Jun 1, 2021

Animating Sprites

Of course we have our ship’s movements to consider for animation, but let’s start with something simple for now. We’ve introduced the Triple Shot laser power up previously. …

Unity

2 min read

Animating Sprites
Animating Sprites
Unity

2 min read


May 25, 2021

Feel Legit Yet?

We’re enabling a timed “power up” of the primary weapons systems, the lasers. This power pickup enables you to leverage three lasers at a time instead of just one for a short duration (currently set to 5.0s). Now that we have a few game mechanics in place as well as…

Unity

2 min read

Feel Legit Yet?
Feel Legit Yet?
Unity

2 min read


May 25, 2021

Prototype -> Work of Art

In order to enhance our game, we’re leveraging a space-themed background sprite. We transformed it to fit the viewport of the camera, and setup additional sorting layers (background and foreground). We’ve foregrounded the player, which you can see has been replaced with a spaceship sprite, as well as the enemies that are spawned, which have been replaced with similar spaceship sprites. The laser beam has also had its sprite updated. The way to convert from prototype is to drop the 3D object and start leveraging a sprite renderer as well as a 2D box collider.

Unity

1 min read

Prototype -> Work of Art
Prototype -> Work of Art
Unity

1 min read


May 19, 2021

Spawning Enemies with Coroutines

In Sovereignty, we want to spawn enemies in a random position at the top of the screen, for the player to engage as they automatically move down the screen. As we know, if we let the enemies fly down to the bottom, they re-spawn at a random position at the…

Unity

3 min read

Spawning Enemies with Coroutines
Spawning Enemies with Coroutines
Unity

3 min read


May 18, 2021

Using OnCollisionEnter versus OnTriggerEnter

For the case of Sovereignty, there aren’t going to be any hard surface collisions. Why do I bring that up? Because that means we’re primarily going to be leveraged OnTriggerEnter for our collisions as we have things “pass through” each other and determine how to interact upon their first touch…

Unity

2 min read

Using OnCollisionEnter versus OnTriggerEnter
Using OnCollisionEnter versus OnTriggerEnter
Unity

2 min read


May 17, 2021

Cooldown Systems

In Sovereignty, we don’t really want to allow unlimited/infinite and no-lag weapons fire. Therefore, we need to enable a Cooldown (CD) on player input of the weapons that are capable of being fired.

Game Development

3 min read

Cooldown Systems
Cooldown Systems
Game Development

3 min read


May 16, 2021

Managing GameObjects

When dealing with game objects, especially those that are spawned during the runtime of your gameplay, you’ll want to take care to ensure their proper instantiation as well as cleanup, so that your object graph doesn’t become overly cluttered and eat up heaps of memory. In the case of Sovereignty, the player’s ship will be able to utilize various projectile weapons, starting with the basic single-shot rapid-fire laser. The spawn of the laser prefab is triggered by user input, specifically the spacebar:

Unity

1 min read

Managing GameObjects
Managing GameObjects
Unity

1 min read


May 9, 2021

Simple 2D Player Movement

It’s a fairly straight forward affair when you consider the mechanics. Retrieve the axis you’re interested in and store them in a local variable. Generate the direction of motion based on these inputs. Perform a translate upon the game object’s transform with an arbitrary speed value and multiplied by Time.deltaTime…

Unity

2 min read

Simple 2D Player Movement
Simple 2D Player Movement
Unity

2 min read

Ahad L. Amdani

Ahad L. Amdani

32 Followers

Father, software developer, writer and avid gamer.

Following
  • Arunoda Susiripala

    Arunoda Susiripala

  • Netflix Technology Blog

    Netflix Technology Blog

  • Sawyer H

    Sawyer H

  • Jason Lautzenheiser

    Jason Lautzenheiser

  • Eric Elliott

    Eric Elliott

See all (48)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams