supertux icon indicating copy to clipboard operation
supertux copied to clipboard

Fix #2509 : Floating Platform Object Idea

Open goncalof148 opened this issue 6 months ago • 1 comments

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

goncalof148 avatar Jun 07 '25 15:06 goncalof148

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;
      ^

tobbi avatar Jun 07 '25 16:06 tobbi

@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!

goncalof148 avatar Jun 18 '25 20:06 goncalof148

https://github.com/user-attachments/assets/53502538-c273-4162-bbd3-3c4ee2b08826

bruhmoent avatar Jun 21 '25 15:06 bruhmoent

Any update on this PR?

Alasdairbugs avatar Jul 23 '25 19:07 Alasdairbugs

Closing as nobody seems to be working on this. Create a new PR when the bugs are fixed.

Hypernoot avatar Nov 06 '25 08:11 Hypernoot