예제 #1
0
 public MushroomOneUp(Game1 game, float x, float y) : base(new Vector2(x, y), new LVector2(new RectangleLimit(5, 10)), new LVector2(Limit <Vector2> .NONE))
 {
     Bounds              = new Rectangle(0, 0, 1, 1);
     Movement            = new EntityMovement(game);
     Collision           = new ItemCollision();
     mushroomOneUpSprite = ItemSpriteFactory.Instance.CreateMushroomOneUpSprite();
 }
예제 #2
0
 public Star(Game1 game, float x, float y) : base(new Vector2(x, y), new LVector2(new RectangleLimit(5, 10)), new LVector2(Limit <Vector2> .NONE))
 {
     this.game  = game;
     Bounds     = new Rectangle(0, 0, 1, 1);
     Movement   = new EntityMovement(game);
     Collision  = new ItemCollision();
     starSprite = ItemSpriteFactory.Instance.CreateStarSprite();
 }
예제 #3
0
 public Coin(Game1 game, Vector2 position) :
     base(position, new LVector2(Limit <Vector2> .NONE), new LVector2(Limit <Vector2> .NONE))
 {
     this.game  = game;
     Bounds     = new Rectangle(0, 0, 1, 1);
     Movement   = new EntityMovement(game);
     Collision  = new ItemCollision();
     coinSprite = ItemSpriteFactory.Instance.CreateCoinFloatingSprite();
 }