High performance Mario Kart on Ruby
summary
A working Ruby pipeline captures Switch video over an HDMI→Ethernet dongle, ffmpeg pulls UDP frames at ~2 fps, and a Ruby pHash-based frame detection module recognizes menus, race screens and items; race snapshots feed a state machine that reconstructs matches and plots timelines with Google Chart URLs. Rankings use a Ruby TrueSkill ranking implementation and post a Slack-integrated leaderboard. Demo runs live and reliably, took a few evenings plus polishing, but is limited by sampling rate, disk throughput and occasional visual variance.
AI-written summary · about
chapters (11)
- 0:00Start
- 3:54True Skills
- 14:17Step Two Extracting the Information
- 16:37Menu Detection
- 19:52Item Detection
- 20:36Item Distribution
- 21:28Race Result Screen
- 23:31Intro Screens
- 26:07What Did I Learn
- 28:56Questions
- 31:20Any Plans To Implement Support for the Battle Modes
related talks
33mMake a Massively Multiplayer Ruby Game with Dragon Ruby
31mHow I built my own Twitch-Plays-Pokémon
01h 42mSoup to Nuts: Build a video game using Ruby!
22mInvariants in my own Ruby: some things must never change
36mStreaming over the web with modern Ruby
45mAttention Rubyists: you can write video games
01h 06mBuilding Games with Ruby
01h 09mFlash Talks
