Package res.elements

Examples of res.elements.Health


            //b.getCurrentSpriteSet().get(0).offsety = -0.1f;
            addElement(a);
        }
        if(type=="h")
        {
            Health a = new Health();
            a.setStaticSprite("res/elements/h.png");
            a.setPosition(x/2,y);
            //  a.friction=0;
            //b.getCurrentSpriteSet().get(0).offsety = -0.1f;
            addElement(a);
        }

        if(type=="^")
        {
            Thorn a = new Thorn();
            a.setStaticSprite("res/elements/triangle.png");

            a.setPosition(x/2,y);
            //  a.friction=0;
            //b.getCurrentSpriteSet().get(0).offsety = -0.1f;
            addElement(a);
        }
        if(type=="~")
        {
            Platform a = new Platform();
            a.setStaticSprite("res/elements/elevator.png");
            a.getCurrentSpriteSet().get(0).offsety = -0.08f;
            a.setPosition(x/2,y);
            a.setBoxShape(1.5f,0.2f);

            a.centralPosition = new Vec2(x/2,y);
            //a.friction=0;
            //b.getCurrentSpriteSet().get(0).offsety = -0.1f;
            addElement(a);
View Full Code Here

TOP

Related Classes of res.elements.Health

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.