Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Chat message should only appear for user's who are "close" to hear it #27

Open
@djasnowski

Description

@djasnowski

Do you want to request a feature or report a bug?

bug

What is the current behavior?

When a user types on chat, everyone in the map can see it.

If the current behavior is a bug, please provide the exact steps to reproduce.

  • Player 1 logs in. Goes to (24, 20).
  • Player 2 logs in. Goes to (243, 93).
  • Player 1 says "Hello world."
  • Player 2 sees "Player 1: Hello world."

What is the expected behavior?

Player 2 should only see a message from the player who is saying a message if they are theoretically in their viewport. So 15x11 tiles should be their chat range.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HacktoberfestbackendNode.js-related or anything to do in the serverbug"Hey, that's not suppose to happen."easyIssue/feature that is easy to fix or implement. Good for 1st-time contributors.good first issueEasy issues that are excellent for people wanting to get in meat of the code.help wantedIssues that we need multiple opinions on.medium priorityIt would be awesome if this was done, but not very critical.playerFeatures/issues relating to the player of Delaford.web socketWebSocket issues and discussion.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions