Chopper Command: the RadarTile

in cocos2d-x

Let’s add the Radar tile to the game now. So each GameTile has an instance of its own radar tile, and it’s responsible to updating it

View

Chopper Command: Adding the Bombs

in cocos2d-x

Let’s give something for the enemies to do. I’m still going to have only one instance of the game tile on the game, and I’ll add scrolling later. But for the bombs we use a generic class which contains two sprites. The bomb in Chopper Command may split into two, that’s why I need to sprite.

View

Cocos2d-x Book: Updated for Version 3.4

and an extra game to boot

Just an update on the book. The code is actually updated to version 3.4, and the book should be coming out later this month.

View

Chopper Command: The GameTile

in cocos2d-x

Time to add the enemies and the trucks. If you recall, the game is made of 5 game tiles, each with 3 enemies and 3 trucks. These game times scroll as the player moves. I’ll work on the scrolling logic later, though, let’s focus first on building one instance of the game tile.

View

Chopper Command: The Bullet

in cocos2d-x

For the bullet we need an update in two classes. Well, one existing one and a new class for the bullet. In the main game scene I need to add a pool for bullets, and call the update on all the visible bullets

View