Hi!
Best Demo! Made with the song Word Up by Korn. : https://playground.babylonjs.com/frame#ZAY3CK#21
This is a little thing I’ve been working on with Nyns (my way to justify it). It’s like a rhythm game, where you air strafe onto platforms coming at you. This demo allows you to make and test custom platform data and music. You watch from the side as the “player” bounces on each platform, turning them green.
PG 1: https://playground.babylonjs.com/#27J5X2#2
This allows you to make platform data. Let it run for a little bit to get the sound popup so you can hear the music. The click run again. After the countdown, the player and the music will start. Press space when you want a platform. So, just press space to the song. (it’s Endgame by Waterflame). Press enter to see the platform data. Copy it, and then take it into…
PG 2!: https://playground.babylonjs.com/#ZAY3CK#17
Paste it over the text “INSERT SEQUENCE HERE” at line 5. Then click play. you should see some more platforms. After the countdown, the music and player will start moving. This time, the player will bounce on the platforms, with an arc made by the function -0.05x(x-y) were y is the player’s z position, and y is the next platforms position. arcpos gets reset when you bounce so it acts like you are always starting at 0 for position z. If the player falls off, set plat.position.y on line 152 to somewhere between -1.1 and -1.25. smaller works better for close platforms, while bigger works better for farther platforms.
To have a custom song, just replace the song url on lines 173 for PG 1 and 165 for PG 2. Everything else should work the same.
I’d love to hear feedback! If you have any questions just feel free to ask
Enjoy!