指导教师
操作说明
MOVE YOUR CURSOR TO CONTROL THE CATS PAWS. IF THE BALL TOUCHES THE OTHER SIDE, YOU GAIN POINTS.
PRESS SPACE TO ENTER PAUSE MENU
HIGH SCORE CALCULATION
FINAL SCORE = YOUR POINTS - OTHER PLAYER'S POINTS
INSPIRED BY GOODGIS
HTTPS://WWW.YOUTUBE.COM/WATCH?V=NSFUJ8HFRVU
SPRITES AND CODE BY ME
SOUND EFFECTS AND MUSIC FOUND ON PIXABAY AND FREESOUND
UPDATE 6/23/2024: UPDATED YARN SFX TO NO LONGER HAVE PONG SOUNDS
备注与谢志
https://scratch.mit.edu/projects/1037942542/
开发日志
变量
paws_touched? [yarn]
velocity [yarn]
cloneID [pause]
paws? [Button_Paws]
TICK
yarn x
yarn y
.PCscore
new x [PCpaw_L]
new y [PCpaw_L]
new x [Playerpaw_L]
new y [Playerpaw_L]
new x [Playerpaw_R]
new y [Playerpaw_R]
old score [star]
new x [PCpaw_R]
wall touches [yarn]
rand x [PC_L]
rand y [PC_L]
rand x [PC_R]
rand y [PC_R]
角色
Stage
造型
背景1
backdrop2
backdrop3
声音
啵
once-in-paris-168895
代码
当 绿旗 被点击
将 {TICK} 设为 0
重复执行
将 {TICK} 增加 1
执行 highscore
当 绿旗 被点击
将 {.PCscore} 设为 0
将 {.score} 设为 0
将音量设为 10%
重复执行
播放声音 once-in-paris-168895 等待播完
当接收到 toggle_volume
如果 (音量 > 0) 那么
将音量设为 0%
否则
将音量设为 10%
当接收到 start
换成 backdrop3 背景
等待 1 秒
等待 按下 空格 键?
广播 pause
当接收到 pause
换成 backdrop2 背景
定义 highscore
如果 (({.score} - {.PCscore}) > {云变量 high_score}) 那么
将 {☁ high_score} 设为 ({.score} - {.PCscore})
角色1
Menu_Paws
Player_L
Player_R
PC_L
PC_R
yarn
overlay
Menu
score
star