Skip to content

Instantly share code, notes, and snippets.

@tangentstorm
Created May 14, 2026 19:11
Show Gist options
  • Select an option

  • Save tangentstorm/1a4eed78554226d806b9676b5b73b4dc to your computer and use it in GitHub Desktop.

Select an option

Save tangentstorm/1a4eed78554226d806b9676b5b73b4dc to your computer and use it in GitHub Desktop.
on view do
c.pos: c.pos+gamepad.dir * 4
c.pos: (0,0) | c.pos & card.size - c.size # bounds check
if gamepad.down.action c.pattern:32+random[16] c.fill[] end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment