sloukit / pydew-valley-uzh

Mod of Pydew Valley for an experimental study in Psychology
Creative Commons Zero v1.0 Universal
32 stars 61 forks source link

Features Goggles: Blurry view and health #151

Closed sloukit closed 2 months ago

sloukit commented 2 months ago

We need two features for the goggles:

  1. When wearing them, the view should get a little blurry (not too much, so that one can still play the game)
  2. When wearing the goggles, the last status of the health bar before taking the goggles on stops decreasing. It starts to decrease again when taking off the goggles
sloukit commented 2 months ago

Thanks, I merged the PR and it looks good. Can you make the view a little more blurry? You should be able to see everything, but the blur should be noticeable.

bingusdev commented 2 months ago

Sure, will do that in a few hours when i can.

sloukit commented 2 months ago

It's impossible to read the signposts when you're wearing Googles. Can we make the interaction with the signposts a state where the blur is paused? Or do you have another idea how to handle this?

bingusdev commented 2 months ago

Yeah, one way of doing it would just be implementing a game state when the signposts are being interacted with. This would work without any changes to the blur code, as the blurring only occurs when the game's state is PLAY and goggles are equipped.

Another, cleaner (in my opinion) but harder-to-implement way would be rendering signposts on top of the blur. I'm unsure how to do this; afaik all the sprites are rendered together. (Or signposts are part of the map I think and the map is rendered together) For this, you would need to render the signposts separately from the rest of the game.

Edit: Quick question, are the textboxes also unreadable?