From 43a07949acca8a11a3aee6ea915a9a3e00b373ab Mon Sep 17 00:00:00 2001 From: arngo <27396817+arngo@users.noreply.github.com> Date: Sat, 18 Dec 2021 22:10:28 -0500 Subject: implement button components and title screen --- app/components/button.rb | 3 +++ app/components/hitbox.rb | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 app/components/button.rb create mode 100644 app/components/hitbox.rb (limited to 'app/components') diff --git a/app/components/button.rb b/app/components/button.rb new file mode 100644 index 0000000..8f9126f --- /dev/null +++ b/app/components/button.rb @@ -0,0 +1,3 @@ +FF::Cmp.new('Button', + :action, + clicked: false) diff --git a/app/components/hitbox.rb b/app/components/hitbox.rb new file mode 100644 index 0000000..2b842a3 --- /dev/null +++ b/app/components/hitbox.rb @@ -0,0 +1,3 @@ +FF::Cmp.new('Hitbox', + x: 0, y: 0, + w: 50, h: 50) -- cgit v1.2.3