Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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;
        }
Esempio n. 3
0
 public GameObj(GameObj obj)
 {
     this.size = obj.size;
     this.texture = obj.texture;
 }