Game Development Reference
In-Depth Information
We have now reached a stage in our development process where it is worthwhile
to take a quick look at whether everything works as expected. Run the game on a
platform of your choice to test it. The following is the screenshot of the game running
on Windows:
You should see a window entirely filled with a blue color. Seriously, the result is not
very exciting yet, nor does it resemble anything like a game. However, all the work
we have done so far gives us a foundation on which we can continue to build our
next extensions for the game.
Adding the test sprites
Let's now add some test code to try out the mechanism we built for updating and
rendering. We will do this by adding some simple test sprites that are procedurally
generated at runtime.
First, add the following imports to WorldController :
import com.badlogic.gdx.graphics.Pixmap;
import com.badlogic.gdx.graphics.Pixmap.Format;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.math.MathUtils;
 
Search WWH ::




Custom Search