How to Make a Platformer Game with Cocos2D-X

10

Table of Contents

Subscribe
Get email notifications when we release new chapters or use the RSS feed.

Introduction

Chapters
  1. Why Cocos2d-X?
  2. C++ Refresher
  3. Cocos2d-X Basics
  4. C++ vs Objective C
  5. Projects & Build Scripts
  6. Animation & Spritesheets
  7. Tilemap Levels
  8. Box2D Physics
  9. Input & Movement
  10. Powerups & Items
  11. Artificial Intelligence
  12. Ladders, Water, Speech
  13. iAd, Admob, Google Ads
  14. Lua & Javascript
  15. Multiplayer Basics

Outro

Appendices

Share

Introduction: Foreword

Hey. :) Welcome to our book about how to make a platformer game with Cocos2D-X. This book will teach you how to make a complete game from scratch and publish it yourself.

We made a little example game called Paralaxer. It's a side-scrolling platformer game that runs on iPhone, Android, Windows & Mac.

This book will walk you through all the basics steps of how to write game code, make art assets and build your own game for all the above-mentioned platforms.

 
 

Requirements

What will you need to know to make use of this tutorial?

  • A firm understanding of a C-based programming language like C, C++, C#, Java, Objective C or PHP.
  • Some familiarity with an IDE like Xcode, Visual Studio or Eclipse.

Source Code

Source code examples are provided during each chapter. If you'd like, you can get the complete game source code package. It includes all the art assets, project files, build scripts and a PDF version of this online book.

Updates

Please note that this is an iterative book. As the open-source Cocos2D-X game engine grows it gets better and better, causing us to enhance this book.

At this point, there are many chapters left to write. These chapters will be added on a weekly basis until the book is complete. A changelog will be maintained so you can always see what's new.

We hope you enjoy learning about making your own 2d multi-platform sidescroller game!

Comments


26 comments on “Introduction: Foreword

  1. Alfons on said:

    Great! I hope that you will folllow format from Cocos2d book written by Apress. Hope to see how to create tile based game that works on all platforms.

    Thank you and keep up the good work!

  2. Pingback: Cocos2D-X Book: Learn to make a cross-platform platformer | Indie Game Development | Scoop.it

  3. very nice

  4. Chuck--bass on said:

    I think this must be a very good way to learn cocos2d-x!!!!

  5. Stephen Maddox on said:

    Looking at the chapters, this is going to be a good book. Lots of new stuff I have been wondering about.

  6. KhanhNguyen0507 on said:

    Looking at the chapters, this is going to be a good book.
    Very Nice.

  7. So has this project been abandoned??

    • Nat Weiss on said:

      Nope. August has been a busy month for me with one week of vacation already and another coming up.

      Rest assured, I have two new chapters of the book almost finished. One will be released this week and one next week.

      So while progress might be a little slower in August, the normal pace of a chapter a week will be resumed in September.

      The goal is to make this Cocos2d-X book & source code high quality and lasting. A solid reference for years to come.

  8. Awesome! Do you have any donations place?? I really enjoy the idea behind this book, and I would like to give you something in return for your effort! :D

  9. Done :D keep it up :D

  10. Stephen Maddox on said:

    Any news on more chapters? I bought Paralaxer on 7/2 and am anxious to get through the book.

    • Nat Weiss on said:

      Stephen, yeah, the new chapter on setting up your projects is almost done. It’s taking a long time because A) it’s one of the biggest chapters yet, and B) the new Paralaxer 1.0.3 with Cocos2d-X 2.0.2 and iOS6 support is quite a time-consuming update.

      So, look for the new chapter and the 1.0.3 download really soon. Possibly tomorrow (Sunday).

  11. Painache on said:

    When the new chapter “Projects & Build Scripts” will be released? Waiting for the chapter for so looooooooooooooooong.

    • Nat Weiss on said:

      Sorry for the wait! I was quite busy updating Paralaxer to version 1.0.3, incorporating Cocos2dx 2.0.2 and iOS 6. Then I had to update my other two kits to Cocos2d iPhone 2.0 and iOS 6 as well. These all were pretty major updates and took a lot of time to make sure they worked correctly on iOS 6, 5, 4.3, Xcode 4.3, 4.4, 4.5, Windows, Android, etc.!

      Anyway, this new chapter on build scripts is going to be a big one. I have it about 25% finished and ought to be able to wrap it up tomorrow (Saturday).

      Cheers and thanks for writing.

    • Nat Weiss on said:

      The new chapter on setting up a Cocos2d-X meta-project is finished. :)

  12. painache on said:

    Awesome! Thank you for the hard working of the new chapter on setting up a cocos2d-X meta-project.

  13. You should include Windows Phone 8. :)

  14. Anonymous on said:

    Could you please provide PDF/EPUB versions of this book? I can’t afford using 3G to read it :/

  15. Pingback: Cocos2D-X Book: Learn to make a cross-platform platformer | game development | Scoop.it

  16. Your email subscriber is really nice, but why don’t you provide real RSS? I prefer my RSS-Reader over a flooded mailbox.

    • Nat Weiss on said:

      Hi NobbZ, a link to the RSS feed has been added above, near the email subscribe. Thanks for writing.

  17. Pingback: Cocos2d-x: the Book | Done With Computers

  18. Pingback: Game Engines | Pearltrees

Leave a Reply

Your email address will not be published. Required fields are marked *

*

HTML tags are not allowed.

Brought to you by the iPhone Game Kit.