summaryrefslogtreecommitdiffhomepage
path: root/lib/mobs/fish.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mobs/fish.rb')
-rw-r--r--lib/mobs/fish.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/mobs/fish.rb b/lib/mobs/fish.rb
new file mode 100644
index 0000000..a9999ae
--- /dev/null
+++ b/lib/mobs/fish.rb
@@ -0,0 +1,20 @@
+class Fish
+ def self.create(x, y)
+ puts 'creating...'
+ FF::Ent.new(
+ FF::Cmp::Fish[0],
+ FF::Cmp::Boids.new(x: x, y: y),
+ FF::Cmp::BoidVisuals.new(
+ obj: Camera::Image.new(
+ 'assets/Guppy Large Normal.png',
+ width: 25, height: 26
+ ),
+ vect: Camera::Line.new(
+ width: 7,
+ color: [1.0,0,0,0.5],
+ z: -1
+ )
+ )
+ )
+ end
+end