Open in app

Sign In

Write

Sign In

Cliff Bailey
Cliff Bailey

11 Followers

Home

About

Aug 22, 2022

Make a Spawn Manager

Create an Empty Object and name it spawnManager. Create a new C# script and name it spawnManager. Drag the script onto the eponymous empty game object, giving it form and meaning. OPEN THE SCRIPT. We’re going to implement a Coroutine and WaitForSeconds. OBJECTIVES: spawn enemies every 5 seconds across a randomX create a coroutine of type IEnumerator — Yield Events while loop — the infinite game loop — continues running so long as the prescribed condition is true — it could be infinite and crash your dang computer

Spawn Manager

2 min read

Make a Spawn Manager
Make a Spawn Manager
Spawn Manager

2 min read


Aug 21, 2022

Get a Life

Heyo, I’m back! Let’s do a life system thing. So, for literally anything to exist in your game — anything at all — you need to create it. Unless you’re using a template with premade assets and such, that means among other things, you need to create the concept of…

Unity3d

2 min read

Get a Life
Get a Life
Unity3d

2 min read


Jul 14, 2022

Interacting via Collisions

While we’re setting up a relatively simple system of interactions with the enemy, there’s still a lot that goes into it. First, let’s hit it with collisions. There are two general kinds of collisions we’re working with in Unity: hard-surface collisions — think throwing a ball at a wall; using…

Unity

3 min read

Interacting via Collisions
Interacting via Collisions
Unity

3 min read


Jul 14, 2022

“I have seen the enemy and he is…a PREFAB”

Okay, so this is a two-fer because I made two graphics for what I thought would be two articles but they can easily be one, so here go. In the hierarchy create a sphere, name it Enemy, zero out the location, drag the object from the hierarchy to the prefab…

Unity

2 min read

“I have seen the enemy and he is…a PREFAB”
“I have seen the enemy and he is…a PREFAB”
Unity

2 min read


Jul 12, 2022

Laser Cool Down

This is going to limit the rate of laserfire for the player. Declare two serialized private floats:

Unity3d

2 min read

Laser Cool Down
Laser Cool Down
Unity3d

2 min read


Jul 11, 2022

Scripting Laser / Projectile Behaviour

Scripting Laser / Projectile Behaviour As soon as our laser / projectile / object instantiates at the ship tip, it needs to travel up-screen. First things’ first: create a script in your scripts folder, name it laser, add it to the laser prefab, and open it in Visual Studio. Here’s…

Script

3 min read

Scripting Laser / Projectile Behaviour
Scripting Laser / Projectile Behaviour
Script

3 min read


Jul 8, 2022

INSTANTIATE!!

We want to spawn, or instantiate, our laser bolt prefab from the tip of our ship when we press the “fire” button. The Unity manual tells us: To instantiate a Prefab at run time, your code needs a reference to that Prefab. You can make this reference by creating a…

Unity

3 min read

INSTANTIATE!!
INSTANTIATE!!
Unity

3 min read


Jul 7, 2022

Make the Pewpew — Laser Time

If there’s one thing space shooter games are full of, it’s LASERs. So let’s go ahead and set up our primary projectile as a prefab so we can instantiate the crap out of it without expending too much on our systems. Create a capsule in your hierarchy. Right-click -> 3D…

2 min read

Make the Pewpew — Laser Time
Make the Pewpew — Laser Time

2 min read


Jul 6, 2022

Code Cleaner

Let’s do more of that optimisation. First, let’s create a new method, just for player movement.

Optimization

2 min read

Code Cleaner
Code Cleaner
Optimization

2 min read


Jul 5, 2022

Screen Bounds

Before we can set our boundaries, we have to know where we want them to be. We can do this by moving our player object to the upper, lower, leftmost, and rightmost sides of the screen and taking the coordinates from the inspector.

Coding

3 min read

Screen Bounds
Screen Bounds
Coding

3 min read

Cliff Bailey

Cliff Bailey

11 Followers

Software Developer w/ADHD learning and doing life.

Following
  • Hawaiian Electric

    Hawaiian Electric

  • Jonathan Poletti

    Jonathan Poletti

  • David Perlmutter

    David Perlmutter

  • Cassie Kozyrkov

    Cassie Kozyrkov

  • Felicia C. Sullivan

    Felicia C. Sullivan

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech