Sign in

James West

Unity Game Development

Logo Image is a work in progress (Alex Angel)

So the hardest thing about finally tackling my desires to become a indie game developer is picking which of the MANY projects I have roaming around in my head. I’m sure this is something every game developer faces and realizes there just isn’t enough time in the day to do them all. This post is my chance to map out my ideas and discuss the one that I have selected to work on first.

Idea #1: FPS Horror Game (partially working on)


//Hunting bugs and optimizing

IT’S DONE! or is it?

Over the course of a week I worked on Proxima Centauri, a 2.5D space shooter, for my GameDevHQ certification. Many hours went into the games creation during that week and my 12 year old son, Jacob and his friend playtested the hell out of the thing. I even got lucky and got some feedback on about the game. if you want to play the current build.

So with some confidence, about 85%, I submitted the game to GameDevHQ and awaited my feedback. Hopefully it was good enough to pass the certification. …

Enter the Orkin Man

We have a bug to squash

If you have gone through any online course or watched YouTube videos about how to make games in Unity you have come across the advice to use Debug.Log() or Debug.LogError() in order to troubleshoot the games you are making. Now I am not here to tell you to stop using those, they can be helpful in isolation small issues when you are kind of aware where to look but you can find yourself wasting a lot of time putting these in and removing them from your scripts. They are expensive to use and clutter things up unnecessarily.

There is a…

Unity Game Development Tips for Beginners

Photo by Hello Lightbulb on Unsplash

We all want to make good games. For many however starting from scratch can be daunting for first time game developers. Lots of questions of did I do this correctly often invade your mind. Today I am going to look at just a couple of quick tips to help you optimize from the start.

No reason to delay, lets get into it.

Write Better Code Early

Ok, I know this seems like a silly tip, especially for new developers but it is never too late to learn how to write better code early. Lets looks a few key topics.

Code for Readability

  1. Name your…

Unity Game Development Optimization Tips

Photo by Tudor Baciu on Unsplash

Today I just have quick tip to share to help optimize your C# coroutines for better performance in Unity.

Lets look at a script for spawning enemies.

private IEnumerator SpawnPowerup()
yield return new WaitForSeconds(3.0f);
while (_canSpawn)
yield return new WaitForSeconds(Random.Range(8f,10.0f));
// roll random 100. Tier 1 = 0 - 60, Tier 2 = 61 - 85, Tier 3 = 75 - 99
var randomRoll = Random.Range(1f, 100f)…

Unity Game Development

The Profiler in Timeline View

Ok, we have spent lots of time learning how to create games and applications in Unity3D. You’ve written some code, built some levels and something seems off. The game is crashing, or seems to get sluggish at certain points. This is where optimization comes in.

Fortunately for us we don’t have to write lots of debug code or try eyeballing when something happens. Unity gives us a built in tool called the Profiler that will allow us to view our game running in real time and seen a profile of where things are happening.

Enable the Profiler

The profiler is really easy to…

Unity Application Development

Writing lots of code can be a real pain in the butt. So anytime we can use cool little tools like scriptable objects we should.

A scriptable object is a lot like a class, except in stead of defining it inside of code like a class we can build items in the inspector and use them like a database of sorts.

For our example application we will be look at a Zoo Map that gives us a display of information about each section of the Zoo on an info panel.

Unity Development Tips

Photo by Lukas Blazek on Unsplash — THIS IS NOT UNITY ANALYTICS

OK, so you’ve built a killer application. Your storing data in the cloud using S3 storage on the AWS cloud. You’ve released your application on the Google Play Store or other platform and you are getting some downloads. This is all great but we need some user usage data to really improve upon what we have built.

This is where Unity Analytics comes in to play. The Free version will allow you to see how users are using your application, but not in real time.

Enable Analytics

To turn on this feature we need to click the Window > General > Services

Unity Development for Enterprise Applications

Photo by Christian Wiediger on Unsplash

Alright, so we learned how to save a file to the hardware and to the S3 storage on the AWS cloud but that isn’t enough. We also need to be able to retrieve the file from the cloud for future usage.

So lets dive right in!

Searching for the file

Searching for the file will use the Amazon HTTPS web request and response tools. This might seem like a bunch of code but what we are doing is a lot of checking variable setup, and null checking.

The code uses several lambda expressions to make it easier to read. We setup a request and…

Unity Development for Enterprise Applications

Photo by Christian Wiediger on Unsplash

A few days ago we started looking at how to use Amazon Web Services (AWS) to empower a full-featured mobile enterprise application. After that we talked about how we can save data to the default save location on the hardware. Over the next few days we will look at how we can implement the S3 Storage feature of the AWS platform to make our application store data in the Amazon cloud.

This process isn’t hard but it has several steps so I am going to break this up into manageable chunks to make it easier to follow along with. Today…

James West

Turning my passion for video games and 11 years of software development experience into a focus on video game development using Unity3D.

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