PacktLib: Slick2D Game Development

Slick2D Game Development

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

Setting Up Slick2D

What is Slick2D?

Downloading the Slick2D and LWJGL files

Setting up an eclipse project

Native files

Summary

Game Structure

Game structures

State-based games

Setting up a state-based game

Customizing state switching

The app game container in all its greatness

Closing the window

What we learned

Starting our game

Summary

The Slick2D Workflow

Game workflow

Using the workflow

The initiation method

Initializing images

The update method

The render method

Workflow in a state-based game

Summary

A Deeper Look at Rendering

Rendering

How Slick2D makes rendering easy

What can we render?

Using the graphics parameter

Drawing a line

Drawing rectangles

Drawing ovals and circles

Drawing Arcs

Drawing gradient lines

Drawing strings

Altering the behavior of the graphics object

Drawing textured shapes

Drawing images

Scaling images

Applying a color filter to an image

What have we learned?

Adding to our game

Summary

A Look at Input

The importance of user input

Uses of input

Using input for movement

What we learned

Adding to our game

Summary

Sound and Music

The importance of sound and music

How to create sound effects and music

Using music in Slick2D

Using sound in Slick2D

Utilizing sound in an example

What have we learned?

Adding to our game

Summary

From Example to Game

What we will cover

The future of our game

Utilizing our delta timer

Adding lives and points

Finishing the delta timer

Checking for side collision

Adding visual feedback

Making the game unique

Summary

Full Source Code

Full Source Code

Full Source Code

Packaging Our Game

Packaging Our Game

Packaging Our Game

Packaging Our Game

Packaging Our Game

Index