Loading...
892
Game
Dead Drift
1 year ago

QUICK UPDATE on the MISSIONS SYSTEM!

I have been working on this progression layer and things have been going well! Here's a video of me testing this system!

Click on Read Article for more info! :)

#gamedev #indiedev


I haven't been really vocal in here because the things I'm working on now are kinda "programmy", but here's an update! :)

Overview

Part 1 of the Mission System is done. This part covers the missions themselves, making them collect data from the runs and updating them on the new Mission Screen (which is still a placeholder!)

image.png

(see the very professional placeholder names I use for the missions?)

The other parts consist of the following:

  • Part 2: making completed missions leave this screen, making room for another mission;

  • Part 3: the reward unlocks (new powers, new cars, persistent upgrades, etc);

  • Part 4: actually finishing this screen and making it pretty. Or at least "pretty-ish".

Mission Structure

Since there are going to be many, many missions in the game, I decided to write them using a special file Construct data structure. I created a Mission.json file where I encode all mission-related data:

image.png

Each column is a different mission. The rows correspond to the following parameters:

  • Row 1: Mission Objective;

  • Row 2: Objective Amount (how many zombies to kill, how many seconds to survive, etc);

  • Row 3: The current progress of the player (i.e: how many zombies the player has killed already);

  • Row 4: If the player has completed this mission already or not (0 for uncompleted missions, 1 for completed);

  • Row 5: The name of the vehicle the player has to use, in case this mission needs to be completed with a specific vehicle.

Since this is an "external" file, we need to load it to the game via the Construct AJAX object. This loading is asynchronous, so you have to register a second event to process is receive date. Here's how you do it:

image.png

In one event you request the external .json file. When this request receives a response, you can load this response into the Array object using the LoadFromJSON function, feeding it as a parameter the LastData string variable available at the AJAX object.

It all sounds complicated but once you get what's happening, everything works like a charm! :)

I don't want to make this article too long, so I'm gonna stop here!

Next time I'm posting about Dead Drift, I'll be likely showing you folks the Mission Complete stuff! :)

Hold on to your hats! :D



18 comments

Loading...

Next up

Here's what I'm thinking to celebrate the 1K followers milestone... the very first SOCK TOWN prototype!

It's heavily inspired by the Reigns game, but instead of being about being a king... it's about being the director of the "Sock Town" TV show!

Everybody talking about the Super Mario movie and here I am thinking how cool it would be if they made a movie out of THIS game...

For this #DrawABirdDay I decided to make a simple animation as if Greedy Grackle was one of the Socks from Sock Town!

Here's Greedy Grackle Sock!

#pixelart #animation

Highrise Game Jam Reminder: In order to enter to win the Jam, your game must be created in Unity and submitted using the Highrise Studio Hub.

Learn all the deets about the jam at https://gamejolt.com/c/gamedev/highrisejam

Fixed some nasty bugs, changed the dynamic font to Eeve Somepx's great "Hungry" font, and few things more!

Now it's time to go to sleep! See ya tomorrow!

🥳The Highrise Game Jam has begun! 🥳

The Highrise Game Jam is where creators come together to craft immersive 3D worlds using Highrise Studio! There are cash prizes! 💸💸💸

Learn the deets here: https://gamejolt.com/c/gamedev/highrisejam

A photo with Abacaxi, one of my dogs!

And, yes, we're both scraggly dudes.

CONSTRUCT TUTORIAL TIME! I wanted to make a "mini-article" on how to make the distance-based zoom control mechanic I did for Dead Drift since it's so easy!

If you're interested, click on [Read Article] below!

#indiedev #gamedev

🥳 The Highrise Game Jam is Underway! 🥳

Watch the video for tips on getting started building your first world in Highrise Studio. (Creating and submitting within Highrise Studio Hub is the only way to enter the jam!)

Learn more: https://gamejolt.com/c/gamedev/highrisejam

It's coming, folks!!! Anyone else excited???