CSE3902-Group-3 / CSE3902-TheLegendOfZelda-Remake

Remake of NES The Legend of Zelda game
3 stars 0 forks source link

triforce sprite persisting through levels #481

Closed EthanGlenwright775 closed 11 months ago

EthanGlenwright775 commented 11 months ago

This issue was discussed in a recent PR but I figured I would document it here, so that we do not forget about it

SimonL9889 commented 11 months ago

@EthanGlenwright775 you said you have some not-clean ideas to fix it, just wanna make sure if you have some better ideas now, otherwise I think I'll try move Level2 further away to avoid the issue

EthanGlenwright775 commented 11 months ago

I don't think it should be necessary to move the level even more, the problem is the triforce sprite is in persistant drawables which is not flushed out between levels because the HUD disappears when I try to do that. I guess I could take this issue and manage all the triforce references in levelmanager and then destroy them in LevelTransitionState().

SimonL9889 commented 11 months ago

Sounds good, before you get that done I'm going to continue looking for which part of code is drawing that sprite, but I wouldn't recommend counting on me