public override void Create(float x, float y)
 {
     base.Create(x, y);
     Box = World.Create(x - 8, y - 8, 16, 16);
     Box.AddTags(CollisionTag.NoCollision);
     Box.Data = this;
 }
Beispiel #2
0
        public override void Create(float x, float y)
        {
            base.Create(x, y);
            Box = World.Create(x - 8, y - 8, 16, 16);
            Box.AddTags(CollisionTag.NoCollision);
            Box.Data = this;

            for (int i = 0; i < 15; i++)
            {
                Segments.Add(new SnakeSegment(this, i));
            }
        }
Beispiel #3
0
 public void Create(float x, float y)
 {
     Box = World.Create(x - 4, y - 4, 8, 8);
     Box.AddTags(CollisionTag.Character);
     Box.Data = this;
 }
 public Crate(IBox box)
 {
     this.box      = box.AddTags(Tags.Group5);
     this.box.Data = this;
 }
Beispiel #5
0
 public override void Create(float x, float y)
 {
     Box      = World.Create(x - BulletSize.X / 2, y - BulletSize.Y / 2, BulletSize.X, BulletSize.Y);
     Box.Data = this;
     Box.AddTags(CollisionTag.NoCollision);
 }