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