Skip to content

Tag: C# 

Latest Posts

Unit Testing in Unity

I consider automated tests to be a cornerstone of building high quality software. Testing should be taken seriously in all aspects of software development and creating games in Unity should be no exception. In this tutorial I’ll focus on the unit testing aspect of test driven development (TDD). I’ve found
> Read More

Finding World Height and Width from Camera in Unity

I saw this question pop up a few times on the forums recently so thought I’d share a quick tip on how to easily do this. The question is “How do I find the height and width in WORLD units that is visible in the current camera view”. It’s actually
> Read More

Simple State Machines

Quite commonly game state machines are designed to be overly complex and hard to understand. As the game expands, they become larger and harder to follow. Somehow the game still magically works and most of the time nothing is done to simplify it.  Generally most games revolve around a few
> Read More

Simple JSON to Unity For Object Data

In this tutorial I will go over how to easily read JSON in Unity to load data into your game. Manage your game data with JSON and load them as Unity objects at runtime. Games typically contain lots of data that apply to different game objects and behaviors. For example,
> Read More

Data Structures For Tile Based Games

In this tutorial I’ll show you how to implement data structures for your tile-map / tile-based game. Using a grid based approach is a popular technique for many types of games, such as RPGs, board games, and RTS games. These games usually have a ‘top-down’ look, but other approaches can
> Read More
unity buff system

Buff System with Scriptable Objects for Unity

In this tutorial, I will show you how to create a flexible buff system for Unity using scriptable objects. We will use scriptable objects as a way to quickly create and manage buffs without having to use external data types such as xml or a text file. This lets us
> Read More

Google Play Services Tutorial For Unity

Recently I have been putting the finishing touches on my next game and naturally that includes implementing Google Play Services into the app. Achievements, leaderboards, and other stats are a great way to keep your players engaged in the game and to keep things interesting. Luckily the process is pretty
> Read More

Unity Cooldown Timer Tutorial

Cooldown timers are a critical part of most games. It can be used to track a cooldown or a monster spawner. A player casts a spell. He shouldn’t be able to cast it again right away, so a countdown is started and when it hits zero, the player can cast
> Read More

A Simple Dialog Quest System For Unity

In this tutorial you will learn how to create a simple and extensible dialog quest system for Unity. We will also create a simple dialog box UI to display the quest to the player. The system will use XML files to store dialog data and allow for different dialogs to
> Read More

Creating A Pause In Unity

Pausing the game is pretty simple to implement. It only takes a few simple lines of code yet it’s a commonly asked question, so I’ll show you a quick and easy way to implement pausing of your game in Unity. Time.timeScale = 0f; Time.timeScale is the scale of which time
> Read More

Connect With Me!

Categories
Instagram Adventures