Map like Candy Crush using Cocos2d-x + Marmalade
Asked Answered
L

2

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

Labrador answered 7/2, 2013 at 10:56 Comment(2)
It would be nice to get some piece of code or some reference to start with.Labrador
Any good tutorials for this?Fulfill
S
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.

Siloxane answered 29/1, 2014 at 10:53 Comment(0)
A
0

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

Alice answered 18/4, 2015 at 10:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.