Ebb
Time-based helpers for Ruby game dev
Install / Use
/learn @alexford/EbbREADME
Ebb
Time-based helpers for Ruby game dev

Ebb is built with DragonRuby in mind, and is presented in this repo within a demo DragonRuby game for now, although it should work fine outside of that context.
# main.rb (DragonRuby)
require 'lib/ebb.rb'
def tick(args)
$e ||= Ebb.new
$e.tick
# Helpers yield to a block
$e.blink do |on|
args.outputs.labels << [10, 10, on ? 'on' : 'off']
end
# Or return a value
args.outputs.labels << [10, 30, $e.blink ? 'on' : 'off']
# See main.rb in this repo for more examples
end
How to use
-
Require
ebb.rb(copy it into your game, for instance, in lieu of other package management) -
Make an
Ebbinstance. You can do this however you need as long as the instance is shared across frames. The example above sets it as a global outside of the game's#tickmethod, but there are other ways. -
Call
#tickon theEbbinstance once per frame. -
Call helpers like
blink,wave, anddelay. Each returns a value or yields it to a block.
Docs
Coming soon
More
Related Skills
node-connect
345.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
104.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
