Code Monkey home page Code Monkey logo

asteroid-cocos2d-x-v3.2's Introduction

3.2-Asteroid-cocos2d-x

* What is this project?

This is the updated version (to v3.2 cocos2d-x) of existing project https://github.com/clawoo/AsteroidsCocos2D-x which seems to be intial verion of v2.x

I updated the project and checked it on android device. The game is working and not crashing. However, there are few flaws in the original game logic, which needs to be improved.

I'll do this in coming future. You can use this code without any problem and Wait till the time that logic is also rectified.... Once it is done from my side, I'll add a TAG 'Fully UPGRADED' at the top of this README.md file.

NOTE: Additional features for extending the game play won't be added by me. If you want, you can obviously do it yourself.

* Who can use this repository?

This game is very basic implementation for the beginners. Anyone can use it, however, it may not be much beneficial for the people who understands and can write atleast a basic game using simple APIs of cocos2d-x (v3.x)

*Features(API of cocos2d-x v3.2 used) of this project:

  • Sprites
  • Single and Multiple layers on one scene
  • Menu
  • Multiple Touches (Tap, gesture, slide). Note: Single Touch not implemented.
  • Basic collision detection without physics framework (Using interesection-Rect class of cocos2d-x v3.2).
  • Data Structure- Vectors, which is newly implemented and extended from the native Vector class available in C++
  • Default Transition to the next scene.

Once, you're done with understanding of this code, then you can gain confidence with atleast writing basic game logic and can complete your own game single handedly.

* Post Advice and suggestions:

  • You still have to learn rest of the APIs and plugins of cocos2d-x which will make you able to publish professional games on the store.
  • Do read and understand code of game examples like this, so that you have clear picture of what is happening, and it will help you gain confidence. It will also help you get familiar with the strategy and way which which other people write their own games.

* Want to try it?

Follow the below steps:

  • Make a new cocos2d-x v3.2 project
  • Import in eclipse and make sure it is imported correctly by running it as an android application and checking whether the default HelloWorld scene is appearing.
  • Is the basic project working!! Great... Now, simply copy and replace the Classes and Resources folder with those which are present in the project that you set up.
  • Look, in project explorer of Eclipse, Under your project find jni/Android.mk and open and all the classes that are now present in the latest Classes folder.
  • Also, change the device orientation from landscape to portrait in AndroidManifest.xml file which you can find in the project explorer only.

Now, run the project as the Android application.

* Already setup and run the project with above steps, Here is WHAT YOUR GAME LOOKS LIKE:

  • A Main Screen- showing 3 options-Play,Controls, Scores
  • Play Button takes you to actual game where you use touch(tap, gesture, slide to control bullets and motion of ship)
  • Game Over Screen after asteroid collide/touch the ship
  • Controls shows you the control options
  • Scores is dummy scene showing scores.

Any suggestions and doubts are always welcome..

Cheers

Enjoy ...

asteroid-cocos2d-x-v3.2's People

Contributors

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