Libgdx Cross-platform Game Development Cookbook
By David Saltares Marquez, Alberto Cejas Sanchez
Publisher: Packt Publishing
Final Release Date: October 2014
Pages: 516

Libgdx is a very popular open source, cross-platform, Java-based game development framework that enables you to write your code once and deploy it to Windows, Mac, Linux, Android, iOS, and browsers.

Supported by code samples for each topic, this book will take you through the features of Libgdx, from the very basic aspects to the most advanced ones. Beginning with an overview of the framework and project creation, the book moves on to the 2D graphics API that enables you to create efficient and visually rich games. You will then explore input detection and audio and file handling, followed by details of how to make use of amazing features such as Box2D rigid body physics, lighting, and artifical intelligence techniques to name a few. You will also discover how to modify Libgdx to suit your needs and share your creation with the world.

Product Details
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyLibgdx Cross-platform Game Development Cookbook
 
4.7

(based on 7 reviews)

Ratings Distribution

  • 5 Stars

     

    (5)

  • 4 Stars

     

    (2)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Well-written (6)
  • Helpful examples (5)
  • Easy to understand (4)

Cons

No Cons

Best Uses

  • Student (6)
  • Expert (5)
  • Intermediate (5)
  • Novice (5)
    • Reviewer Profile:
    • Developer (6)

Reviewed by 7 customers

Displaying reviews 1-7

Back to top

(2 of 2 customers found this review helpful)

 
5.0

One man army game development.

By Libgdx

from Sofia

About Me Developer

Verified Reviewer

Pros

  • Concise
  • Helpful examples
  • Well-written

Cons

    Best Uses

    • Expert
    • Intermediate
    • Novice
    • Student

    Comments about oreilly Libgdx Cross-platform Game Development Cookbook:

    First I should mention that it took me a while to decide whether I should start using AndEngine or Libgdx. After serious research my conclusions were that Libgdx is the better option. The reasons are that it's still being updated and code testing is much faster. At this point the learning resources for Libgdx are basically two – the tutorials on their website and this book. Currently there is only one book more which is said to be outdated.

    As a beginner I decided to start learning from the book first because books tend to have some structure. And I must say that the book is indeed very well structured and there are a lot of useful details. At first I was expecting to have some problems with comprehending the material but the authors did a very good job in explaining with layman's terms. If I have to be honest - you can actually feel the amount of work spent on this book.

    While going through this book, I learned how to work with Libgdx's 2D API and create complex 2D effects such as particles, shaders, etc. Now I also know how to set up nice background music in my game and how to create a good looking text. There is a lot of material covered on the topic of optimisation which is crucial for smooth running on phones. I think that the tip of the iceberg is the chapter about third-party libraries and extras. It is very useful because it covers the most popular "goodies" used with Libgdx. This includes – multilingual support, skeleton animation, lighting and software architecture.

    This book is truly a "game development cookbook" because it explains everything needed to build a professionally looking game. I would like to thank the whole team and especially the authors for their amazing work. I recommend this book.

    (2 of 2 customers found this review helpful)

     
    5.0

    Everything you will ever need for libgdx

    By Zee Dev

    from Pakistan

    About Me Developer

    Verified Reviewer

    Pros

    • Easy to understand
    • Helpful examples
    • Well-written

    Cons

      Best Uses

      • Expert
      • Intermediate
      • Novice
      • Student

      Comments about oreilly Libgdx Cross-platform Game Development Cookbook:

      First of all, I found this book extremely helpful as a Game Developer.
      This book discusses almost everything related to libgdx and level of detail is awesome. LibGDX wiki provides enough knowledge to get started, but this book contains much more than that including common problems we face and their solutions.
      For instance, in Chapter 11, it discusses on making other libraries compatible with libgdx as not all java features are supported by GWT.
      As another example, Chapter 9 discuss 2D Tile Map API and author has also covered the use of third party tools like Tiled Map Editor used to collaborate with libgdx. In one complete chapter, Box2D and use of rigid body physics is discussed. Some parts of Chpater 12 also demonstrates use of VisualVM to optimize the game.
      Basically, everything is included. There are 516 pages in the book just on a library, so you can imagine the level of detail.

      There is no main project in the book which continues through chapters. Instead, everything is demonstrated using small code snippets.

      In every topic, sections have been properly divided which is very helpful when you want to read just a specific part.

      Overall, I would recommend it to anyone with interest in LibGDX.

      (0 of 1 customers found this review helpful)

       
      5.0

      Libgdx cookbook - an awesome book

      By QA Studios

      from Ha Noi, Vietnam

      About Me Developer

      Pros

      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

      • Not comprehensive enough

      Best Uses

      • Expert
      • Intermediate
      • Novice
      • Student

      Comments about oreilly Libgdx Cross-platform Game Development Cookbook:

      If you are a beginner of game development, we highly recommend you to use awesome Libgdx framework. You can write your game in Java and deploy it to Windows, Linux, Mac, Android, iOS, Web.

      There is an useful book step by step guide you to start making games with over 75 practical recipes to help you master cross-platform 2D game development using the powerful Libgdx framework.

      (1 of 1 customers found this review helpful)

       
      4.0

      Very Good

      By Phan Dinh Nghia

      from VietNam

      About Me Developer

      Verified Reviewer

      Pros

      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

      • Too many errors

      Best Uses

      • Expert
      • Student

      Comments about oreilly Libgdx Cross-platform Game Development Cookbook:

      If you are a student or a new development starts with making game. There are lots Framework to develop, one of which is Libgdx. Libgdx is written in the Java language can deploy it to Android, Ios, Linux, Windows, HTML5. This book provides all the steps involved in Libgdx libraries.
      If you want to start developing a 2D platform game, then this book is really useful for you. It will guide you through the objects used in 2D as Texture, Camera, Viewport, Sprite, Sound, ...
      But the drawback is that it does not have to guide a complete game from start to finish. The desire to have another book describes in more detail the process of making game for beginners to learn about Libgdx.

      (2 of 2 customers found this review helpful)

       
      5.0

      Review Libgdx Cross-platform Cookbook

      By DungDajHjep

      from Ha Noi - Viet Nam

      About Me Developer

      Verified Reviewer

      Pros

      • Accurate
      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Intermediate
        • Novice
        • Student

        Comments about oreilly Libgdx Cross-platform Game Development Cookbook:

        Here is my review after read the book, you will want buy it, thanks!

        Abouts the authors:
        David Saltares Márquez is an engineer working at SONY specializing in the development of entertainment applications and games on the PS4. Cejas Alberto Sánchez is a professional indle game developer so we can be assured of the knowledge that we get in this book. Next we will learn about what the book can gives you. Can be said book is extremely detailed and even friendly with beginners.

        Chapter 1: The book will help you learn the basics of libgdx as how to install, set up the project, and run some demo. All is Amazing and friendly with beginer

        - Setting up a cross-platform development environment
        - Creating a cross-platform project
        - Understanding the project structure and application life cycle.
        - Updating and managing project dependencies
        - Using source control on a Libgdx project with Git
        - Importing and running the Libgdx offcial demos

        Chapter 2: The book will help you know how to handle the graphics component in the engine. All is Amazing

        - Texture rendering with SpriteBatch
        - More effective rendering with regions and atlases
        - Taking advantage of Libgdx sprites
        - Rendering sprite-sheet-based animations
        - Understanding orthographic cameras
        - Using ShapeRenderer for debug graphics
        - Handling multiple screen sizes with viewports

        Chapter 3: Advanced techniques in 2D graphics. All is Amazing

        - Achieving juicy effects with particles
        - Frame buffers and image composition
        - Welcome to the world of shaders
        - Passing parameters into shader programs
        - 2D depth of feld shader
        - Embedding a Libgdx window into a Java desktop application

        Chapter 4: Helps us to detect these interactions, action of gamers to handle the controls of the game

        Games are fundamentally different from other kinds of modern media: they are interactive. The player adopts an active role and jumps into the action of what is happening on the other side. This is a true marvel and one of the reasons why people feel so engaged. All is Amazing

        - Detecting user input via event polling
        - Detecting user input via event listening
        - Managing multiple listeners at once
        - Detecting more complex gestures
        - Introducing the controllers API
        - Input mapping for cross-platform development

        Chapter 5: Audio and File I/O. All is Amazing

        - Playing short sound effects
        - Audio streaming for background music
        - Optimizing audio fles to reduce download sizes
        - Procedural audio generators
        - Engine sounds with dynamic audio
        - The 2D space sound system
        - The frst approach to fle handling in Libgdx
        - Using preferences to store game states and options
        - The XML parsing primer
        - JSON serialization and deserialization

        Chapter 6: Font Rendering. All is Amazing

        - Generating and rendering bitmap fonts
        - Baking effects into fonts using Hiero
        - Scaling friendly font rendering with distance felds
        - Dynamic font effects using distance felds

        Chapter 7: Asset Management.

        This is an important chapter , should master. All is Amazing

        - Getting to know AssetManager
        - Asynchronous asset loading
        - Creating custom asset loaders
        - Managing groups of assets for bigger games

        Chapter 8: User Interfaces with Scene2D. All is Amazing

        - Introducing the Scene2D API
        - Widget collection overview
        - Creating a basic menu screen using tables
        - Skin customization
        - Creating new widgets
        -
        Chapter 9: The 2D Maps API

        This is an important part, you will have to learn to use and draw Tile map, it is more related to the design and not relevant to Libgdx. Libgdx only process files generated by Tile map contains data of your map. All is Amazing

        - Creating maps with Tiled and loading them into Libgdx
        - Adding and querying map metadata
        - Developing your own map loaders and renderers

        Chapter 10: Rigid Body Physics with Box2D

        This is one of the best chapters of this book that I really loved it. Although it will be difficult for beginners. Fortunately, I have had experience with Box2D. All is Amazing

        - Introducing Box2D
        - Introducing more complex shapes
        - Introducing joints
        - Real-life joints example – bike simulator
        - Reacting to collisions
        - Sensors and collision fltering
        - Querying the world
        - Building a physics world from level data
        - Implementing a deferred raycaster
        - The fixed timestep approach

        Chapter 11: Third-party Libraries and Extras. All is Amazing

        - Making libraries compatible with GWT
        - Managing platform-specifc code
        - Smooth animations with Universal Tween Engine
        - Dynamic 2D lighting with Box2Dlights (Love it)
        - Adding support for localization(Love it)
        - Finite state machine and messaging(Love it)
        - Component-based entity systems with Ashley(Love it)
        - Skeletal animations with Spine(Love it)

        Chapter 12: Performance and Optimizations. All is Amazing

        - Profling your application with VisualVM
        - Using Libgdx features to avoid garbage collection(Love it)
        - Avoiding unnecessary render calls with frustum culling(Love it)

        (1 of 1 customers found this review helpful)

         
        4.0

        I would buy this product again !

        By Jimmy Danh

        from HCM city

        About Me Developer

        Pros

        • Well-written

        Cons

        • Too basic

        Best Uses

        • Expert
        • Intermediate
        • Novice
        • Student

        Comments about oreilly Libgdx Cross-platform Game Development Cookbook:

        Over 75 practical recipes to help you master cross-platform 2D game development using the powerful Libgdx framework
        Chapter 1: Diving into libgdx
        Chapter 2:Working with 2D Graphics
        Chapter :..........
        I happy when reading this book. thank you author.
        Here is a link to a very helpful book game development with engine libgdx

        (4 of 4 customers found this review helpful)

         
        5.0

        This book's really necessary & excellent

        By nhannguyen95

        from Da Nang, Viet Nam

        Verified Reviewer

        Comments about oreilly Libgdx Cross-platform Game Development Cookbook:

        Most of the books about game today just show you how to make a basic game so that you can understand the framework (and other basic stuffs...), libGDX is a example. It's time for you to have an advanced book about libGDX, and "Libgdx Cross-platform Game Development Cookbook" is a book like that.
        It not only has every detail libGDX's aspects ( animations, particle effects, box2DLight ...) that we really need to make a cool game, but also easy to read and setup. And if you've already had a little knowledge about libGDX, this book is a perfect choi!
        Do not hesitate much, it's really worth its money !

        Displaying reviews 1-7

        Back to top

         
        Buy 2 Get 1 Free Free Shipping Guarantee
        Buying Options
        Immediate Access - Go Digital what's this?
        Ebook:  $29.99
        Formats:  ePub, Mobi, PDF