Package game.habits

Examples of game.habits.DynamicHabit


    }

    @Override
    protected void onAdd() {
        AnimationHabit animation = addHabit(new AnimationHabit());
        dynamic = addHabit(new DynamicHabit(new Rectangle(startPosition, new Vector(24, 48)).toPolygon(), 60));
        addHabit(new GravityHabit(dynamic));
        state = addHabit(new PlatformCharacterStateHabit(dynamic));
        addHabit(new PlatformCharacterInputHabit(state));
        addHabit(new PlatformCharacterAnimationHabit("player", 52, animation, state));
        addHabit(new PlatformCharacterMovementHabit(state, dynamic, animation));
View Full Code Here


    }

    @Override
    protected void onAdd() {
        AnimationHabit animation = addHabit(new AnimationHabit());
        DynamicHabit dynamic =
                addHabit(new DynamicHabit(new Rectangle(startPosition, new Vector(24, 48)).toPolygon(), 60));
        addHabit(new GravityHabit(dynamic));
        state = addHabit(new PlatformCharacterStateHabit(dynamic));
        addHabit(new PatrolHabit(state));
        addHabit(new PlatformCharacterAnimationHabit("soldier", 52, animation, state));
        addHabit(new PlatformCharacterMovementHabit(state, dynamic, animation));
        addHabit(new HurtHabit(this, dynamic.getPolygon()));
        addHabit(new MetalHabit(dynamic));
    }
View Full Code Here

        this.bounds = bounds.toPolygon();
    }

    @Override
    protected void onAdd() {
        DynamicHabit dynamic = addHabit(new StaticHabit(bounds));
        addHabit(new MetalHabit(dynamic));
    }
View Full Code Here

        this.startPosition = startPosition;
    }

    @Override
    protected void onAdd() {
        dynamic = addHabit(new DynamicHabit(new Circle(startPosition, 8).toPolygon(16), 1));
        addHabit(new GravityHabit(dynamic));
        metal = addHabit(new MetalHabit(dynamic));
    }
View Full Code Here

TOP

Related Classes of game.habits.DynamicHabit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.