Package cocos

a framework for building 2D games, demos, and other graphical/interactive applications.

Main Features

http://cocos2d.org

Author: cocos2d team

Submodules

cocos.actions
cocos.actions.base_actions
Foundation for all actions
cocos.actions.basegrid_actions
Grid Actions
cocos.actions.camera_actions
Camera Actions
cocos.actions.grid3d_actions
Implementation of Grid3DAction actions
cocos.actions.instant_actions
Instant Actions
cocos.actions.interval_actions
Interval Action
cocos.actions.move_actions
Actions for moving things around based on their velocity and acceleration.
cocos.actions.quadmoveby_actions
Implementation of QuadMoveBy actions
cocos.actions.tiledgrid_actions
Implementation of TiledGrid3DAction actions
cocos.audio
cocos.audio.SDL
Main module for importing SDL-ctypes.
cocos.audio.SDL.array
cocos.audio.SDL.audio
Access to the raw audio mixing buffer.
cocos.audio.SDL.constants
Constants and enums for all SDL submodules.
cocos.audio.SDL.dll
cocos.audio.SDL.endian
Functions for converting to native byte order
cocos.audio.SDL.error
Error detection and error handling functions.
cocos.audio.SDL.mixer
A simple multi-channel audio mixer.
cocos.audio.SDL.rwops
General interface for SDL to read and write data sources.
cocos.audio.SDL.timer
Time management routines.
cocos.audio.SDL.version
Functions related to the SDL shared library version.
cocos.audio.actions
cocos.audio.effect
cocos.audio.exceptions
cocos.audio.music
This is a wrapper to the low level music API.
cocos.audio.pygame
Top-level Pygame module.
cocos.audio.pygame.base
Pygame core routines
cocos.audio.pygame.mixer
Pygame module for loading and playing sounds.
cocos.audio.pygame.music
Pygame module for controlling streamed audio
cocos.audio.pygame.version
Simply the current installed pygame version.
cocos.batch
Batch
cocos.camera
Camera object
cocos.cocosnode
CocosNode: the basic element of cocos2d
cocos.director
cocos.director.director is the singleton that creates and handles the main Window and manages the logic behind the Scenes.
cocos.draw
cocos.euclid
euclid graphics maths module
cocos.framegrabber
Utility classes for rendering to a texture.
cocos.gl_framebuffer_object
A thin wrapper for OpenGL framebuffer objets.
cocos.grid
Grid data structure
cocos.layer
cocos.layer.base_layers
Layer class and subclasses
cocos.layer.python_interpreter
cocos.layer.scrolling
This module defines the ScrollableLayer and ScrollingManager classes.
cocos.layer.util_layers
Layer class and subclasses
cocos.menu
A Layer that implements a simple menu
cocos.particle
Particle system engine
cocos.particle_systems
Pre-defined Particle Systems
cocos.path
cocos.rect
cocos.scene
Scene class and subclasses
cocos.scenes
cocos.scenes.pause
Pause scene
cocos.scenes.transitions
Transitions between Scenes
cocos.shader
cocos.skeleton
cocos.sprite
Sprites allows to display a image in a rectangular area, which can be rotated, scaled and moved.
cocos.text
Text cocos nodes
cocos.tiles
Tile maps are made of three components:
cocos.utils
Here are a bunch of utilities to use with cocos.
cocos.wired

Functions

  import_all()

Variables

  __package__ = 'cocos'
  sdl_lib_path = 'C:\\Python26\\lib\\site-packages\\pygame'
  unittesting = False
  version = '0.4.0'