吃豆人(转载)

复制链接 & 嵌入
链接
复制链接
嵌入网页
复制嵌入代码
进入全屏模式
载入作品
正在创建积木……
载入角色……
载入声音……
加载扩展……
正在创建积木……
呼唤小猫……
传送Nano……
给Gobo充气 …
准备表情……
还没有人打赏!
最后修改于2025年05月01日

指导教师

操作说明

上下左右

备注与谢志

这家伙很懒,什么都没写下...

开发日志

扩展

画笔

 

变量

FillX [Pill]

FillY [Pill]

StepCount [PacMan]

NextDirX [PacMan]

DirY [PacMan]

DirX [PacMan]

SpriteFrame [PacMan]

NextDirY [PacMan]

Random [Ghost]

GhostStepCount [Ghost]

BeastMode [PacMan]

CellState [PacMan]

BeastTimer [PacMan]

TempDef [Pill]

GhostPosX [Ghost]

GhostPosY [Ghost]

GhostDirY [Ghost]

GhostDirX [Ghost]

CellX [PacMan]

CellY [PacMan]

NextCellState [PacMan]

PosX [PacMan]

PosY [PacMan]

RetreatMode [Ghost]

TargetPosX [Ghost]

TargetPosY [Ghost]

Captured [PacMan]

OriginX

IdxX

IdxY

PillCount

NextDirRetry [Ghost]

OriginY

TempIdx [Pill]

TextIdx [Highscore]

Offset [Highscore]

CharMap [Highscore]

EncodedText [Highscore]

CharIdx [Highscore]

DecodedText [Highscore]

ScoreIdx [Highscore]

Name [Highscore]

Answer [Highscore]

ScoreLocal [Highscore]

HighscoreMaxCount [Highscore]

GhostType [Ghost]

Visible [Highscore]

PillScore

IdxString [Highscore]

SubstringRes [Highscore]

HighscoreLocal [Highscore]

ScoreIdx2 [Highscore]

LivesLbl

LevelLbl

ScoreLbl

Lives

Level

Score

Volume

云变量 HighscoreCloud1

云变量 HighscoreCloud2

云变量 HighscoreCloud3

云变量 HighscoreCloud4

云变量 HighscoreCloud5

 

列表

BallSpots [Pill]

Names [Highscore]

Scores [Highscore]

Temp [Highscore]

GridDef

 

角色

Stage

造型

背景1

Stage

StartscreenOld

Startscreen

 

声音

pop

PacMan

levelup

 

代码

当 绿旗 被点击

重复执行

播放声音 PacMan 等待播完

 

当 绿旗 被点击

将 {Volume} 设为 15

重复执行

将音量设为 {Volume}%

等待 1 秒

 

当 绿旗 被点击

执行 ShowStartScreen

 

当按下 空格 键

执行 StartGameEx

 

当按下 h 键

如果 (背景名称 = Startscreen) 那么

广播 showhighscore

 

当接收到 nextlevel

播放声音 levelup

执行 InitGrid

 

当接收到 handlescore

广播 cleanupgame

执行 ShowStartScreen

 

定义 InitGrid

删除 {GridDef} 的第 all 项

将 0000000000000000000000000000000000000000000000000000 加入 {GridDef}

将 0131331331331001331331331001331331331001331331331310 加入 {GridDef}

将 0300003000003003000000003003000000003003000003000030 加入 {GridDef}

将 0100001000001001000000001001000000001001000001000010 加入 {GridDef}

将 0300003000003003000000003003000000003003000003000030 加入 {GridDef}

将 0231331331331331331331331331331331331331331331331320 加入 {GridDef}

将 0300003003000000003003000000003003000000003003000030 加入 {GridDef}

将 0300003003000000003003000000003003000000003003000030 加入 {GridDef}

将 0131331001331001331001331001331001331001331001331310 加入 {GridDef}

将 0000003003003003000000003003000000003003003003000000 加入 {GridDef}

将 0000003003003003000000003003000000003003003003000000 加入 {GridDef}

将 0000001001001331331001331331331001331331001001000000 加入 {GridDef}

将 0000003003003000003003000030003003000003003003000000 加入 {GridDef}

将 0000003003003000003003000030003003000003003003000000 加入 {GridDef}

将 0431331331331001331331000030001331331001331331331340 加入 {GridDef}

将 0000003003000003000003000000003000003000003003000000 加入 {GridDef}

将 0000003003000003000003000000003000003000003003000000 加入 {GridDef}

将 0000001001331331331001331331331001331331331001000000 加入 {GridDef}

将 0000003003000000003003000000003003000000003003000000 加入 {GridDef}

将 0000003003000000003003000000003003000000003003000000 加入 {GridDef}

将 0231331331331001331331331001331331331001331331331320 加入 {GridDef}

将 0300003000003003000000003003000000003003000003000030 加入 {GridDef}

将 0300003000003003000000003003000000003003000003000030 加入 {GridDef}

将 0131001331331331331331331331331331331331331331001310 加入 {GridDef}

将 0003003003000000003003000000003003000000003003003000 加入 {GridDef}

将 0003003003000000003003000000003003000000003003003000 加入 {GridDef}

将 0131331001331001331001331001331001331001331001331310 加入 {GridDef}

将 0300000000003003000000003003000000003003000000000030 加入 {GridDef}

将 0300000000003003000000003003000000003003000000000030 加入 {GridDef}

将 0131331331331331331331331331331331331331331331331310 加入 {GridDef}

将 0000000000000000000000000000000000000000000000000000 加入 {GridDef}

 

定义 StartGameEx

如果 (背景名称 = Startscreen) 那么

广播 hidehighscore

换成 Stage 背景

隐藏变量 {Volume}

将 {LivesLbl} 设为 Lives

将 {LevelLbl} 设为 Level

将 {ScoreLbl} 设为 Score

显示变量 {LivesLbl}

显示变量 {LevelLbl}

显示变量 {ScoreLbl}

显示变量 {Lives}

显示变量 {Level}

显示变量 {Score}

执行 StartGame

 

定义 ShowStartScreen

隐藏变量 {LivesLbl}

隐藏变量 {LevelLbl}

隐藏变量 {ScoreLbl}

隐藏变量 {Lives}

隐藏变量 {Level}

隐藏变量 {Score}

显示变量 {Volume}

换成 Startscreen 背景

 

定义 StartGame

将 {OriginX} 设为 -238

将 {OriginY} 设为 176

将 {PillCount} 设为 0

将 {Level} 设为 1

将 {Score} 设为 0

将 {PillScore} 设为 0

将 {Lives} 设为 3

执行 InitGrid

将 {IdxY} 设为 0

重复执行 {GridDef} 的项目数 次

将 {IdxX} 设为 0

重复执行 {GridDef} 的第 {IdxY} 项 的字符数 次

如果 (({GridDef} 的第 {IdxY} 项 的第 {IdxX} 个字符 = 1) 或 ({GridDef} 的第 {IdxY} 项 的第 {IdxX} 个字符 = 2)) 那么

将 {PillCount} 增加 1

将 {IdxX} 增加 1

将 {IdxY} 增加 1

广播 startgame 并等待

广播 startgamestage2

 

角色1

 

PacMan

 

Ghost

 

Pill

 

Highscore

 

Thumbnail

 

(0) 评论 (1)

记得打转载
作者 落实 男生
广东省
27天 前
回复:沙雕scratch猫 又没有热度,打转载也没用
回复:落实 做个形式,scratch社区公认应该这么做
作者 落实 男生
广东省
27天 前
回复:沙雕scratch猫 好