资源简介 课件8张PPT。行走天涯条件判断课堂回顾用VB设计简单的用户界面计时器的Interval属性用计时器实现玛丽的行走功能程序的保存运行及调试课时目标编写实现“玛丽左进右出”的程序认识Image的Width和Height属性编写实现“玛丽坠崖”的程序实现“玛丽的左进右出”编写事件过程代码:PrivateSubTimer1-Timer() If Image1.Left<=-Image1.Width Then Image1.Left=Form1.Width-Image1.Width Else Image1.Left=Image1.Left-100 End if End Sub玛丽消失的判断玛丽出现的位置玛丽行走玛丽坠崖属性玛丽坠崖事件编写事件过程代码:PrivateSubTimer1-Timer() If Image1.Left>4800 Then Image1.Left=Image1.Left-100 Else Timer2.Enabled=True Image2.Visible=True Timer2.Enabled=False Image2.Visible=False End if End Sub坠崖判断行走玛丽坠崖有效直立玛丽可见玛丽行走无效行走玛丽不可见条件语句格式1:If<判断条件> Then <程序段 A>Else <程序段 B>End if <程序段 C>格式1:If<判断条件> Then <程序段 A>End if <程序段 B>创作天地同学们,我们这节课的理论知识讲解完毕,现在请你发挥创意:1、将玛丽的“左进右出”更改为“右进左出”2、实现“玛丽坠崖”3、将你的设计特色化 展开更多...... 收起↑ 资源预览