stohrendorf / CroftEngine

An open-source Tomb Raider 1 engine remake
Other
285 stars 18 forks source link

Health and Breath Bars #160

Closed Richard-L closed 3 years ago

Richard-L commented 3 years ago

Health bar

PS1 EU and US versions have it on the right: image

PS1 JP and PC versions have it on the left: image image

I think the PC version screenshot shows the issue of resolution dependence regarding size and position. It's too far in the corner, and too small. In the current Alpha4 of EE, I'm afraid this is the same problem. Thus to fix this, it would be nice if for positioning and sizing, something pixel-independent could be found, or a breakpoint system like app designers use them (albeit that's getting a bit complicated perhaps). This is however touching on the bigger and more global topic of icon and element sizing inside EE.

Details on the health bar:

image

https://user-images.githubusercontent.com/4934209/109230834-cc9c7380-77c5-11eb-91f9-97eacdbc4570.mp4 ^notice the time it takes for it to disappear again after the update. Sadly I cannot record and play at 100% speed so the timing is slightly off.

https://user-images.githubusercontent.com/4934209/109230471-3c5e2e80-77c5-11eb-993c-5d32d3542714.mp4 ^after dying (I sped up emulation a bit here), the health bar keeps showing empty (black), even as the game overlays the menu and passport on the "Restart Level" page. cf https://github.com/stohrendorf/EdisonEngine/issues/157

Breath bar

Analog to the health bar, it's on the left/right for the different versions respectively. It's always positioned under the health bar, so that when losing health underwater both can show simultaneously: image

When you die underwater but still have breath, it empties out immediately, to show two empty bars: image

After filling up, it will keep showing up full until the player leaves water: image

Breath lasts for 1min apparently as we worked out. It can also be seen in Raina's video: https://youtu.be/a0tZGgQnoj4 ^Also can see how quickly the health bar depletes from loss of air.

Some observations/thoughts

stohrendorf commented 3 years ago

Maybe it could be an option to allow selecting between different layouts, e.g.

About colors, these stem from the levels' palette data.

The behaviour (fading, when to display, etc.) of the bars should be split into a separate ticket.