Day 6

Frankie Rodriguez
2 min readNov 17, 2020

--

Beginnings of a Game via Unity

Today was a pretty exciting day. In front of me were the beginnings of a game! My focus today was working through Prototype to Production. Once I was able to develop movement, shooting capabilities, etc.., I went into Filebase and uploaded the 2D Galaxy Assist. This file included graphics I used to place into my game such as a rocket ship, enemy ships, asteroids, lasers, and sound effects. To do so, I pulled sprites for the landscape, player, enemies, and laser and placed them into the Hierarchy.

From 3D cubes to 2D

Next, I converted the 3D rigid bodies and colliders to 2D versions. Changes needed to be made in the code (see picture) and in Unity.

No Enemy 2D Collider or Rigidbody

If none of these changes were made, there would be no interaction between enemy and player, meaning those components would pass through one another., lasers would be ineffective, and no lives would be taken away (as seen above).

Things that went wrong:

  • After creating the prefab for the triple shot, I faced some troubles with the laser position. It was spawning more towards the right of my ship. After spending 20+ mins trying to figure this block out on my own, I contacted Jeff via Zoom. He was able to figure out that laser positions (x, y, z) were not in it’s correct position. After making the necessary corrections, the triple shot was centered and firing appropriately.

What’s next on my agenda:

  • Completing the triple shot segment in the 2D Development Course
  • Investing some time going through the Unity C# Survival guide.

Some serious thanks to Jonathan Weinberger & GameDevHQ for allowing me to be a part of this program and for the super helpful instructional videos!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Frankie Rodriguez
Frankie Rodriguez

No responses yet

Write a response