I would like to develop a Music game like taptap and I want to be sure if cocos2d can handle that, especially in terms of memory load and smoothness of moving object.
Is it possible to develop a music game(like taptap) with cocos2d
(7 posts) (5 voices)-
Posted 2 years ago #
-
yes, it's possible. probably you will have to code some
CocosNodesubclasses (like in any not so trivial game).I'm not sure if TapTap uses real 3D or "simulated" 3D.
In case if want to use real 3D objects, you might need to work harder.Posted 2 years ago # -
i created TapStar with cocos2d (v.6 -ish)
Posted 2 years ago # -
WOW! you created TapStar. I love that game.
Can you give me some advise on creating them. Especially on memory management...
Posted 2 years ago # -
I'm interested in developing something like this as well... but I don't have any experience coding... so I don't know where to begin.
-but please keep us (me) posted on your progress.
Posted 2 years ago # -
gnetro, you'll need to ask more specific questions than that in order to get any advice...
Posted 2 years ago # -
the memory for the app is @ 3 or 4 mb during gameplay. the game is actually super simple. all arrows are of the same type, and drawn from an atlas and animations are manually controlled by offsetting frame, and sometimes a rotation is applied(since in the atlas they are all up-left).
they are drawn offscreen at the bottom and put into an array, and when they pass a threshold(top of screen) they are moved into another array which is still being rendered to screen but almost ready to dispose of, but they are out of play at this time. once they are offscreen they are moved into a 3rd array which is like a garbage collection type group.
I did have a pool of them to reuse at one point but the performance wasnt really affected so it didnt matter. the atlas image stays in memory for the duration of the game so creating the sprites on the fly is quick enough.
other than that, the controls layer which is the layer that handles touch input. is handled all manually also and uses screen rects where i decide buttons are.
all animations are manually done except for a few i was too lazy to convert over. these animations i use delta time and a "pixel per second" animation speed which is made with a formula based off the bpm of the music.
Im actually not working at epictilt or on the project any longer and have a few of my own games coming out soon, that if you like tapstar you should really love.
I also did a presentation at cocoaheads LosAngeles this summer where i went into detail of all that went into creating the game.
Posted 2 years ago #
Reply
You must log in to post.