Exemple #1
0
 public Point(Position position, float width, float height, OpenTKColor color, int count)
     : base(position, width, height, color)
 {
     Count       = count;
     position.X += (this.Width / pointScale) * 1.5f;
     position.Y -= (this.Height / pointScale) * 1.5f;
 }
Exemple #2
0
 public Bonus(Position position, float width, float height, OpenTKColor color, int bonusCount)
     : base(position, width, height, color)
 {
     BonusCount  = bonusCount;
     position.X += (this.Width / bonusScale) * 1.5f;
     position.Y -= (this.Height / bonusScale) * 1.5f;
 }
Exemple #3
0
 public Wall(Position position, float width, float height, int index, OpenTKColor color)
     : base(position, width, height, index, color, true, true)
 {
 }
Exemple #4
0
 public CollectedItem(Position position, float width, float height, OpenTKColor color)
     : base(position, width, height, color, true, false)
 {
     position.X += Width / 2;
     position.Y -= Height / 2;
 }
Exemple #5
0
 public Place(Position position, float width, float height, int index, OpenTKColor color, bool isVisiable = false, bool collider = false)
     : base(position, width, height, color, isVisiable, collider)
 {
     this.Index = index;
 }
Exemple #6
0
 public PlaceDecorator(Place place, OpenTKColor color)
     : base(place.position, place.Width, place.Height, place.Index, color)
 {
     this.place = place;
 }