TUXDB - LINUX GAMING AGGREGATE
by NuSuey
NEWSFEED
▪️ GAMES
▪️ STEAM DECK ▪️ DEALS ▪️ CROWDFUNDING ▪️ COMMUNITY
tuxdb.com logo
Support tuxDB on Patreon
Currently supported by 9 awesome people!

🌟 Special thanks to our amazing supporters:


✨ $10 Tier: [Geeks Love Detail]
🌈 $5 Tier: [Arch Toasty][Benedikt][David Martínez Martí]

Steam ImageSteam ImageSteam ImageSteam ImageSteam ImageSteam Image
Devlog 57 - Level Editor, Scoring Rework

I've been continuing to try my best to clock in some hours toward fleshing out the Rhythm Quest level editor! Here's some quick demos of what is now possible in the editor:

More Tools


The level editor has a LOT of functionality that needs to be built out, so a lot of the time was spent just toward implementing additional tools, which you can see in the demos above. A no-so-short list of what I ended up implementing tool-wise:
  • "Insert Floor" tool to insert blank sections of track
  • "Delete Floor" tool to delete sections of track + included obstacles
  • Undo/Redo, (with Ctrl+Z / Ctrl+Shift+Z/Ctrl+Y keyboard shortcuts)
  • "Jump" tool which inserts either ground jumps or air jumps
  • When inserting or deleting jumps, the other obstacles adjust (e.g. ground jump becomes air jump)
  • Visualization for jump arcs (also provides something to click to delete jumps)
  • "Flight Path" tool lets you click and drag to insert flight paths
  • "Ghost Enemy" tool for purple multi-hit enemies
  • "Edit Ramp" tool for adjusting the slope of ground / flight paths
  • "Checkpoint" tool for adding checkpoints
  • "Spike Enemy" tool for adding spike enemies
  • "Scroll Speed" tool for adjusting the relative scroll speed of each section
  • "Water/Speed Zone" tools let you click and drag to insert those zones

Character Preview


Something cool you'll notice in the gifs is an animated character preview that goes through the level. It's not too fancy, as it doesn't actually interact with any of the obstacles, but it's a fun little visual preview that didn't require a ton of effort to make happen. During level generation I actually already calculate the entire player path through the level -- this is needed to understand where to place obstacles such as coins, flying enemies, and the like. (This is actually just one of several such calculated paths; there's another one for the camera, for instance) You can see that in this debug view in red here:
Since I already have this path on hand, it was simple to just create a preview sprite that traced along the same path at the correct speed. The only other work I needed to do was to trigger the appropriate animations based on the obstacle timings. There's no collision detection or anything like that, so it's very simple!

Tooltips and Notifications


Another thing you may have noticed is that I've added tooltips for the different buttons in the editor! Right now most of them are on a big palette on the left (with some additional ones on the bottom-right), and they're just icons, so I thought it would be nice to show a little tooltip when you over over each button:
Along with that, I also implemented a notification system at the top of the screen! This not only gives you a little more context for how to use each tool (some of them involve dragging, others just require clicking), but also displays information on actions such as undo / redo history:
I wanted this to look nice, so it supports the ability to either show multiple notifications at once (automatically scrolling them as they fade out), or replace an existing notification. The way this works is that there are different "slots" for notifications, so for example if there's already a tool selection notification showing, it'll just replace that existing one instead of showing a brand new one.

Menu Hookup


I also took a second to make the level editor accessible from the main menu:
Right now the "Custom Levels" menu is empty otherwise, but eventually there will need to be some way to import / browse existing levels (more work for later...). As a side note, the buttons in the main menu now adjust their height dynamically instead of always being the same. This is because the main menu actually has more or less buttons depending on a whole slew of factors:
  • The "Quit" button isn't shown on web or mobile builds
  • The "Wishlist" button is only shown on demo builds
  • The new "Custom Levels" button may also have some restrictions (?) (TBD)
I don't know why I didn't do this earlier, but it was simple enough to set up with Unity's layout groups. I still wanted the "Start Game" button to be a little larger than the others, but I was able to set that up using custom LayoutElement components, so now that one is 125% the size of all the others, and it all happens automatically. Yay!

Waveform Rendering


I also ended up taking a little detour figuring out how to take a music file and calculate + render a waveform into a texture to display on the screen:
This task involves a surprising amount of technical finesse! A 1.5-minute song has some 4 million stereo audio samples, so obviously trying to plot and process all of that data is a little tricky to do in a performant and sensible way. Trying to draw a line between each of the 4 million points is pretty futile, so I didn't even bother doing that. Instead, a common approach is to separate the audio samples into chunks -- in this case, one chunk for each column of the final output texture. Then for each audio chunk we can simply take the min and max signal amplitude for all of those samples and draw a line representing the magnitude of that. (you could also use other metrics, such as the average signal magnitude) Because you're processing 4 million samples, this works OK, but is still a little slow. The other problem is how to actually draw all of the lines / pixels into the resulting texture in a way that's more efficient than simply calling Texture2D.SetPixel(...) thousands of thousands of times. This is a rare case where I actually dug into the technical details of how to optimize the performance here -- luckily, there's a Unity blog post from earlier this year that describes some details of how to write to textures efficiently, and there's a link provided to some sample code that leverages the parallel job system and burst compiler to speed that up. It seems a little bit black-magicky, but it did the trick and I'm able to generate that texture on the fly without a noticeable hitch in framerate (woohoo!). Right now since I'm just testing, the waveform appears as an ominous black-and-red texture behind the stage (haha), but eventually I hope to integrate this display into some sort of UI (?) that will help you tune the BPM and beat offset of the audio that you load into the editor. In case you're wondering, the texture is red-and-black because I'm using the lightweight one-byte-per-pixel R8 texture format (the same one I talked about in my backdrop optimizations post).

Next Steps


Despite all of the good work that I've been able to accomplish, there's still no shortage of work needed in order to bring the level editor into a fully-functioning state (not to mention a slew of extra quality-of-life features that I've thought of already). Chief among those is the menu interface for adjusting song timing properties (BPM/beat offset), which is why I started looking into the waveform rendering tech...but, there's also things like export/import functionality, backdrops, color palettes, particle effects, (the list goes on...). Hopefully I'll have even more to show off the next time I write an update!


[ 2023-09-24 23:52:58 CET ] [ Original post ]

Rhythm Quest
DDRKirby(ISQ) Developer
DDRKirby(ISQ) Publisher
1970-01-01 Release
Game News Posts: 43
🎹🖱️Keyboard + Mouse
🎮 Full Controller Support
No user reviews (0 reviews)
Rhythm Quest is an upcoming 2-button rhythm platformer game being developed by DDRKirby(ISQ).
Jump, attack, and fly to the beat to get past challenging obstacles in this rhythm-based twist on a traditional "runner" game.

Each type of enemy requires different button sequences to defeat:


Wings offer extra mid-air jumps, while flight paths require you to hold down the jump button:


Speed zones change up the rhythm of the song:


  • Over 30 levels across 6 different worlds, each with their own musical themes and gameplay mechanics
  • "9-bit" chiptune soundtrack hand-crafted to match gameplay rhythms
  • Adjustable latency calibration and audio scheduling for tight and responsive gameplay
  • Use coins to unlock bonus stages, alternate character skins, and more extras

MINIMAL SETUP
  • Storage: 1 GB available space
RECOMMENDED SETUP
  • OS: Ubuntu 21.10. Debian 11
  • Processor: 2.5 GHz Dual Core (Intel / AMD)Memory: 4 GB RAM
  • Memory: 4 GB RAM
  • Graphics: Nvidia GT740M | AMD Radeon R8 | Intel HD 630
  • Storage: 352 MB available space
GAMEBILLET

[ 6089 ]

16.95$ (15%)
12.98$ (74%)
28.97$ (42%)
2.99$ (85%)
5.22$ (74%)
18.39$ (8%)
16.57$ (17%)
6.65$ (65%)
33.97$ (15%)
2.10$ (58%)
4.12$ (17%)
21.22$ (15%)
8.39$ (16%)
3.74$ (75%)
24.78$ (17%)
15.00$ (50%)
17.79$ (11%)
3.24$ (78%)
16.99$ (15%)
12.42$ (17%)
49.79$ (17%)
3.75$ (75%)
12.59$ (16%)
17.19$ (14%)
23.99$ (20%)
15.99$ (73%)
21.74$ (38%)
21.27$ (65%)
8.27$ (17%)
4.79$ (76%)
GAMERSGATE

[ 3241 ]

9.99$ (50%)
3.0$ (70%)
0.75$ (85%)
1.76$ (91%)
4.56$ (89%)
41.99$ (40%)
0.86$ (57%)
8.99$ (55%)
3.04$ (70%)
30.0$ (50%)
2.55$ (87%)
2.94$ (58%)
25.0$ (50%)
13.59$ (32%)
3.48$ (83%)
15.99$ (20%)
15.74$ (37%)
1.73$ (75%)
10.13$ (22%)
8.1$ (73%)
9.99$ (50%)
3.38$ (77%)
0.64$ (87%)
4.05$ (73%)
3.19$ (79%)
3.75$ (85%)
1.5$ (75%)
5.0$ (90%)
5.0$ (75%)
4.5$ (77%)

FANATICAL BUNDLES

Time left:

7 days, 15 hours, 12 minutes


Time left:

13 days, 15 hours, 12 minutes


Time left:

10 days, 15 hours, 12 minutes


Time left:

10 days, 15 hours, 12 minutes


Time left:

10 days, 15 hours, 12 minutes


Time left:

10 days, 15 hours, 12 minutes


Time left:

10 days, 15 hours, 12 minutes


Time left:

10 days, 15 hours, 12 minutes


Time left:

10 days, 15 hours, 12 minutes


Time left:

10 days, 15 hours, 12 minutes


Time left:

10 days, 15 hours, 12 minutes


Time left:

10 days, 15 hours, 12 minutes


Time left:

10 days, 15 hours, 12 minutes


Time left:

10 days, 15 hours, 12 minutes


Time left:

10 days, 15 hours, 12 minutes


Time left:

35 days, 15 hours, 12 minutes


Time left:

15 days, 15 hours, 12 minutes


Time left:

7 days, 15 hours, 12 minutes


Time left:

42 days, 15 hours, 12 minutes


Time left:

31 days, 15 hours, 12 minutes


Time left:

28 days, 15 hours, 12 minutes


Time left:

36 days, 15 hours, 12 minutes


Time left:

38 days, 15 hours, 12 minutes


HUMBLE BUNDLES

Time left:

2 days, 9 hours, 12 minutes


Time left:

16 days, 9 hours, 12 minutes

by buying games/dlcs from affiliate links you are supporting tuxDB
🔴 LIVE