letsgamedev / Suffragium

A game developed in a democratic cycle.
GNU Affero General Public License v3.0
51 stars 21 forks source link

Snake color selection persists in menu background (bug) #83

Closed RedstoneMedia closed 1 year ago

RedstoneMedia commented 2 years ago

Description

Issue type: Bug Report

The snake color selection persists in the menu background after playing the snake game, but then going back to the menu before selecting a snake color.

Steps to reproduce the issue

  1. Play the snake game
  2. Immediately open the pause menu
  3. Select "Back to menu"

Context

image

ASecondGuy commented 2 years ago

That bug is pretty funny. That happens because the dialog is not a child of the game scene so the game manager doesn't delete it. The easiest fix would be to save a reference to the dialog and delete it on tree exit if it still exists I think