You are previewing Gideros Mobile Game Development.
O'Reilly logo
Gideros Mobile Game Development

Book Description

With Gideros you can develop games for both iOS and Android faster and more simply. This book shows you how with a real-life project you undertake yourself. All that’s required is a little familiarity with Lua.

  • Develop engaging iOS and Android mobile games quickly and efficiently

  • Build your very first game following practical and easy to understand instructions

  • Full of code examples and descriptions to help you master the basics of mobile game development

  • In Detail

    Have you ever had an interesting idea for a mobile game? Have you ever wanted to jump on the mobile app bandwagon? Developing a mobile game has never been so fun and easy, and with the vast amount of smartphone users, it may also become a profitable thing to do. Gideros is a Lua-based framework that facilitates effortless native iOS and Android application development along with hardware acceleration. Gideros also comes with a built-in box2D physics engine and extended memory management features to make mobile game development a breeze.

    Gideros Mobile Game Development shows you how to develop an original and exciting game in Gideros, helping you create your very first project and guiding you through the configuration of settings and assets to help you target devices with different resolutions.

    This book teaches you everything you need to know about Gideros, from installing Gideros on your operating system to creating and efficiently managing your Gideros projects and creating your very first game, all with the help of well explained examples.

    You will learn how to quickly create game prototypes in Gideros, how to test and set up projects to automatically target devices with different resolutions, and how to polish your prototype with animations, sounds, tweens, and even physics to create your very first cross-platform game.

    By the end of this book, you will have learned everything you need to create visually stunning physics and exciting cross-platform games using Gideros.

    Table of Contents

    1. Gideros Mobile Game Development
      1. Table of Contents
      2. Gideros Mobile Game Development
      3. Credits
      4. Foreword
      5. About the Author
      6. About the Reviewers
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      8. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      9. 1. Setting Up the Environment
        1. About Gideros
        2. Installing Gideros
          1. Requirements
          2. Installing Gideros on Windows
          3. Installing Gideros on Mac OS X
          4. Installing Gideros on Linux
        3. Creating your first project
          1. Trying out Gideros Studio
          2. Using the Gideros desktop player
          3. Displaying graphical objects in Gideros Player
            1. Displaying text
            2. Displaying images
            3. Drawing shapes
            4. Using the Sprite class for groups and layers
          4. Managing project settings
            1. Automatic scaling
            2. Automatic image resolution
            3. Input settings
            4. iOS-specific settings
          5. Installing the device player
            1. Installing the Android player
            2. Installing the iOS player
            3. Running the project on a device player
          6. Exporting Gideros project
          7. Summary
      10. 2. Managing Scenes and Gideros OOP
        1. Setting up our project
          1. Handling scaled graphics with AutoScaling
          2. Handling whitespaces
          3. Ignoring automatic scaling for positioning
        2. Creating scenes
          1. Gideros OOP
          2. Creating our first class
          3. Gideros scene manager
          4. Creating a global configuration file
          5. Creating the start scene
          6. Creating the about scene
          7. Creating the options scene
          8. Creating the settings class
        3. Summary
      11. 3. Implementing Game Logic
        1. Implementing the main game scene
          1. Using texture packs
            1. Packing our textures
            2. Using texture packs inside project
          2. Using physics in Gideros
            1. Creating physical bodies
            2. Running the world
            3. Setting up world boundaries
            4. Interaction with physical bodies
            5. Handling Box2D collisions
        2. Managing packs and levels
          1. Defining packs
          2. Creating LevelSelectScene
          3. Generating a grid of levels
          4. Switching between packs
          5. Creating the GameManager class
          6. Implementing unlocked levels logic
          7. Reading level definitions
          8. Completing the level
        3. Summary
      12. 4. Polishing the Game
        1. Adding sounds
          1. Adding background music
          2. Adding sound effects
        2. Adding high scores
          1. Retrieving high scores
          2. Updating high score on the screen
        3. Creating animated game elements
          1. Frame animations using MovieClip
          2. Tweening elements with GTween
        4. Improving gameplay
          1. Changing level packs by using the swipe gesture
            1. Starting with MouseDown
            2. Continue with MouseMove
            3. Ending with MouseUp
            4. Adding event listeners
            5. Modifying code for selecting levels
          2. Implementing Mashballs magnet
        5. Summary
      13. Index