当前位置:网站首页>电子学会图形化一级编程题解析:猫捉老鼠
电子学会图形化一级编程题解析:猫捉老鼠
2022-06-23 14:37:00 【任真】
「本题目来自2019年9月份电子学会青少年软件编程图形化等级考试试卷(一级)」
题目:猫捉老鼠
故事情境:老鼠跑进了丽丽的房间,还把丽丽的书本咬碎了,于是丽丽在朋友那里请了一只小猫来房间抓老鼠,老鼠看到猫,吓得到乱窜,最后逃跑进了另外一间房间……
1.准备工作
(1)选择背景Bedroom1,Bedroom2;
(2)保留小猫角色,选择老鼠Mouse1。
2.功能实现
(1)初始的背景为Bedroom1,小猫的初始位置在屏幕左下角,面向右边,Mouse1在小猫不远处,面向左边;

(2)点击绿旗,气球左右旋转飘动效果;老鼠看到猫后,吓得赶紧掉头(面向右边)逃跑。

(3)小猫看到老鼠后,往前走一段(切换造型),并发出喵叫;

(4)最后老鼠逃到了另外一个房间,切换Bedroom2。

答案代码实现:
气球角色:

老鼠角色:

小猫角色:

背景角色:

边栏推荐
- Effect evaluation of regression model under credit product quota pricing scenario
- Uniswap acquires genie, an NFT transaction aggregator. Will the NFT transaction market change?
- Force deduction solution summary 513- find the value of the lower left corner of the tree
- 小米为何深陷芯片泥潭?
- Introduction to helm basics helm introduction and installation
- 港股今年最大IPO来了,660亿身家,坐在矿山上的“大王”
- The new version of Alibaba Seata finally solves the idempotence, suspension and empty rollback problems of the TCC mode
- 打印内存站信息
- MySQL advanced statement I
- Execute the sc.exe QC command to query some services. The data area passed to the system call is too small
猜你喜欢

K8s-- deploy stand-alone MySQL and persist it

idea查看.class文件 idea查看.class文件夹

js遍历数组(用forEach()方法)

k8s--部署单机版MySQL,并持久化

Introduction to helm basics helm introduction and installation
详解Redis分布式锁的原理与实现

Un million de bonus vous attend, le premier concours d'innovation et d'application de la Chine Yuan cosmique Joint Venture Black Horse Hot Recruitment!

阿里 Seata 新版本终于解决了 TCC 模式的幂等、悬挂和空回滚问题

The new version of Alibaba Seata finally solves the idempotence, suspension and empty rollback problems of the TCC mode

Tencent ECS failed to send email
随机推荐
vim备份历史命令
MySQL 创建和管理表
直播间源码在开发前期必须做的工作及开发步骤
What do you mean by waiting for insurance records? Where should I go for filing?
After nine years at the helm, the founding CEO of Allen Institute retired with honor! He predicted that Chinese AI would lead the world
How can genetic testing help patients fight disease?
idea查看.class文件 idea查看.class文件夹
力扣解法匯總513-找樹左下角的值
巴比特 | 元宇宙每日必读:Meta、微软等科技巨头成立元宇宙标准论坛组织,华为、阿里加入,英伟达高管称欢迎来自加密世界的参与者...
等保备案是什么意思?应该去哪里办理备案?
ai智能机器人让我们工作省时省力
JSR303数据校验
JS里的数组
系统设计与分析课程项目个人小结
How to use note taking software flowus and note for interval repetition? Based on formula template
An idea plug-in for automatically generating unit tests
微信小程序引导用户添加小程序动画页
Redis缓存三大异常的处理方案梳理总结
Raspberry PI installing the wiring pi
【opencv450】椒盐噪声demo