AS Surfaces
Frédéric,
Thanks to your AnimationPlus(AP) library, and the NOA library, I have just completed a nice little educational game app, that (to me) looks very nice.
It does have a few slowdown hiccups, (on my S3!!) that I don't see on my other devices, so while I am sure it is something in my phone (time to wipe and start fresh), I also think it is partly because I am using all Custom Views, so that I can take advantage of the calls to NOA and AP to add the effects.
One of the reasons I use Custom Views, is to take advantage of very quickly determining which View is selected by the user, and then tying all those update events to that Custom View for moving the view around on the screen.
Thanks to your AS Samples, I "think" I might have a handle of using NOA or AP with AS.. so my next project is to try to make a game with multiple moving elements (like WhackAMole)..
My thoughts for implementation are to design a custom View with a transparent View over the AS, so I can get the user info again, and then have the AS do whatever Animation is appropriate. Theoretically, I could see getting up to 60 Cutom Views instantiated at the same time.
I think this will free the animations from the "stutter" effect I see at times, and should allow for a smoother experience, but I am just wondering if there is a performance hit by having so many AS instantiated at the same time? (As I know there would be some with them being instantiated as normal Views.. i.e. 60 imageViews with 60 clearPanels, each one potentially doing there own animation effects using NOA or AP).
If so, I can go down the path of creating a Custom Object, that would just be the bitmap, and then I do a search in GestureDetector to see which object is being touched or moved, and pass appropriate information to the Object, and during Update get everything ready, and have the AS passed to each object during the Draw event, it just doesn't feel as encapsulated that way, but if necessary...
Ross