summaryrefslogtreecommitdiffhomepage
path: root/lib/mobs/fish.rb
blob: a9999ae6c490f4dcc684c45587203c9f77f047aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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