Slick2D Game Development

Another title for this book could be "How to go from game programmer to game developer without really trying". It’s the complete step-by-step guide to developing simple, entertaining games with the Slick2D engine.

Slick2D Game Development

Jacob Bevilacqua

Another title for this book could be "How to go from game programmer to game developer without really trying". It’s the complete step-by-step guide to developing simple, entertaining games with the Slick2D engine.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$12.60
RRP $17.99
Save 29%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$12.60
$29.99
$29.99p/m after trial
RRP $17.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781783289837
Paperback116 pages

Book Description

Most of the game development enthusiasts are ‘tinkerers’—people who are good at programming and know a lot about programming methods; however, they may have never written a complete game program, but would like to know how to create a program. Transitioning from programming to game development can often be difficult, however, Slick2D helps developers to create amazing games without having to deal with low level programming, and it simplifies many of the daunting tasks, such as rendering and window creation.

This practical guide will help you to understand the different components of Slick2D. Throughout the course of this book, you will develop different components, and by the end of the book you will combine all of these components to assemble a complete game.

Enabling you to add life to your games, this book will focus on the Slick2D game library. Starting with the installation and configuration of a game library, you will then move onto understanding the structure of a game. Throughout the book, you will be involved in developing different sections of a single game, which will help you to gain hands- on experience in understanding the Slick Workflow. Following on from this, you will be shown how to add additional features to your game such as adding input and music, while taking a detailed look at the render method.

Table of Contents

Chapter 1: Setting Up Slick2D
What is Slick2D?
Downloading the Slick2D and LWJGL files
Setting up an eclipse project
Native files
Summary
Chapter 2: 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
Chapter 3: 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
Chapter 4: 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
Chapter 5: A Look at Input
The importance of user input
Uses of input
Using input for movement
What we learned
Adding to our game
Summary
Chapter 6: 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
Chapter 7: 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

What You Will Learn

  • Set up the Slick2D workflow
  • Render images, primitive shapes, strings, and more, to the screen
  • Update the screen and utilize delta time
  • Utilize user input to manipulate the game state
  • Implement music and sound effects
  • Export and distribute your final game

Authors

Table of Contents

Chapter 1: Setting Up Slick2D
What is Slick2D?
Downloading the Slick2D and LWJGL files
Setting up an eclipse project
Native files
Summary
Chapter 2: 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
Chapter 3: 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
Chapter 4: 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
Chapter 5: A Look at Input
The importance of user input
Uses of input
Using input for movement
What we learned
Adding to our game
Summary
Chapter 6: 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
Chapter 7: 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

Book Details

ISBN 139781783289837
Paperback116 pages
Read More

Read More Reviews

Recommended for You

Learning Libgdx Game Development Book Cover
Learning Libgdx Game Development
$ 26.99
$ 18.90
Unity 2D Game Development Book Cover
Unity 2D Game Development
$ 14.99
$ 1.50
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
jMonkeyEngine 3.0 : Beginner's Guide Book Cover
jMonkeyEngine 3.0 : Beginner's Guide
$ 29.99
$ 6.00
GameMaker Game Programming with GML Book Cover
GameMaker Game Programming with GML
$ 26.99
$ 18.90
Procedural Content Generation for C++ Game Development Book Cover
Procedural Content Generation for C++ Game Development
$ 39.99
$ 28.00