Showing posts with label Touch screen event and shoot bullets. Show all posts
Showing posts with label Touch screen event and shoot bullets. Show all posts

Monday, January 19, 2015

[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

Choose an Android item