正如书中所指出,为了设置定时器和确定动画的当前进度,需要编写大量必不可少却又一再重复的代码。
As the book illustrates, there is a lot of boiler-plate code required in order to setup timers and determine the current progress of the animation.
简单明了的“选项”对话框允许您设置刷新间隔,选择你想用的动画,设置提醒时的声音,以及选择是否在开机时启动程序。
A sparse and straightforward ’Options’ dialogue allows you to set the refresh interval, pick an animation, set the sound alert and choose whether the application runs on start-up.
这个框架还包含处理Events(触摸、定位、滚动、页面、动画)的API、Themes及其他探测设置。
The framework also has an API for dealing with Events (touch, orientation, scrolling, page, animation), Themes, and other plumbing Settings.
And odds are if a week hence, two weeks hence just for fun you decide to reimplement your Scratch project -- or some tiny piece of it, it wouldn't be surprising -- or shouldn't be -- if you end of implementing the same game or animation or whatever using a completely different set of puzzle pieces Same deal we'd see here.
可能一周之后,两周之后,为了好玩,你决定重新实现你的Scrtch工程,或者其中一小部分,它将不会是令人惊讶的-,本来也不应该是--如果你运行相同的游戏,或者是动画,亦或是用完全不同的设置,来运行拼图游戏,我们将看到相同的处理。
应用推荐