11

I have developed a 2D game using Cocos2d-x and Marmalade.

I would like to know what would it be the "better solution", considering performances, memory etc, to create a Scene before playing the game where I can show to the user a Map like that one used in Candy Crush Game, then:

  • zooamble
  • scrollable
  • clickable buttons (levels) at predefined coords etc
  • character moving between buttons (level)

Many thanks in advance

Sergio

Sergio Andreotti
  • 913
  • 2
  • 8
  • 26

2 Answers2

0

You can use CCLayerPanZoom as parent and add menu items, characters etc as children.

Check this link: CCLayerPanZoom demo video

and, you can download the source file CCLayerPanZoom Cpp file and CCLayerPanZoom header file from here.

Ankur
  • 1,268
  • 18
  • 22
0

Check out cocos. They have MissionSelect in the tutorials. The usage of ScrollView.

Opal
  • 81,889
  • 28
  • 189
  • 210
Elton Jothi
  • 116
  • 5