

- #Ccmenu add child cocos2dx how to
- #Ccmenu add child cocos2dx update
- #Ccmenu add child cocos2dx windows 8.1
- #Ccmenu add child cocos2dx code
- #Ccmenu add child cocos2dx windows
How to use AdMob with Cocos2d-js and Android Google Play Game Services with Cocos2d-js and Android Modern browsers and IE 9+ for web games.

#Ccmenu add child cocos2dx windows
#Ccmenu add child cocos2dx windows 8.1
#Ccmenu add child cocos2dx update
#Ccmenu add child cocos2dx code
Open up ActionLayer.mm and add the following code right after the +(id)scene method: So before we go any further, let’s give that a try and see what happens. There may be some of you out there that are thinking, “HUD?! I don’t need no stinking HUD! I’ll just add the labels directly to the layer!” Never fear – HUD to the rescue! Why You Need a HUD What’s worse – when you win or lose nothing happens except for a sound effect – there’s no way to retry! If you get hit by a laser as you play the game, you’ll notice that you take a hit – however there is nothing on the screen to show you your lives. Your goal is to avoid the lasers, and make it to the end! You’ll see this is a simple game where you tap to move, or double tap to jump.

If you’re curious, this game was made in this and that tutorial, but I don’t recommend those tutorials for beginners. Start by downloading the sample game that we will be using for this tutorial. This tutorial is for beginners to Cocos2D who have gone through the How To Make a Simple Game with Cocos2D tutorial, or have equivalent knowledge. In this tutorial, we’re going to take a Cocos2D game that has been made with a single scene and single layer, and add a second layer to use as a HUD. You might want to use the HUD to contain extra controls (like a joystick or buttons) or you might want to use it to display status information (like lives or score). A common question for beginners to Cocos2D is how to add a second layer to your scene to use as a Heads-Up Display, or HUD.
