kiigame / kiigame/adventure_engine

Bug: NPC speech bubble is drawn at the wrong place in certain situations

Open
#263 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
1
Forks
6
Avg merge
2m
Merged PRs (30d)
4

Description

It's weird.

Steps to reproduce:
* start LZ
* go to locker room 2 (one with the jersey)
* click on the door

Expected:
* speech bubble is drawn so that the tail is on the door and the bubble is left of the door

Actual result:
* speech bubble is partially off screen to the right

More fun details:
* on second click (and subsequent clicks), the bubble is drawn correclty
* but now, going to locker room 1 and clicking on the door draws _that_ bubble in the wrong place
* you can go "back and forth" - it seems if the bubble "changes sides", it's drawn wrong on the first click

The coordinates accessed and set during NpcMonologueView::npcMonologue are correct, according to unit testing or console.logging during actual play.

I have no idea where the wrong placement comes from.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start LZ and reproduce the locker room 2 and locker room 1 door clicks, including switching back and forth. Read NpcMonologueView::npcMonologue and trace the speech bubble rendering when it changes sides. Done means the bubble tail stays on the door, the bubble is left of it, and the first click after each side change is positioned correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.