예제 #1
0
        public FlagDoor(float newX, float newY, LevelState.FlagColor color)
        {
            creation();

            removeFromGame = false;

            horizontal_pos = newX;
            vertical_pos = newY;
            doorColor = color;

            doorHeight = 8;
            width = 29.5f;
            height = 32f + (8f * doorHeight);

            doorIsClosed = true;
        }
예제 #2
0
        public FlagCloseSwitch(float newX, float newY, LevelState.FlagColor color)
        {
            horizontal_pos = newX;
            vertical_pos = newY;

            width = 32f;
            height = 128f;

            LevelState.setFlag(color, true);

            this.color = color;
        }
예제 #3
0
        public FlagLock(float newX, float newY, LevelState.FlagColor newColor)
        {
            creation();

            horizontal_pos = newX;
            vertical_pos = newY;
            width = 29.5f;
            height = 29.5f;

            color = newColor;
        }
예제 #4
0
        public FlagKey(float newX, float newY, LevelState.FlagColor newColor)
        {
            creation();

            horizontal_pos = newX;
            vertical_pos = newY;
            width = 29.5f;
            height = 29.5f;

            velocity = Vector2.Zero;
            acceleration = Vector2.Zero;

            acceleration.Y = 0.001f;
            pole = Polarity.Neutral;
            magneticMoment = 0.5f;

            color = newColor;

            originalPosition = new Vector2(horizontal_pos, vertical_pos);

            rotation = 0.0f;
        }