On this stage, let’s fill all the remaining fields at once.
chitChat
array is used to display messages in a sort of ‘news ticker’:
message
: a message that will be pushed to the ticker when the condition is metcondition
: an object that defines the condition when the message should start displaying in the ticker.
The structure is almost the same asavailabilityCondition
in upgrades, but here instead ofproducers
,
we useclicks
, orachievementId
. Like this: condition: { clicks: 100 } or { achievementId: 2 }
Next, we’ll add currency
, which is an object:
title
: a string that holds the name of the game currency, i.e. goldbigPictureURL
: a string, an https link to the game currency picture in.svg
formatsmallPictureURL
: a string, same asbigPictureURL
, but less detailedbankPictureURL
: a string, an https link to the bank picture in.svg
format
Fill in the currency and chitChat with relevant data and let’s finalize our backend in the next stage.
Oh, and if you haven’t already done it, pick a good title
for the game.
This task is part of the Full-Stack JavaScript Course.
If you have any issues with it, you can ask for community help below the post.
Feel free to help others if you’ve already solved the task.