Npc constructor

Npc({
  1. required Vector2 position,
  2. required Vector2 size,
  3. double speed = 100,
})

Implementation

Npc({
  required Vector2 position,
  required Vector2 size,
  double speed = 100,
}) {
  this.speed = speed;
  this.position = position;
  this.size = size;
}