Journal 111 — Unity 2D Mobile, Dungeon Escape Refinement Part 1

Objective: To refine parts of the level to publish a working game to the Google Play Store

In the previous series of articles, I got the basic version of Dungeon Escape working on Android devices, including Unity Ads. In this article, I will go over some areas of improvement to fill out the game.

Dead Zones

I need to add several dead zones to make sure the player does not get stuck, or fall off the level. In the pits I have painted some spikes, and I have added an empty game object with a Box Collider 2D and Rigidbody 2D and script to have the player die if they fall on the spikes. I will make the dead zone game object a prefab and place in other parts of the level.

Update Attack and Power ups

There are two other power ups in the shop, a flame sword and boots of flight that we need to use. In this game, I will use a basic sword to first kill the spider, then the player has to purchase the flame sword to defeat the skeleton and moss giants. In addition, the end of the level is set too far away for the player to make a regular jump, so the player has to purchase the boots of flight to make the jump.

In the Game Manager, I will start with two additional bool variables to track if the player purchased the flame sword and boots of flight.

We can leave the spider attack alone as that can be damaged by any weapon. I will update the skeleton and moss giant C# scripts to only take damage if the player purchased the flame sword.

We can update the player C# script with the power ups, to set the sword arc active and a greater jump height.

Update Shop

Now we can update the shop with the two other purchase options. We need to update the bool variables in the Game Manager, and call the functions in the player script.

Let’s see if this works.

Thank you for your time!

I have a few more updates to make to the game in the next article.

--

--

--

An Engineering Manager consultant who is seeking additional skills using Unity 3D for game and application development.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Serverless Architecture: Learn it, Perfect it and Evolve with it

What is an Allocator?

8 reasons why your mail server feels better in the cloud

PHP Microservice Framework Swoft — v2.0.7 Released

RESUME PARSER-PYTHON

Practices As Consequences

One simple step to improve your Django skills — use django-debug-toolbar

Bringing API Workflows to PubNub’s Realtime Data Network

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
Chris Nielsen

Chris Nielsen

An Engineering Manager consultant who is seeking additional skills using Unity 3D for game and application development.

More from Medium

Journal 143 — Unity Project Development, 2.5D Shooter

Creating an Office Den in Unity Part 2: Lights, Cookies and Emissions

Making a RTS game #48: Various fixes, improvements and clean-ups (Unity/C#)

A Series On Creating Immersive Audio in Unity with Custom Wwise Scripts