r/ruby • • Oct 07 '26

Show /r/ruby Rai*bert: a Q*bert-inspired arcade game running Ruby in the browser

I've been working on Rai*bert, a Q*bert-inspired arcade game where you hop around turning failing build tiles green while dodging bugs and regressions.

The game rules run in Ruby 4. The desktop version uses Gosu; the browser version runs Ruby through WebAssembly, with Canvas rendering and Web Audio. There are 20 stages, three difficulty settings, keyboard and touch controls, and a shared leaderboard. It's free to play, with no account needed.

Play: https://raibert.lol/

Source: https://github.com/cdimartino/raibert

The clip is a montage recorded with the game's autoplay mode. I'd appreciate feedback on the controls and difficulty, especially on mobile. If you try it, let me know which stage you reached and what difficulty you picked.

25 Upvotes

21 comments sorted by

3

u/Tiny-Judgment2523 Oct 07 '26

hi, i tried your game. when i failed/lost it jumped be straight to leaderboard and i didnt really know why. kinda happened fast and didnt get much feedback about my game being over.
pressing retry on the leaderboard just relooads the leaderboard.

the controls of QAED are kinda awkward to get where thats going to move me, i think a diamnond of keys on my keyboard might suit better. i wonder if QSDR might be easier. anyway - like your character.

2

u/HelpPristine9570 Oct 07 '26

yeah the game over thing caught me off guard too, felt like it just skipped ahead without telling me what happened

2

u/smeelsLikeFurts Oct 07 '26

Thanks for confirming. The leaderboard opens immediately when the run ends, which makes it easy to miss what happened.

1

u/smeelsLikeFurts Oct 07 '26

Thanks for the feedback. I agree that it's a bit of an awkward jump at game-over. I need to work on the ending mechanics to make that less jarring! Updates will follow!

1

u/smeelsLikeFurts Oct 07 '26

One thing I missed in my reply: Retry currently refreshes the scores. To restart, close the leaderboard, tap or click the game to open the menu, then choose Replay. That label is confusing. Thanks for the keyboard-layout suggestion too.

2

u/smeelsLikeFurts Oct 07 '26

Note - you can play it from the CLI as well natively.

2

u/TailorSubstantial863 Oct 07 '26

One beef is the spaceships, like the original q*bert, I thought they were a "return to top" mechanism, nope...they are nothing and I jumped off the edge! *eek*

Otherwise, pretty awesome. Made it to the 3rd or 4th level on my first play. Nice job.

2

u/smeelsLikeFurts Oct 07 '26 edited Oct 07 '26

Ah, I had that wrong. Each ship has a specific tile and direction you have to jump from. It’s usually up, but not always. I’ll make that clearer so it doesn’t look like you can jump onto one and then just fall off.

1

u/blowmage Oct 07 '26

This is fantastic. Congrats on shipping!

1

u/riffraff Oct 07 '26

I cannot understand this

LEFT/A RIGHT/D TO CHOOSE // RETURN TOO BOOT

what does the // mean? is "TO CHOOSE" associated to D or to // ?
after staring at it a lot I think you meant

A->LEFT ; D-> RIGHT ; RETURN -> START

2

u/riffraff Oct 07 '26

other than that, there seem to be some weird lag when touching the enemies but it's a fu little game, well done!

1

u/smeelsLikeFurts Oct 07 '26

The // is an or. Those are the directions for choosing the character. It's either (left arrow or a) for left or (right arrow or d) for right. I have been working on the hitbox logic to make it cleaner. Look for updates, and thanks for trying it!

1

u/riffraff Oct 08 '26

But you have  single / as or and then it becomes a double // so that's the consuming bit :)

2

u/smeelsLikeFurts Oct 08 '26

Ah, got it. Yeah, mixing / and // made that confusing. I’ve replaced that with separate instructions for choosing a character, changing difficulty and starting the game.

1

u/smeelsLikeFurts Oct 07 '26

Which browser and device were you using when you noticed the lag? That would help narrow it down.

1

u/riffraff Oct 08 '26

Right,  sorry for not mentioning it: latest chrome on MacOS, M1 mbp.

1

u/smeelsLikeFurts Oct 08 '26

Thanks! I pushed a collision fix since your first comment. Could you give it another go and let me know if you still see the lag? If it’s still there, which stage and enemy is it happening with?

1

u/riffraff Oct 08 '26

it's fixed! I donìt know what changed, but it feels better now, thanks

1

u/cocotheape Oct 08 '26

This is fun and the Ruby is cute.