From c1eb3f4c18404d4921adc3d38dfa7438a47f4aa0 Mon Sep 17 00:00:00 2001 From: realtradam Date: Mon, 9 Aug 2021 10:32:45 -0400 Subject: initial piranha --- lib/mobs/fish.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lib/mobs/fish.rb (limited to 'lib/mobs/fish.rb') 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 -- cgit v1.2.3