Beginning Java Game Development with LibGDX

Apress
3
Free sample

Design and create video games using Java, with the LibGDX software library. By reading Beginning Java Game Development with LibGDX, you will learn how to design video game programs and how to build them in Java. You will be able to create your own 2D games, using various hardware for input (keyboard/mouse, gamepad controllers, or touchscreen), and create executable versions of your games. The LibGDX library facilitates the game development process by providing pre-built functionality for common tasks. It is a free, open source library that includes full cross-platform compatibility, so programs written using this library can be compiled to run on desktop computers (Windows/MacOS), web browsers, and smartphones/tablets (both Android and iOS).
Beginning Java Game Development with LibGDX teaches by example with many game case study projects that you will build throughout the book. This ensures that you will see all of the APIs that are encountered in the book in action and learn to incorporate them into your own projects. The book also focuses on teaching core Java programming concepts and applying them to game development.

What You Will Learn
  • How to use the LibGDX framework to create a host of 2D arcade game case studies
  • How to compile your game to run on multiple platforms, such as iOS, Android, Windows, and MacOS
  • How to incorporate different control schemes, such as touchscreen, gamepad, and keyboard

Who This Book Is ForReaders should have an introductory level knowledge of basic Java programming. In particular, you should be familiar with: variables, conditional statements, loops, and be able to write methods and classes to accomplish simple tasks. This background is equivalent to having taken a first-semester college course in Java programming.
Read more
Collapse

About the author

Lee Stemkoski is a professor of computer science and mathematics. He has been teaching Java Programming and Video Game Programming for the past five years. He has authored many scholarly articles as well as game development tutorials.
Read more
Collapse
4.7
3 total
Loading...

Additional Information

Publisher
Apress
Read more
Collapse
Published on
Dec 29, 2015
Read more
Collapse
Pages
276
Read more
Collapse
ISBN
9781484215005
Read more
Collapse
Read more
Collapse
Read more
Collapse
Language
English
Read more
Collapse
Genres
Computers / Computer Science
Computers / Information Technology
Computers / Programming / Games
Read more
Collapse
Content Protection
This content is DRM protected.
Read more
Collapse
Read Aloud
Available on Android devices
Read more
Collapse

Reading information

Smartphones and Tablets

Install the Google Play Books app for Android and iPad/iPhone. It syncs automatically with your account and allows you to read online or offline wherever you are.

Laptops and Computers

You can read books purchased on Google Play using your computer's web browser.

eReaders and other devices

To read on e-ink devices like the Sony eReader or Barnes & Noble Nook, you'll need to download a file and transfer it to your device. Please follow the detailed Help center instructions to transfer the files to supported eReaders.
Gain the skills required to create fun and compelling games using GameMaker: Studio, and its GML programming language. In this full-color book you’ll learn 24 practical programming elements that are important when creating any game. Each section includes an introduction to a new programming element, some examples, a worksheet, and mini projects to allow you to test your new knowledge. After completing all elements, you will put into action what you have learned in a classic arcade style game.
In Practical GameMaker: Studio, you will create a fully featured game, with guidance and in color, using version 1.4. After each section you’ll see how you’ll apply what you’ve learned to the final game, and discover additional projects to try. These mini projects include a separate scoring guide, and a working example for each, which is useful if you’re using this book in an educational environment. Similarly, the book also contains a number of assignments, which you may include as part of any associated coursework in your classes.
What You Will LearnUse GameMaker: Studio and GameMaker Language (GML) to create games
Work with GML variables, conditionals, drawing, keyport I/O, objects, and events
Create GML sprites, health/lives, alarms, collisions, and rooms
Improve your game with GML backgrounds, sound and music, splash screens and menus, and effects“/li>Include GML random and AI movements in your game
Use GML loops, arrays, ds_lists, paths, and scripts
Who This Book Is For
Experienced game developers new to GameMaker or for those with at least some prior exposure or experience with GameMaker: Studio but who are new to GML.
Learn to design and create video games using the Java programming language and the LibGDX software library. Working through the examples in this book, you will create 12 game prototypes in a variety of popular genres, from collection-based and shoot-em-up arcade games to side-scrolling platformers and sword-fighting adventure games. With the flexibility provided by LibGDX, specialized genres such as card games, rhythm games, and visual novels are also covered in this book.
Major updates in this edition include chapters covering advanced topics such as alternative sources of user input, procedural content generation, and advanced graphics. Appendices containing examples for game design documentation and a complete JavaDoc style listing of the extension classes developed in the book have also been added.

What You Will Learn
Create 12 complete video game projects
Master advanced Java programming concepts, including data structures, encapsulation, inheritance, and algorithms, in the context of game developmentGain practical experience with game design topics, including user interface design, gameplay balancing, and randomized contentIntegrate third-party components into projects, such as particle effects, tilemaps, and gamepad controllersWho This Book Is For
The target audience has a desire to make video games, and an introductory level knowledge of basic Java programming. In particular, the reader need only be familiar with: variables, conditional statements, loops, and be able to write methods to accomplish simple tasks and classes to store related data.

Learn how to create your very own game using the libGDX cross-platform frameworkAbout This BookLearn the core features of libGDX to develop your own exciting gamesExplore game development concepts through example projectsTarget games for major app stores quickly and easily with libGDX's cross-platform functionalityWho This Book Is For

This book is intended for those who wish to learn the concepts of game development using libGDX. An understanding of Java and other programming languages would definitely be helpful, although it is not a must.

What You Will LearnCreate and configure a libGDX project to get started with making gamesGet to grips with a simple game loop that will drive your gamesManage game assets to reduce code duplication and speed up developmentPack game assets together into single assets to increase your game's performanceDisplay textures on the screen and manipulate them with play inputPlay various types of sounds that a game can generateDesign and modify a game user interface with libGDX's built-in toolsDevelop a game that will run across various platformsIn Detail

LibGDX is a cross-platform game development framework in Java that makes game programming easier and fun to do. It currently supports Windows, Linux, Mac OS X, Android, and HTML5.

With a vast feature set on offer, there isn't a game that can't be made using libGDX. It allows you to write your code once and deploy it to multiple platforms without modification. With cross-platform delivery at its heart, a game can be made to target the major markets quickly and cost effectively.

This book starts with a simple game through which the game update cycle is explained, including loading textures onto your screen, moving them around, and responding to input. From there you'll move on to more advanced concepts such as creating a formal game structure with a menu screen, adding a game screen and loading screen, sprite sheets, and animations. You'll explore how to introduce a font to optimize text, and with the help of a game that you'll create, you'll familiarise yourself with the 2D tile map API to create worlds that scroll as the characters move.

In the final sample game of the book, you'll implement a basic version of an Angry Birds clone, which will allow you to use the physic library box2D that libGDX provides access to. An overview of exporting games to different platforms is then provided.

Finally, you will discover how to integrate third-party services into games and take a sneak peak at the Social Media API to get a basic understanding of how it fits into the libGDX ecosystem.

Style and approach

With this book you'll learn game development with libGDX through example game projects. You'll finish the book with a thorough understanding of libGDX game development, along with completed games that you'll have built yourself.

This is a one-semester, introductory programming textbook in Java that uses game applications as a central pedagogical tool to improve student engagement, learning outcomes, and retention. Game programming is incorporated into the text in a way that does not compromise the amount of material traditionally covered in a basic programming course and permits instructors who are not familiar with game programming and computer graphics concepts to realize the verified pedagogical advantages of game applications. The companion disc includes a game environment that is easily integrated into projects created with the popular Java Development Environments, including Eclipse, NetBeans, and JCreator in a student-friendly way and also includes a set of executable student games to peak their interest by giving them a glimpse into their future capabilities. The material presented in the book is in full compliance with the 2013 ACM/IEEE computer science curriculum guidelines. It has been used to teach programming to students whose majors are within and outside of the computing fields. Ancillaries include a comprehensive instructor’s resource disc with programming solutions, slides, quizzes, projects, and more.

FEATURES:

* Uses an objects-early approach to learning Java
* Follows the 2013 ACM/IEEE computer science curriculum guidelines
* Integrates game applications as a central pedagogical tool to improve student engagement, learning outcomes, and retention
* Includes a companion disc with projects created with the popular Java Development Environments; also includes a set of executable student games, source code, and figures
* Uses working programs to illustrate concepts under discussion
* Complete instructor’s resource package available upon adoption
©2019 GoogleSite Terms of ServicePrivacyDevelopersArtistsAbout Google|Location: United StatesLanguage: English (United States)
By purchasing this item, you are transacting with Google Payments and agreeing to the Google Payments Terms of Service and Privacy Notice.