Loading...
893
Game
Dead Drift
2 years 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

HI! I'm getting close to hitting 1000 FOLLOWERS (woohooo!) and I'm thinking about doing some special things to celebrate this:

- A Fireside where we can play a drawing game together!

- A mini-game using the sock puppets!

What do you think of that?

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!

Posting some other DEAD DRIFT EXPERIMENT GIFS. You can see "enemy trucks" (the dark rectangle thingies roving around) AND big zombies (they have 10x the HP of a regular zombie!!)

Some additional comments in the article!

#pixelart #gamedev #indiedev

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

NEW UI PLANNING!

Since the beginning of this project, I've done its UI in a somewhat haphazard way. Now it's time to get some things right, so I'm planning to fix some things about its user interface.

Read more in the article by clicking on...

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

Sharing the pixel art I did for a personal project I never got to make. The player would control an enchanted chest that had to investigate the disappearance of its wizard master!

What do you think? Would this had looked cool?

#pixelart

MAKING YOUR CUSTOM BAR IN CONSTRUCT 3 - PART 1!

This is a simple tutorial about creating a custom bar using the native Progress Bar from Construct 3!

If you're interested in this kind of stuff, hop on and click on Read Article below! :)

#indiedev #gamedev

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

Hey, folks! It's been a while since I talked about Dead Drift, I wanted to give you folks a (not exactly) brief update!

Click below on [Read Article]!