Showing posts with label Create and destroy brick. Show all posts
Showing posts with label Create and destroy brick. Show all posts

Wednesday, January 28, 2015

[Tutorial] Cocos2d-x: The second game - Breakout - Create and destroy brick (Part 2)

Some tasks in this lesson: + Create bricks+ Process physics collision+ Check the destruction of bricks, if done, it's WINGAME+ Check GameOver when the ball falls but not colliding with the paddle- It seems muck work but it's simple because it's rather like the first gameLet's start!Step 1 - Create bricksOpen file HelloWorldScene.cpp, add the following code blockfor (int i = 0; i < 5; i++) { static int padding = 100; auto block =...

Posted By Live Blog8:47 PM

Choose an Android item