ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.41k stars 798 forks source link

Bounzy - yellow border at top #16817

Open Kz-92 opened 2 months ago

Kz-92 commented 2 months ago

Describe the bug

when playing, after you beat a level sometimes a yellow line will appear at the top of the screen, it seems to be the same as the 'focus rectangle' (I think thats what it is called)

https://github.com/ruffle-rs/ruffle/assets/103858019/2a98928a-2934-4e76-8705-233c1400e5bb

Expected behavior

there should be no yellow line

Content Location

BounzyBranded.swf.zip

Affected platform

Desktop app

Operating system

windows 10

Browser

No response

Additional information

No response

kjarosh commented 2 months ago

My testing shows that Flash Player also shows this focus rectangle at the same position (which is different for each level), but it does so only after resizing or moving the window. When the focus rect disappears after clicking, it does not come up again until the game is restarted.

In order to see the same yellow lines in FP:

  1. Start the game
  2. Select level 3
  3. Wait for the level to load
  4. Move the window
Kz-92 commented 2 months ago

oh, that's interesting I wasn't moving the Ruffle window, and it appeared again even after clicking interesting behavior what is the game focusing on when it happens?

kjarosh commented 2 months ago

The game focuses on a MovieClip representing the current level. Different levels have different clips, which have different highlight bounds.

You can see in Ruffle what is focused by clicking Debug Tools > View Stage Info > Stage > Current Focus.

This behavior is interesting because it's often the other way around: when moving the window, the highlight should disappear, not appear out of nowhere. Ruffle currently does not update the highlight at all when moving/resizing the window.