public CollisionDetector(MovementController mc,MapNew map)
 {
     this.map = map;
     this.mc = mc;
     playerRec.X = mc.p[0].x ;
     playerRec.Y = mc.p[0].y;
 }
예제 #2
0
        public CDC(MovementController mc, MapNew map)
        {
            image = map.image;
            this.mc = mc;

            // Maybe also give this overloaded constructor a variable that says what level we are in and then hardcore
            // the colors to the according level
            backGround = image.GetPixel(0, 0);
            deathColor = image.GetPixel(2, 0);
            winColor = image.GetPixel(3,0);
        }