Hill Climb Racing – Deconstructed – Car, controls, camera, coins and fuel cans

Hello, in the last chapter we went through on how to create terrain and now we will focus on creating four main things we now lack. We will start by creating car which can be driven with reverse and accelerate pedals. In order to keep the car centered on the screen, we will create camera … Read more

How to develop Hill Climb Racing with Cocos2d-x – Terrain

Hi, this is the first part of the How to develop Hill Climb Racing with Cocos2d-x tutorial. I will presume you have some basic knowledge about programming and of using Cocos2d-x v3.0 engine. I’ll try to follow good coding practises while also giving links to related topics as we progress. Let’s get straight to the … Read more

Creating fading music effect in Cocos2d-x 3.0

Hello, In case someone is having some sort of difficulty implementing fading music effects in Cocos2d-x 3.0, feel free to click link below and see my implementation. https://github.com/joni-mikkola/cocos2d-x-tutorials I have inherited ActionInterval class for my MusicTo class, which means that it can be used as any Action in Cocos2d-x 3.0. To fade out music completely … Read more

Creating spotlight shader in Cocos2d-x 3.0

Hi! I’ve been working on a game project with Cocos2d-x 3.0. From time to time as I’m searching for documentation I can’t find any clear examples of how thing x works. So for now I decided to write simple samples/tutorials for such topics. The first one will be creating light shader for a dark scene. … Read more

Cocos2d-x 2.x keyboard implementation for Mac OS X

In case someone has problems implementing Mac Cocos2d-x 2.x keyboard like I did, here is link to GitHub with working solution: https://github.com/joni-mikkola/cocos2d-x/tree/keyboard I have provided sample project with the implementation code. I downloaded the original code from somewhere in Cocos2d-x forums and modified it properly to work with Mac OS X. All you have to do, … Read more