Fix #2509 : Floating Platform Object Idea
The Floating Platform has the following characteristics:
- Floats on top of water
- Has a wave-like motion on water
- Reacts to Tux jumping on it with bubbles and a sound effect
- If not placed on water, behaves like a normal object with normal gravity
- Is placed slightly under water to simulate floating
- If it has rocks on top, it sinks faster or slower based on the number of rocks
- If it's sinking and the rocks are removed, it floats again
Closes #2509
Can you please fix these compiler errors:
In file included from /home/runner/work/supertux/supertux/src/object/floating_platform.cpp:17:
/home/runner/work/supertux/supertux/src/object/floating_platform.hpp:48:9: error: private field 'm_max_sink_depth' is not used [-Werror,-Wunused-private-field]
float m_max_sink_depth;
^
/home/runner/work/supertux/supertux/src/object/floating_platform.hpp:50:7: error: private field 'number_rocks' is not used [-Werror,-Wunused-private-field]
int number_rocks;
^
@bruhmoent about the notes, here is a video of what is happening https://www.youtube.com/watch?v=0HYPXKxie-Y Do you have some different behaviour when rocks are taken of the platform? The player is jittering in what way? About the other suggestions I am working on them!
https://github.com/user-attachments/assets/53502538-c273-4162-bbd3-3c4ee2b08826
Any update on this PR?
Closing as nobody seems to be working on this. Create a new PR when the bugs are fixed.