开发者

How to move a pacman in an android application?

开发者 https://www.devze.com 2023-02-04 03:45 出处:网络
i have painted canvas for maze using two dimensional array. now i want to know 1.开发者_如何学Chow i can show pacman animated(in j2me we can fill the circles by some degrees)?

i have painted canvas for maze using two dimensional array. now i want to know

1.开发者_如何学Chow i can show pacman animated(in j2me we can fill the circles by some degrees)?

2.how the pacman moves and eat the food means when pacman moves the screen will be repainted?

thankx


Start by following the graphics tutorials here. Particularly the "Playing with Graphics" series. If you have a specific problem, come here and ask it. Otherwise, questions asking "How can I make a game where such-and-such happens and so-and-so is animated" are generally not welcome.


You can try flixel-android lib (especially if you are familiar with ActionScript 3 programming model). It will take the heavy lifting out of animation loops and tweens calculation. So you don't need to mess around with third-party tweeners, loops with Timers, TimerTasks and ScheduledExecutorServices.

Hope this will help you.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号