public SetFullRectangle ( |
||
position | ||
spriteDimensions | ||
velocity | ||
cropLeft | int | |
cropRight | int | |
cropTop | int | |
cropBottom | int | |
Résultat | void |
public Powerup(Vector2 pos) { Id = powerUpIdCounter++; Position = pos; BoundingBox = new CustomBoundingBox(); BoundingBox.SetFullRectangle(Position, new Rectangle(0, 0, 16, 16), Velocity); }
public StaticTile(Vector2 position, string tileKey) { TileKey = tileKey; Position = position; BoundingBox = new CustomBoundingBox(); BoundingBox.SetFullRectangle(Position, new Rectangle(0, 0, 32, 32), Vector2.Zero); }