Skip to content

wilzh40/SBSkeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#SBSkeleton ###A game skeleton for cocos2d v3.x

SB Skeleton is a simple barebones template for cocos2d v3.x and SpriteBuilder, containing the skeleton to make a simple game.

##Overview MainScene

It contains 5 scenes, all self-explanatory:

  • MainScene
  • GameScene
  • GameOverScene
  • OptionScene
  • CreditsScene and a Singleton, for storing global variables.

It contains various options in OptionScene:

  • Volume Controls (Muting, FX and BG Volume)
  • High Score Resetting
  • Switching the Control Scheme

It also includes:

  • Accelerometer Detection (like tilt-to-live)
  • Pause Functionality
  • Cocos2d Submodules

##Setup

  1. Git clone this repo recursively (it has cocos2d and its submodules)

    git clone https://github.com/wilzh40/SBSkeleton.git --recursive

  2. Open the directory SBSkeleton.spritebuilder with SpriteBuilder and publish the CCB Files

  3. Change the App name to your project name

You're ready to go!

##Further Customization

  1. Rewrite - (void) touchEnded:(UITouch *)touch withEvent:(UIEvent *)event to your own game logic

  2. Replace the avenger.ttf font to something more readable

  3. Rearrange everything in Spritebuilder, populate CreditScroll.ccb for credits

##Why?

After while I got tired of doing the same tedious tasks: connecting different game scenes to buttons and reinventing the wheel by implementing high scores, volume, and all the basics of a game. Thus I decided to have a starting point template for all my games, and I hope this would help others as well.

##Roadmap

  • Tutorial Scene
  • Refactoring code

About

A game template for cocos2d v3.x

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors