zero-to-mastery/ZTM-Quest

Feature: Add a new best friend (dog) to map_forest_junction

开放

#123 创建于 2024年10月8日

 (2 条评论) (0 个反应) (0 位负责人)JavaScript (132 个派生)auto 404
hacktoberfest

仓库指标

星标
 (39 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Every person on earth should have a pet with in my opinion 😅.

Pets enrich our daily life in a positive way.

Add a dog to the game which follows our main character along. The dog should be placed into map_forest_junction. It should move their around randomly.

It is lost there so to say. As soon as the main character got seen by the dog, it should move towards the main character. Once the dog collides with the main character, a dialog box should appear which says

wuff wuff, hehe he wuff

It would be cool if you could also add barking sounds which will play while the text is visible.

Then the text should get replaced with a text like

Looks like you found a new friend, if it might wants to move along?

You can give the user the ability to decide if the dog should follow along or not.

If the user decides yes, then let the dog follow the user everywhere the main character goes to.

The dog game object should also have its own property state so that we can build upon it in the future.

贡献者指南