コード例 #1
0
ファイル: Level.cs プロジェクト: Xerotico/Mad-Bomber-
        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);
        }
コード例 #2
0
ファイル: Block.cs プロジェクト: Xerotico/Mad-Bomber-
        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;
        }
コード例 #3
0
ファイル: GameObj.cs プロジェクト: Xerotico/Mad-Bomber-
 public GameObj(GameObj obj)
 {
     this.size = obj.size;
     this.texture = obj.texture;
 }