0%

Book Description

Learn how to make games for multiple platforms with Construct 2

In Detail

Construct 2 is an HTML5-based game editor that uses drag-and-drop functionality to allow users to create complex and engaging games with no programming experience. The software is fast and easy to learn for novices, yet powerful for advanced users, letting expert game builders work even quicker than by coding.

This book gets to grips with the basics of Construct 2 game design techniques and clearly explains and illustrates important features, from controls to game mechanics, before having you put those skills to the test by building three complete game projects. You will learn how to create games in popular and bestselling genres, distribute them through multiple channels, and expand your foundational knowledge into expert game design skills.

What You Will Learn

  • Create 2D games from scratch
  • Monetize your games with in-game shops
  • Program game mechanics which are the core of game design
  • Deploy your game to multiple platforms
  • Discover techniques to build simple yet effective enemy AI
  • Implement physics for falling blocks and bullets
  • Get time saving tips and best practice advice for quick and effective game production
  • Design different types of games that are fun and exciting

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Construct 2 Game Development by Example
    1. Table of Contents
    2. Construct 2 Game Development by Example
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers, and more
        1. Why subscribe?
        2. Free access for Packt account holders
    7. 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. Errata
        2. Piracy
        3. Questions
    8. 1. Getting Started with Construct 2
      1. Downloading and installing Construct 2
        1. What do the numbers mean?
      2. Coding in Construct 2
        1. Working with visual programming languages
        2. Layout and event sheets
          1. Sprites
      3. Summary
    9. 2. Inputs and Controls
      1. Getting started with inputs and controls
        1. Keyboard inputs
          1. Inserting a new keyboard object
          2. Adding functionality to the keyboard object
          3. Setting the keyboard key
        2. Controlling the sprite with the keyboard
          1. Setting up the direction of the sprite's movement
          2. Setting keys for other directions
        3. Testing the keyboard controls
        4. Making the sprite move constantly
        5. Changing the sprite's speed
        6. Keeping the sprite onscreen
        7. Mouse inputs
          1. Adding mouse functionality
          2. Setting up the Every tick command
          3. Rotating the sprite to the mouse location
          4. Facing the sprite towards the mouse point
        8. Touch control inputs
      2. Summary
    10. 3. Variables and Arrays
      1. Introducing variables
        1. Number variables
        2. Integer variables
          1. Real variables
        3. String variables
        4. Boolean variables
        5. Other variables
      2. Declaring variables
        1. Writing variables in code
      3. Variables in JavaScript
        1. Examining JavaScript code
      4. Variables in Construct 2
        1. Adding a variable
        2. Creating a global variable
          1. Creating a score variable
        3. Adding a variable to a sprite
          1. Creating a health variable
      5. Introducing arrays
      6. Adding an array in Construct 2
      7. Checking an array's properties
        1. Setting data and adding variables
        2. Checking an array for data
      8. Summary
    11. 4. Game Mechanics
      1. Introducing game mechanics
      2. Game mechanics in Construct 2
        1. Setting up a game mechanics project
        2. Adding a game mechanics behavior to a sprite
        3. Giving a sprite 8Direction movement
          1. Editing the properties of a behavior
            1. Creating a speed power-up
            2. Inserting the power-up object
        4. Adding a collision event
        5. Destroying the power-up on collision
        6. Increasing the player sprite's speed
        7. Setting the duration of the speed boost
          1. Restoring the player's speed to normal
      3. Summary
    12. 5. Making a Simple Shooter
      1. Starting the project
      2. Controlling a sprite with the keyboard
      3. Organizing the event sheet
      4. Adding mouse controls
        1. Making the player shoot
      5. Adding the enemy
      6. Destroying the enemy
      7. Adding a spawner
      8. Summary
    13. 6. Making a Tower Defense Game
      1. Starting the project
      2. Creating a spawn point
      3. Laying out the level
      4. Setting up the turrets
      5. Adding enemies and projectiles
      6. Rotating the turret
      7. Firing the turret
      8. Setting up the path for the enemy
      9. Setting up an enemy wave
      10. Summary
    14. 7. Making a Puzzle Physics Game
      1. Starting the project
        1. Setting the background layer
        2. Adding the cannon
        3. Adding sprites
      2. Adding functionalities
      3. Rotating the cannon
      4. Creating a cannonball
        1. Spawning the cannonball
          1. Creating the spawning image point
      5. Adding physics
        1. Applying force at an angle
          1. Setting cannonballs to fire one at a time
          2. Setting the viewpoint to follow the cannonball
        2. Making an immovable ground
        3. Reloading the cannon
      6. Adding the blocks
        1. Destroying the cannonball on a complete stop
          1. Delaying cannonball destruction
      7. Designing our level
        1. Changing block density
        2. Adding the goal balls
        3. Destroying the goalBall sprite
        4. Adding particles
          1. Adjusting the particle settings
          2. Adding particles when goalBall is destroyed
      8. Tracking the score
      9. Adding text objects to the HUD
        1. Spawning the textbox
          1. Correcting the spawning angle
        2. Expanding the HUD
        3. Anchoring the HUD to the camera
        4. Setting up an HUD cannonball tracker
      10. Finalizing the game
        1. Losing the game
        2. Restarting the game on Game Over
        3. Winning the game
      11. Summary
    15. 8. Exporting Your Game
      1. Exporting games in Construct 2
      2. Setting up a Dropbox account
      3. Exporting to an HTML5 website
        1. Choosing the template for your HTML5 export
        2. Assessing the contents of the game folder
      4. Uploading and sharing a game with Dropbox
      5. Other places to export your game
        1. Exporting to Chrome Web Store
        2. Exporting to Scirra Arcade
        3. Exporting to Kongregate
        4. Exporting to PhoneGap
        5. Exporting to Intel XDK
        6. Exporting to CocoonJS
        7. Exporting for Windows Phone 8
        8. Exporting to Tizen
        9. Exporting for the Amazon Appstore
        10. Exporting for Windows 8
        11. Exporting to Open Web App
        12. Exporting to Node-Webkit
      6. Summary
    16. A. Where to Go from Here
    17. Index
3.144.9.147