summaryrefslogtreecommitdiffhomepage
path: root/lib/mobs/piranha.rb
blob: c7c112d7cb2c7995725a5ce60646c83cd6caedea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

class Piranha
  def self.create(x, y)
    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