GithubHelp home page GithubHelp logo

rudolfcn / cocos Goto Github PK

View Code? Open in Web Editor NEW

This project forked from los-cocos/cocos

0.0 2.0 0.0 11.32 MB

graphic library for games and multimedia, for python language on PC-like hardware

Home Page: http://python.cocos2d.org/

License: Other

Python 99.03% Makefile 0.48% Batchfile 0.49%

cocos's Introduction

cocos2d

image

A framework for building 2D games, demos, and other graphical/interactive applications.
Draws using OpenGL, which is hardware accelerated.
Targets the Operating Systems linux, mac or windows on Pc-like hardware.
Provides some conventions and classes to help you structure a "scene based application".
A cocos2d application consists of several scenes, and a workflow connecting the different scenes.
It provides you with a "director" (a singleton) which handles that workflow between scenes.
Each scene is composed of an arbitrary number of layers;
layers take care of drawing to the screen (using the pyglet and OpenGL APIs), handling events and in general contain all of the game/application logic.

cocos2d simplifies the game development in these areas:

  • Flow control: Manage the flow control between different scenes in an easy way
  • Sprites: Fast and easy sprites
  • Actions: Just tell sprites what you want them to do. Composable actions like move, rotate, scale and much more
  • Effects: Effects like waves, twirl, lens and much more
  • Tiled Maps: Support for rectangular and hexagonal tiled maps
  • Collision: Basic pure python support for collisions
  • Transitions: Move from scene to scene with style
  • Menus: Built in classes to create menus
  • Text Rendering: Label and HTMLLabel with action support
  • Built-in Python Interpreter: For debugging purposes
  • Access to OpenGL functionality
  • and much more! http://python.cocos2d.org

Requirements

Software:

Hardware:

  • To execute some effects you will need a video card with the:

    GL_EXT_framebuffer_object extension.

Installing

Being a pure python package the usual options are available; you can look at the INSTALL file for some details

Learning cocos2d

  • Go to the online tutorials / documentation page: http://python.cocos2d.org/doc.html

    You will find:
    • the Programming Guide
    • the API Reference
    • some tutorial videos

    The tutorials are included in the source package.

  • Lot of miniprograms that demonstrates the available objects and possible actions. There are a great starting point while learning and experimenting with cocos: you find a sample with the object that interest you exercising the features that you need, read the code, run, modify and re-run to experiment.

    Also, handy to know what is available in cocos: run all the tests and by looking at the code you know what to look at in the docs.

    You can find them at the test directory in the source distribution. After unpacking, to run the tests you can do:

    $ cd test
    $ python test_*.py
  • More complex sample programs

    You can find it in the samples directory in the source distribution, and the most complex in subdirectories there, including a presentation done with Cocos himself.

    After unpacking, to run the samples you can do:

    $ cd samples
    $ python sample_name.py
Do you have any doubt?
Did you find any bug?
Current repository is at

cocos's People

Contributors

ccanepa avatar ricardoquesada avatar r1chardj0n3s avatar luciotorre avatar dmoisset avatar dangillet avatar macarse avatar hatarist avatar facundobatista avatar elachuni avatar humrochagf avatar fpietka avatar kaofelix avatar alecu avatar ezequielp avatar hugoruscitti avatar rgleichman avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.