Open in app

Sign In

Write

Sign In

Marcus Ansley
Marcus Ansley

38 Followers

Home

About

Pinned

Asynchronous Operations, Unity, and Threading

Asynchronous Operations (theory) I’ve been quite interested in asynchronous operations and Unity recently. From my understanding, we typically call these when there’s an operation to be completed, such as a web request or a download, that isn’t going to be completed instantaneously. If we execute something synchronously, we’re waiting for…

Unity

4 min read

Asynchronous Operations, Unity, and Threading
Asynchronous Operations, Unity, and Threading
Unity

4 min read


Pinned

Structs (or, creating our own custom containers)

This is just an article on something I’ve found useful time and time again when creating game systems. …

C Sharp Programming

5 min read

Structs (or, creating our own custom containers)
Structs (or, creating our own custom containers)
C Sharp Programming

5 min read


Oct 9, 2021

Setting up Shop! Creating a shop in a mobile adventure game (3): Updating the Player’s Inventory

As mentioned in the previous article, I’m opting for a simpler inventory system than what we might use for a more extensive game than the one I’m working on here. For that, what I’d personally recommend is taking a look into setting up some sort of dedicated PlayerInventory class which…

C Sharp Programming

3 min read

Setting up Shop! Creating a shop in a mobile adventure game (3): Updating the Player’s Inventory
Setting up Shop! Creating a shop in a mobile adventure game (3): Updating the Player’s Inventory
C Sharp Programming

3 min read


Oct 9, 2021

Setting up Shop! Creating a shop in a mobile adventure game (2): The Shopkeeper

Carrying on with our work on the mobile adventure game’s shop system, let’s take a look at the ShopKeeper class 😉 In particular, there are three key methods to this script: SelectItem, AttemptPurchase, and UpdatePlayerInventory. SelectItem As we saw in the previous article, this public method gets called from one of…

C Sharp Programming

3 min read

Setting up Shop! Creating a shop in a mobile adventure game (2): The Shopkeeper
Setting up Shop! Creating a shop in a mobile adventure game (2): The Shopkeeper
C Sharp Programming

3 min read


Oct 6, 2021

Setting up Shop! Creating a shop in a mobile adventure game (1): Purchase Options

To go with our loot/diamonds collection system, I’ve recently implemented this little shop to the mobile 2D adventure game I’ve been working on for the course 😉 Essentially, we’re checking for OnTriggerEnter2D, setting a canvas to active, then letting the player interact with the canvas by clicking on the item…

C Sharp Programming

3 min read

Setting up Shop! Creating a shop in a mobile adventure game (1): Purchase Options
Setting up Shop! Creating a shop in a mobile adventure game (1): Purchase Options
C Sharp Programming

3 min read


Oct 3, 2021

A Brief Introduction to 2D Binary Searches (C#)

Okay, so I might have made the mistake of attempting a 2D binary search challenge before a standard binary search challenge 😅 Needless to say, I didn’t solve it. But after taking a bit of time to read through some solutions online, watch a couple of videos on them, and…

C Sharp Programming

3 min read

A Brief Introduction to 2D Binary Searches (C#)
A Brief Introduction to 2D Binary Searches (C#)
C Sharp Programming

3 min read


Oct 3, 2021

A Brief Introduction to Binary and Linear Searches (C#)

I recently learnt about (and had a little go at using) binary searches in C#, and will do my best to communicate what I’ve learnt so far 😛 Essentially, a binary search is a means of searching an ordered list or array by repeatedly dividing the searchable area in half…

C Sharp Programming

3 min read

A Brief Introduction to Binary and Linear Searches (C#)
A Brief Introduction to Binary and Linear Searches (C#)
C Sharp Programming

3 min read


Oct 2, 2021

Setting Up a Collectable Diamonds System (3): UIManager and GameEvents

For the final part of this collectable diamonds system, let’s set up the logic to let the game know whenever a diamond’s been collected, what it’s value is, and display the updated value accordingly 😉 User Interface Firstly, we can set up our UI elements by creating a canvas, setting it to…

C Sharp Programming

4 min read

Setting Up a Collectable Diamonds System (3): UIManager and GameEvents
Setting Up a Collectable Diamonds System (3): UIManager and GameEvents
C Sharp Programming

4 min read


Sep 28, 2021

Setting Up a Collectable Diamonds System (2): Enemy adjustments

Following on from the previous article, we’ll need to make some adjustments to our enemies in order for them to drop/spawn diamonds after dying. …

C Sharp Programming

2 min read

Setting Up a Collectable Diamonds System (2): Enemy adjustments
Setting Up a Collectable Diamonds System (2): Enemy adjustments
C Sharp Programming

2 min read


Sep 26, 2021

Setting Up a Collectable Diamonds System (1): Setting up the diamond

Setting up the collectable diamonds system is a bit of a multi-stage process so I’ll split this into a short series of articles 😉 Let’s start by taking a look at setting up the Diamond prefab and class: Diamond Prefab First, create a 2D Sprite GameObject, then assign a “Diamond”…

C Sharp Programming

2 min read

Setting Up a Collectable Diamonds System (1): Setting up the diamond
Setting Up a Collectable Diamonds System (1): Setting up the diamond
C Sharp Programming

2 min read

Marcus Ansley

Marcus Ansley

38 Followers

Game Developer | Game Design and Literature Graduate

Following
  • Andrea Alicino

    Andrea Alicino

  • Christopher West

    Christopher West

  • Niklas Bergstrand

    Niklas Bergstrand

  • Claudio Grassi

    Claudio Grassi

  • Austin Mackrell

    Austin Mackrell

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech