This is the Cocos2d-x programmers guide. It is licensed under the
Creative Commons BY-SA
license. You can find it here
_layout.html5
- used forpandoc
print page layoutblank.md
- a blank page that is used when building print versionsbuild.sh
- BASH script that build web and print versions, deploys to serverchapters
- markdown content and imagesmain.css
- CSS for print versionmkdocs.yml
- MKDocs configurationoutline.md
- outline of what this guide covers (may be out of date)README.md
- this file :-)solarized-light.css
- CSS for print versionstyle.css
- CSS for print versiontheme
- custom theme for web version
- mkdocs: http://www.mkdocs.org/
- gpp: brew install gpp http://brew.sh/
- Bash 4.0: brew install bash
- Pandoc: http://johnmacfarlane.net/pandoc/getting-started.html
- A LaTex Distribution: http://www.tug.org/mactex/downloading.html
- run: sudo /usr/local/texlive/2014basic/bin/universal-darwin/tlmgr update --self
- run: sudo /usr/local/texlive/2014basic/bin/universal-darwin/tlmgr install collection-fontsrecommended
- run: sudo /usr/local/texlive/2014basic/bin/universal-darwin/tlmgr install ec ecc
cd <where you cloned this repo>/programmers-guide
- run
mkdocs serve
Any changes made while mkdocs serve
is running are automatically rebuilt.
cd <where you cloned this repo>/programmers-guide
- run
build.sh
Content is build in docs
and deployed to site
. This script also builds the
ePub and PDF versions as well as deploys out to staging (slackmoehrle.github.io)
and http://cocos2d-x.org/programmersguide
- via a
pull request
. Please do not edit chapters directly. - If you are creating a new chapter, please dont't make it feel and sound like an API Reference. This is a guide suited for new users (even though advanced users will benefit too). Please tell a story about your content. We want to make this engage the user. If in doubt. Read Chapter 2 and notice it feels like a chapter in a book.
- Contact me via e-mail or on the forums to discuss what you want to add, edit, etc.
- report via GitHub issues: https://github.com/chukong/programmers-guide/issues
- or clone and submit a pull request to fix it: https://github.com/chukong/programmers-guide/pulls
auto
is used for creating local variables.using namespace cocos2d;
is used to shorten types.- each chapter has a compilable source code sample to demonstrate concepts.
Outline.md - outline of what the guide will cover (may be out of date)
- Appendix A - Prerequisites
- Appendix B - Android with Terminal Installation and Setup
- Appendix C - Android with Eclipse Installation and Setup
- Appendix D - iOS Installation and Setup
- Appendix E - Mac OSX Installation and Setup
- Appendix F - Linux Installation and Setup
- Appendix G - Win32 Installation and Setup
- Appendix H - WP8 Installation and Setup
- Appendix I - Creating A New Example Project
- Chapter 01 - About
- Chapter 02 - Basic concepts and essentials
- Chapter 03 - Sprites
- Chapter 04 - Actions
- Chapter 05 - Building and Transitioning Scenes
- Chapter 06 - UI
- Chapter 07 - Other Node Types
- Chapter 08 - Event Dispatcher
- Chapter 09 - 3D
- Chapter 10 - Lua
- Chapter 11 - Services
- Chapter 12 - Physics
- Chapter 13 - Audio
- Chapter 14 - Advanced Topics