Prototype to Production — Adding Art Assets!

The addition of art assets makes a staggering difference in quality.

Now that the core prototype is complete, it is time to add some visuals for the project. Using FileBase I procured a variety of space assets to utilize for this project!

Once the assets are in the project folder, it is time to rebuild the pieces using the new art. I will show you how to rebuild the player, but the enemy and laser prefabs will need to have the same treatment done to them.

First off, I select my player art piece and drag it into the Hierarchy.

I attach the player script to it, and I retag it as Player.

Don’t forget your tags!

Next, I add a collider2D to the Player. As this model is a sprite, it is vital that the collider is 2D!

Make sure the collider lines up with the correct visuals. No one likes bad hitboxes!

A box collider works fine for our ship, the collider doesn’t have to be perfectly matched the the model.

That’s all for the player, but do the laser and enemy too or nothing will work!

NOTE: on the Enemy Script:

OnCollisionEnter(Collider other)

must be changed to

OnCollisionEnter2D(Collider2D other)

as well as the other changes.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jack Leavey

Jack Leavey

I am a software engineer with years of experience branching into game development, specifically in Unity. Follow along for guides on creating game mechanics!