Showing posts with label Create the first simple game. Show all posts
Showing posts with label Create the first simple game. Show all posts

Wednesday, January 21, 2015

[Tutorial] Cocos2d-x: Create the first simple game - Gameover, calculate scores, add sounds for game effervescent (Part 4)

In this last part, we do all remaining tasks: + Check game-Over when monsters collide character + Add sound when shooting bullets and add some background music for more attractive. + Here skip calculating scores. This lesson is only in simple level. Now let's start!!!!! Step 1 - Add sound into game You Download resource, copy into folder Resource of Project Then open file HelloWordScene.cpp, in function init(), add...

Posted By Live Blog7:52 AM

Monday, January 19, 2015

[Tutorial] Cocos2d-x: Create the first simple game - Discover physical collision (Part 3)

In the two previous part, we built a half of project, but the most important that need to do in this project is: kill the monsters by the bullets shot out. How to do? With previous version Engine 1.x, 2.x when building physical collision among objects is not correct, so calculation of coordinator, array, and many kinds of vectors, is very difficult. However, now in this third part, that task is very simple with only some commands. Now,...

Posted By Live Blog8:06 PM

[Tutorial] Cocos2d-x: Create the first simple game - Touch screen event and shoot bullets (Part 2)

In part 1, we studied how to create a character, and monsters from images through class Sprite. And in adding monsters, you notice a block calculating the appearing position, and the moving speed. It's the simple algorithm. In this part, we do some following tasks: + Catch event when touching screen + When touching screen, our character will shoot + Process the direction of the bullet flying following the point when touching Let's Start! Step...

Posted By Live Blog8:57 AM

[Tutorial] Cocos2d-x: Create the first simple game - Create a character (Part 1)

Now we will start making a simplest game. This game in old version here ( for Cocos2d-x V2.2.3) Describe a bit about this game as follow: We have a main character and a lot of monsters, main character will kill monsters by shooting them. The game will calculate score simply (one monster killed provide you one point), and also have GameOver, you can insert music if need. Let's go! Step 1 - Create Project, add Resource images, sounds...

Posted By Live Blog12:15 AM

Choose an Android item