Ejemplo n.º 1
0
        //public enum State
        //{
        //    Default,
        //    Airbourne,
        //    Swimming,
        //    Diving
        //}
        //public State ClydeState { get; set; }

        public Clyde(float initialX, float initialY)
            : base("Turtle", initialX, initialY, CLYDE_WIDTH, CLYDE_HEIGHT)
        {
            this.SpawnPoint = new Vector2(initialX, initialY);
            Velocity = Vector2.Zero;
            base.state = State.Default;
            base.jump = 8.3f;
            back = new ClydesBack(this,initialX + 5, initialY - 3, CLYDE_WIDTH -20, 5);
        }
Ejemplo n.º 2
0
        //public enum State
        //{
        //    Default,
        //    Airbourne,
        //    Swimming,
        //    Diving
        //}
        //public State ClydeState { get; set; }

        public Clyde(float initialX, float initialY)
            : base("Turtle", initialX, initialY, CLYDE_WIDTH, CLYDE_HEIGHT)
        {
            this.SpawnPoint = new Vector2(initialX, initialY);
            Velocity        = Vector2.Zero;
            base.state      = State.Default;
            base.jump       = 8.3f;
            back            = new ClydesBack(this, initialX + 5, initialY - 3, CLYDE_WIDTH - 20, 5);
        }