Giter VIP home page Giter VIP logo

cocoroids's Introduction

CocoRoids

Example game for Cocos2D v3 using CCPhysics and SpriteBuilder features.

screenshot

I had a few goals in mind when I was making this:

  • Make the project more data driven: I'm used to making a lot of games using improvised editors and hard-coded values. This works fine when you work alone. An editor make it much easer to work with a designer that doesn't also want to be a programmer.
  • Do things that are hard without an editor: The ship explosion is a good example. The ship was made out of lots of little sprites so I could swap in a different version with physics for each piece when the ship exploded.
  • Use CCPhysics more for collision detection: This game really only needed linear velocities and events to trigger when objects collided. The collision delegate functionality in CCPhysics made this really easy to do.

Note: You don't need SpriteBuilder to compile and run the project, but a lot of the game is set up within the SpriteBuilder editor.

Getting started with the source

First clone the source and its submodules, then open Xcode to build target 'CocoRoids'.

git clone [email protected]:slembcke/CocoRoids.git
cd CocoRoids
git submodule update --init --recursive

Acknowledgements:

The graphics are from kenney.nl. The site has a nice collection of public domain assets you can use for prototyping.

The music is "eCommerce" by BoxCat Games. Available from freemusicarchive.org under the Creative Commons Attribution License.

The sound effects were made using sfxrX.

cocoroids's People

Contributors

slembcke avatar qichunren avatar phausler avatar

Watchers

James Cloos avatar Diego Perez Salas 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.