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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!