Git Product home page Git Product logo

joystickcocos2d-x's Introduction

JoystickCocos2D-X

Small example to use virtual Joystick with Cocos2D-X 3

Features

1 - Converted SneakyInput converted to Cocos2D-X version 3

2 - Working project that make use of new components from Cocos2D-X version3

3 - Working version for: iOS, OSX and Android

TODO

1 - Create a class Player that extends from Sprite (dont need show a real sprite, can be a box) and make it answer to events (move with joystick and jump with action button)

2 - Make the multi-resolution work. I tried it but dont work. In the project i have partial code on AppDelegate.

3 - Make the joystick support or enable the multi-touch events. I think that it already have, but i dont know in the version 3 of Cocos2d-X where is the method that enable it.

4 - Make the scene have a ground and a wall in both sides to create a limit for player move (they will be transparent using box2d).

5 - Make a camera that follow the player movement.

6 - Make the player jump with box2d and move with box2d. His movements will be limited by the ground and the walls. The walls distance can be larger than screen (480x320).

7 - Make a simple menu scene (in separated class) with a button START GAME that change to game scene

GOAL

Make a real simple game that have a player, a scene that the player can move using box2d to move and jump.

The scene will have a limit to player movements, a ground and two box on each side to make the player stop walk when reach this walls(box2d boxes).

The camera will follow the player to both sides whe it walk.

We need a parallax effect too in background and some sounds to jump.

With this, anyone can start your project and study the basic concepts.

Screenshot

Screenshot 480x320

Credits

Created by Paulo Coutinho - paulo(at)prsolucoes(dot)com

Thanks.

joystickcocos2d-x's People

Contributors

hmkum avatar wezsietato avatar

Watchers

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