Question: Make Changes to the TestGame class to draw three different sprite objects (with different images). public class TestGame extends Game { Sprite ball; public void
Make Changes to the TestGame class to draw three different sprite objects (with different images).
public class TestGame extends Game { Sprite ball;
public void initialize() { setTitle("Test Game"); setWindowSize(800, 600); System.out.println("Hello, world!");
ball = new Sprite(); ball.setPosition(10, 10); ball.setTexture( Texture.load("images/basketball.png") ); ball.setSize(50, 50); group.add(ball); }
public void update() { } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
