summaryrefslogtreecommitdiffhomepage
path: root/app/components
diff options
context:
space:
mode:
Diffstat (limited to 'app/components')
-rw-r--r--app/components/label.rb13
-rw-r--r--app/components/singleton_score.rb4
-rw-r--r--app/components/weapon.rb2
3 files changed, 18 insertions, 1 deletions
diff --git a/app/components/label.rb b/app/components/label.rb
new file mode 100644
index 0000000..25b5529
--- /dev/null
+++ b/app/components/label.rb
@@ -0,0 +1,13 @@
+FF::Cmp.new("Label", props: {
+ x: 0,
+ y: 0,
+ text: 'label',
+ size_enum: 2,
+ alignment_enum: 1,
+ r: 255,
+ g: 255,
+ b: 255,
+ a: 255,
+ font: "font.ttf",
+ vertical_alignment_enum: 0
+})
diff --git a/app/components/singleton_score.rb b/app/components/singleton_score.rb
new file mode 100644
index 0000000..4f6514b
--- /dev/null
+++ b/app/components/singleton_score.rb
@@ -0,0 +1,4 @@
+FF::Cmp.new('SingletonScore',
+ score: 0,
+ singleton: true)
+FF::Cmp::SingletonScore.new
diff --git a/app/components/weapon.rb b/app/components/weapon.rb
index bb7becd..0c0963a 100644
--- a/app/components/weapon.rb
+++ b/app/components/weapon.rb
@@ -1,5 +1,5 @@
FF::Cmp.new('Weapon',
damage: 35,
cooldown: 0,
- cooldown_max: 15,
+ cooldown_max: 7,
speed: 20)