Location:
Search - www.applemov
Search list
Description: BREW手机平台下的实例,实现苹果的移动。
通过按键盘的
“UP”、“Down”、“Left”、“Right”使整个苹果可以在屏幕上自由移动(Step=1),通过按“*”使苹果回到初始位置(屏幕的中间)
1,苹果是由4个对象组合而成,移动的时候如何成为一个整体
2、作为key事件驱动区分各个按键动作
3、苹果的每一次移动都是以上一次苹果的位置为参考 -BREW mobile platform example, the realization of Apple mobile. According to the keyboard through the "UP", "Down", "Left" and "Right" so that the whole Apple can move freely on the screen (Step = 1), adopted by the "*" Apple back to the initial position (screen middle) 1, Apple is 4 objects combination, the mobile how to be an overall 2, as key distinction between event-driven buttons all three movements, each time Apple's been more than a mobile Apple's position as a reference
Platform: |
Size: 411648 |
Author: shang |
Hits: