public Level(string name, List<Block> blocks, List<NPC> mobs, GameObj background) { this.Name = name; this.blocks = blocks; this.mobs = mobs; this.background = new Block(background, -1, 0.9f, destroyable:false, passeble:true); }
public Block(GameObj obj, float X, float Y, float scale = 0.03125f, bool destroyable = true, bool passeble = false) : base(obj) { this.position = new PointF(X, Y); this.destroyable = destroyable; this.passeble = passeble; this.size.X *= scale; this.size.Y *= scale; }
public GameObj(GameObj obj) { this.size = obj.size; this.texture = obj.texture; }