~/talk

Megaruby - mruby/c on Sega Mega Drive

Talkat RubyConf TH 2022 · 2022-12-09..12-10· [ruby]
github:yujiyokoo
slides:none on file

A presentation app and two demo games run as Sega Mega Drive ROMs, with core game logic written in mruby/c and platform glue, main entry and resource handling in SGDK. Build uses mrbc bytecode bundled into the executable after adding a C main, aggressive feature pruning to fit 64 KB RAM, and pre-rendered text to avoid runtime string allocations. Development uses the GensK emulator console for debugging, a hardware-only graphics glitch is found and fixed, and the demos boot and play.

AI-written summary · about

  1. 0:00Introduction
  2. 1:51Mega Present with Ruby and C
  3. 3:41Sega Mega Drive
  4. 5:04Introducing mruby and mruby/c
  5. 6:51Why mruby/c for Mega Drive
  6. 8:17Advantages of Mega Drive today
  7. 9:19Why mruby/c on Mega Drive
  8. 10:00SGDK overview
  9. 12:06Mega Drive graphics basics
  10. 14:15Tiles, sprites, and layers
  11. 16:09Memory challenges and optimizations
  12. 17:13Debugging without hardware
  13. 18:18Cross-compilation and ROM creation
  14. 20:03Integrating assets
  15. 21:28Core logic in Ruby
  16. 22:11First game demo
  17. 22:55Future plans and tooling
  18. 23:36Resources and getting started
  19. 24:28Second game demo
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.