dragonruby-platformer
This skill covers platformer-specific patterns. For core DragonRuby API see the main dragonruby skill; for cameras/render targets see /dragonruby-rendering.
Physics Model
GRAVITY = -0.4
MAX_FALL = -15
MOVE_SPEED = 4
ACCELERATION = 0.8
FRICTION = 0.85
JUMP_POWER = 12
def defaults_player(args)
args.state.player ||= {
x: 200, y: 200, w: 32, h: 48,
dx: 0, dy: 0,
on_ground: false,
facing: 1, # 1 = right, -1 = left
action: :standing,
More from nitemaeric/dragonruby-skills
dragonruby
Build games and prototypes with DragonRuby GTK (DRGTK). Use this skill when the user asks to write DragonRuby game code, implement game mechanics, work with the DRGTK API, or debug DragonRuby projects.
9dragonruby-ui
UI controls in DragonRuby GTK — buttons, checkboxes, toggles, scroll views, menus, input remapping, tooltips, progress bars, accessibility. Use when building game menus, HUDs, settings screens, or in-game UI widgets.
6dragonruby-audio
Advanced audio in DragonRuby GTK — spatial audio, procedural synthesis, beat synchronisation, crossfading, audio queues. Use when the user asks about DragonRuby music, sound effects beyond basic playback, rhythm games, or generated audio.
5dragonruby-yard
Set up YARD documentation and Solargraph LSP autocomplete for DragonRuby GTK projects. Use when the user asks about IDE autocomplete, type support, Solargraph, or editor integration for DragonRuby.
5dragonruby-rendering
Advanced DragonRuby GTK rendering — render targets, cameras with world/screen space, pixel arrays, HD/lowrez resolution, thick lines, blendmodes, viewport culling, tiling textures. Use when the user asks about advanced visual effects, camera systems, or rendering performance.
5dragonruby-3d
3D graphics techniques in DragonRuby GTK — raycasting, Mode7 floor projection, matrix transformations, wireframe rendering, sprite-based 3D, VR patterns. Use when the user asks about 3D visuals or pseudo-3D effects.
2