public Sparkle(World world) : base(world) { this.SpriteName = "sparkle"; this.IsGravityDisabled = false; frames = 0; this.DeleteMarker = gameObj => gameObj.Position.Y > 480; }
public RectangleBlock(World world) : base(world) { this.IsGravityDisabled = true; sticker = null; this.Shape = new WrapperRectangle(this); this.CollisionDetector = new RectangleCollisionDetector(this); }
public StickyBirdObj(World world) : base(world) { this.SpriteName = "bird2"; shape = new WrapperCircle(this, 25f); collisionDetector = new CircleCollisionDetector(this, shape); IsAlive = true; InitAnimator(); this.UpdateAnchorPoint(27.5f, 27.5f); }
public DynamicGameObject(World world) { velocity = new Vector2(0, 0); center = new Vector2(0, 0); mass = 1; frictionCoeff = 1f; this.world = world; angularVelocity = 0f; RequiredCameraPosition = new Vector2(0, 0); this.Type = ObjectType.Balance; }
public LineObject(World w, string sprite) : base(w) { this.spriteName = sprite; this.IsGravityDisabled = true; lineStart = new Vector2(); lineEnd = new Vector2(); deltaVector = new Vector2(0, 0); normalVector = new Vector2(0, 0); this.Shape = new WrapperLine(this); this.CollisionDetector = new LineCollisionDetector(this); }
public StarObject(World currentWorld) : base(currentWorld, 25/2) { this.SpriteName = "stars"; this.IsGravityDisabled = true; rotatorObj = new DynamicGameObject(currentWorld); rotatorObj.IsGravityDisabled = true; rotatorObj.SpriteName = "rotator"; rotatorObj.Rotation = (float) (RandomUtil.Random.NextDouble() * Math.PI * 2); rotatorObj.AngularVelocity = 0.15f; this.Type = ObjectType.Star; //InitAnimator(); }
public LineObject(World w) : this(w, "line") { }
public Spikes(World world) : base(world) { this.SpriteName = "spikes"; this.Type = ObjectType.Deadly; }
public RedBall(World world) : base(world) { this.spriteName = "redbean"; this.IsGravityDisabled = true; }
public WoodBlock(World world, bool half) : base(world) { this.SpriteName = half ? "woodh" : "stone"; }
public WoodBlock(World world) : this(world, false) { }
public Nest(World world) : base(world) { this.SpriteName = "nest"; this.Type = ObjectType.Nest; }
public ElectricFence(World w) : base(w, "lighting") { this.Type = ObjectType.Deadly; this.IsGravityDisabled = true; }
public CircleObject(World world, int radius) : base(world) { shape = new WrapperCircle(this, radius); collisionDetector = new CircleCollisionDetector(this, shape); }