Early Prototype for a Nyns side mode; Rhythmic Bunnyhopping!

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 :wink:
Enjoy!

3 Likes

Here is demo data for the song:

0, 573.35, 706.44, 1156.66, 1372.32, 1623.17, 1773.11, 2089.68, 2206.40, 2589.98, 2706.59, 3073.01, 3290.11, 3589.18, 3723.07, 3956.37, 4073.09, 4206.31, 4606.61, 4689.76, 5206.46, 5406.40, 5573.01, 5706.57, 5806.97, 6006.41, 6506.37, 6806.45, 7123.05, 7522.91, 7656.37, 7806.53, 7939.72, 8072.97, 8439.77, 8773.27, 8923.14, 9039.64, 9173.24, 10056.56, 10639.61, 10806.16, 10939.63, 11072.94, 11991.17, 12623.19, 12872.90, 13006.44, 13106.26, 13956.71, 14589.58, 14788.88, 14956.14, 15072.86, 15906.24, 16756.17, 17022.57, 17306.23, 17522.85, 17806.20, 18106.20, 18539.71, 18772.97, 18889.52, 19106.13, 19339.53, 19588.86, 19806.20, 20472.92, 21289.64, 21739.55, 21972.81, 22406.28, 22639.45, 22772.97, 22956.05, 23206.19, 23422.95, 23656.13, 24406.31, 24639.41, 24872.69, 25122.78, 25322.79, 25589.43, 25839.48, 26223.11, 26539.65, 26672.75, 26889.47, 27105.41, 27339.27, 27589.40, 28339.44, 29072.73, 29555.20, 29789.55, 30255.70, 30406.14, 30522.56, 30772.78, 31022.98, 31272.67, 31489.34, 32156.06, 32422.61, 32689.23, 32939.19, 33439.33, 33606.04, 33756.00, 33956.44, 34089.39, 34255.88, 34439.33, 34688.54, 34839.37, 34938.47, 35089.47, 35239.33, 35339.19, 35506.01, 35689.19, 35822.98, 35989.26, 36155.96, 36272.74, 36555.90, 36739.19, 36872.60, 37272.54, 37372.78, 37622.52, 37871.88, 38172.74, 38389.53, 38622.54, 38839.25, 39055.84, 39305.92, 39589.40, 39722.64, 39823.22, 40189.45, 40339.46, 40939.21, 41222.47, 41322.64, 41472.53, 41572.90, 41689.67, 41939.19, 42055.96, 42189.20, 42439.19, 42539.20, 42656.05, 42789.17, 42922.52, 43189.27, 43305.94, 43439.24, 43555.78, 43672.57, 43906.06, 44021.77, 44139.29, 44255.88, 44389.18, 44489.28, 44605.84, 44755.83, 45172.45, 45289.11

Paste over “INSERT SEQUENCE HERE” at line 5 in pg 2. The timings seems to off but this data was made the pg 1 and a lot of space spamming.

I made a couple edits to make it look cooler. LAG WILL IMPACT HOW IT RUNS.

I just implemented a fail-safe. If a platform doesn’t turn green that means the player never bounced on it but my fail-safe worked and continued like normal.

1 Like