Player name label draws on top of roofs and landmarks while the player is hidden behind them

Open
#76 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
frontend

Research direction

The label depth is set in src/GameScene.js, where the player name text sits at depth 900 above the map sprites. Read how depth and sprite ordering are assigned there, then reproduce by walking the player behind a tall landmark. Done when the label no longer draws over covered sprites, either via Y-sorting with the player or by hiding it while the cell is covered.

Written by the indexing model from the issue text.

Description

The yellow name label is at depth 900, so when the player walks behind a tall sprite (under the Dotonbori arch sign for about three cells, behind Tokyo Tower, roofs, torii tops) the sprite is hidden but the label floats over the art. Pre-existing behaviour, more noticeable with the #17 landmarks. Options: Y-sort the label with the player, or hide/fade it while the player's cell is covered by a higher-depth sprite (src/GameScene.js).

Found while implementing #17.

Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from devhou-se/game

All issues in devhou-se/game

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.