Package main.ch.morrolan.gibb.snake

Examples of main.ch.morrolan.gibb.snake.Entity.moveRight()


    @Test
    public void moveRight() {
        Entity entity = new Entity(0, 0);

        entity.moveRight(40);
        assertEquals(new Point(40, 0), entity.position);

        entity.moveRight(-61);
        assertEquals(new Point(-21, 0), entity.position);
    }
View Full Code Here


        Entity entity = new Entity(0, 0);

        entity.moveRight(40);
        assertEquals(new Point(40, 0), entity.position);

        entity.moveRight(-61);
        assertEquals(new Point(-21, 0), entity.position);
    }

    @Test
    public void tick() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.