Skip to content

foreverlei/programmers-guide

 
 

Repository files navigation

Programmers-Guide

This is the Cocos2d-x programmers guide.

Directory layout

  • _layout.html5 - used for pandoc print page layout
  • blank.md - a blank page that is used when building print versions
  • build.sh - BASH script that build web and print versions, deploys to server
  • chapters - markdown content and images
  • main.css - CSS for print version
  • mkdocs.yml - MKDocs configuration
  • outline.md - outline of what this guide covers (may be out of date)
  • README.md - this file :-)
  • solarized-light.css - CSS for print version
  • style.css - CSS for print version
  • theme - custom theme for web version

What do you need to build for OS X?

How to run/test

  • cd <where you cloned this repo>/programmers-guide
  • run mkdocs serve

Any changes made while mkdocs serve is running are automatically rebuilt.

How to build for deployment

  • 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:https://cocos2d-x.org/programmersguide

How to add new content

  • 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.

I found an error

Conventions used in this book

  • 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)

Appendices

Chapters

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 51.5%
  • CSS 39.9%
  • Shell 8.6%