android - How to create "levels" in Marmalade? -
i create game marmalade, don't know how make "levels" in it. mean levels, on android screens, or activitys.
for example don't know how make menu, click on button (i can make button, control touch...) , create new screen game level.
on android there activitys reason, how can in marmalade?
you can use marmalade's iwui
api this. used creating ui of game. can either use .ui files (similar xml files in android/xib in ios) or can programmatically too.
what need is, create separate ciwuielement*
objects can represent complete views in game. these can called main page elements or super parent elements. can assign childs super parents, such buttons, images etc.
according button clicks can add or remove these super parents iwuicontroller
, change views according that. can add elements without removing previous ones, result in overlay.
you might want create separate class separate super parent element. i've created base class ui , subclasses hold super parent elements. these subclasses works activity me , instead of calling intent, add or remove them iwuiviewcontroller