@aiyiran/myclaw 1.1.211 → 1.1.213

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/find-config.js +13 -4
  2. package/index.js +5 -3
  3. package/injects/inject-minimax.js +213 -137
  4. package/package.json +1 -1
  5. package/skills/minimax-inject/SKILL.md +6 -21
  6. package/skills/minimax-inject/scripts/inject.js +12 -243
  7. package//345/234/260/344/270/213/345/237/216/345/244/247/345/206/222/351/231/251/1.html +0 -1756
  8. package//345/234/260/344/270/213/345/237/216/345/244/247/345/206/222/351/231/251/__demo__.html +0 -1756
  9. package//345/234/260/344/270/213/345/237/216/345/244/247/345/206/222/351/231/251/__student-view__.html +0 -77
  10. package//345/234/260/344/270/213/345/237/216/345/244/247/345/206/222/351/231/251/__student__.json +0 -60
  11. package//345/234/260/344/270/213/345/237/216/345/244/247/345/206/222/351/231/251/__teacher-view__.html +0 -52
  12. package//345/234/260/344/270/213/345/237/216/345/244/247/345/206/222/351/231/251/__teacher__.json +0 -45
  13. package//345/234/260/344/270/213/345/237/216/345/244/247/345/206/222/351/231/251/index.html +0 -150
  14. package//346/210/221/347/232/204/345/217/254/345/224/244/345/233/276/351/211/264/357/274/232/346/215/242/344/270/273/351/242/230/346/215/242/345/215/241/346/261/240/__demo__.html +0 -1531
  15. package//346/210/221/347/232/204/345/217/254/345/224/244/345/233/276/351/211/264/357/274/232/346/215/242/344/270/273/351/242/230/346/215/242/345/215/241/346/261/240/__student-view__.html +0 -77
  16. package//346/210/221/347/232/204/345/217/254/345/224/244/345/233/276/351/211/264/357/274/232/346/215/242/344/270/273/351/242/230/346/215/242/345/215/241/346/261/240/__student__.json +0 -60
  17. package//346/210/221/347/232/204/345/217/254/345/224/244/345/233/276/351/211/264/357/274/232/346/215/242/344/270/273/351/242/230/346/215/242/345/215/241/346/261/240/__teacher-view__.html +0 -52
  18. package//346/210/221/347/232/204/345/217/254/345/224/244/345/233/276/351/211/264/357/274/232/346/215/242/344/270/273/351/242/230/346/215/242/345/215/241/346/261/240/__teacher__.json +0 -45
  19. package//346/210/221/347/232/204/345/217/254/345/224/244/345/233/276/351/211/264/357/274/232/346/215/242/344/270/273/351/242/230/346/215/242/345/215/241/346/261/240/index.html +0 -150
  20. package//347/264/257/345/220/220/350/241/200/345/220/216/347/232/204/346/200/273/347/273/223.md +0 -196
  21. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/1.jpg +0 -0
  22. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/2.jpg +0 -0
  23. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/3.jpg +0 -0
  24. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/4.jpg +0 -0
  25. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/AI/344/270/215/347/224/250/347/234/213/347/232/204/345/216/237/345/247/213/346/217/220/347/244/272/350/257/215/344/272/272/347/261/273/347/234/213/__/351/200/211/351/242/230/345/274/225/346/223/216__.html +0 -589
  26. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/AI/344/270/215/347/224/250/347/234/213/347/232/204/345/216/237/345/247/213/346/217/220/347/244/272/350/257/215/344/272/272/347/261/273/347/234/213//345/216/237/345/247/213/346/217/220/347/244/272/350/257/215.md +0 -125
  27. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/AI/344/270/215/347/224/250/347/234/213/347/232/204/345/216/237/345/247/213/346/217/220/347/244/272/350/257/215/344/272/272/347/261/273/347/234/213//350/200/201/350/202/226/347/210/206/346/254/276/351/200/211/351/242/230/345/274/225/346/223/216.md +0 -179
  28. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/AI/344/270/215/347/224/250/347/234/213/347/232/204/345/216/237/345/247/213/346/217/220/347/244/272/350/257/215/344/272/272/347/261/273/347/234/213//350/200/201/350/202/226/351/207/221/345/217/245/345/272/223v1.md +0 -594
  29. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/__demo__.html +0 -588
  30. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/__student-view__.html +0 -77
  31. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/__student__.json +0 -54
  32. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/__teacher-view__.html +0 -52
  33. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/__teacher__.json +0 -46
  34. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/index.html +0 -148
  35. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220//344/270/211/344/270/252/350/247/206/351/242/221/345/216/237/345/247/213/345/206/205/345/256/271/1-/344/273/200/344/271/210/346/230/257/344/274/230/347/247/200/347/232/204/345/255/251/345/255/220+/350/223/235/346/230/237/344/277/261/344/271/220/351/203/250/345/210/233/345/212/236+/347/210/266/346/257/215/345/244/251/350/201/214/357/274/210/351/200/220/345/255/227/347/250/277/357/274/211.md +0 -48
  36. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220//344/270/211/344/270/252/350/247/206/351/242/221/345/216/237/345/247/213/345/206/205/345/256/271/2-/350/277/207/347/250/213/345/206/231/344/275/234/350/257/276/347/250/213/345/210/206/344/272/253/357/274/210/351/200/220/345/255/227/347/250/277/357/274/211.md +0 -27
  37. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220//344/270/211/344/270/252/350/247/206/351/242/221/345/216/237/345/247/213/345/206/205/345/256/271/3-/350/202/262/345/204/277/345/273/272/350/256/256/357/274/232/345/242/236/351/207/217/344/277/241/346/201/257+/346/214/207/345/274/225vs/345/216/237/345/210/231+/345/210/206/344/272/253/347/224/237/346/264/273/347/273/206/350/212/202/357/274/210/351/200/220/345/255/227/347/250/277/357/274/211.md +0 -204
  38. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220//344/270/211/344/270/252/350/247/206/351/242/221/345/216/237/345/247/213/345/206/205/345/256/271//346/213/206/345/210/206/345/211/215/345/275/225/351/237/263/346/226/207/346/234/254.md +0 -267
  39. package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220//350/264/242/345/212/241/345/210/206/346/236/220.html +0 -411
  40. package//350/264/246/345/215/225/345/210/206/346/236/220/345/212/251/346/211/213/__demo__.html +0 -411
  41. package//350/264/246/345/215/225/345/210/206/346/236/220/345/212/251/346/211/213/__student-view__.html +0 -77
  42. package//350/264/246/345/215/225/345/210/206/346/236/220/345/212/251/346/211/213/__student__.json +0 -54
  43. package//350/264/246/345/215/225/345/210/206/346/236/220/345/212/251/346/211/213/__teacher-view__.html +0 -52
  44. package//350/264/246/345/215/225/345/210/206/346/236/220/345/212/251/346/211/213/__teacher__.json +0 -50
  45. package//350/264/246/345/215/225/345/210/206/346/236/220/345/212/251/346/211/213/index.html +0 -148
  46. package//351/200/203/345/207/272/350/277/267/345/256/253/357/274/232/346/210/221/346/235/245/345/256/232/350/247/204/345/210/231/__demo__.html +0 -842
  47. package//351/200/203/345/207/272/350/277/267/345/256/253/357/274/232/346/210/221/346/235/245/345/256/232/350/247/204/345/210/231/__student-view__.html +0 -77
  48. package//351/200/203/345/207/272/350/277/267/345/256/253/357/274/232/346/210/221/346/235/245/345/256/232/350/247/204/345/210/231/__student__.json +0 -60
  49. package//351/200/203/345/207/272/350/277/267/345/256/253/357/274/232/346/210/221/346/235/245/345/256/232/350/247/204/345/210/231/__teacher-view__.html +0 -52
  50. package//351/200/203/345/207/272/350/277/267/345/256/253/357/274/232/346/210/221/346/235/245/345/256/232/350/247/204/345/210/231/__teacher__.json +0 -45
  51. package//351/200/203/345/207/272/350/277/267/345/256/253/357/274/232/346/210/221/346/235/245/345/256/232/350/247/204/345/210/231/index.html +0 -150
@@ -1,77 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="zh-CN">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>逃出迷宫:我来定规则</title>
7
- <style>
8
- * { box-sizing: border-box; }
9
- body { margin: 0; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; background: #f4f7fb; color: #24324a; }
10
- .page { max-width: 1440px; margin: 0 auto; padding: 20px 20px 48px; }
11
- .header-bar { background: linear-gradient(135deg,#5f82ff 0%,#8c74ff 100%); border-radius: 24px; padding: 20px 24px; box-shadow: 0 16px 36px rgba(92,108,192,.24); }
12
- .header-left h1 { margin: 0; font-size: 26px; line-height: 1.3; color: #fff; font-weight: 800; }
13
- .header-left .subtitle { margin: 8px 0 0; font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.88); }
14
- .main-section { margin-top: 18px; }
15
- .block { background: #fff; border-radius: 24px; padding: 22px; box-shadow: 0 10px 28px rgba(100,122,166,.12); }
16
- .content-layout { display: grid; grid-template-columns: 220px minmax(0,1fr) 220px; gap: 14px; align-items: stretch; }
17
- .task-panel, .goal-panel { background: #f8faff; border: 1px solid #e7eefc; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
18
- .panel-group h3 { margin: 0 0 10px; color: #334d98; font-size: 17px; }
19
- .task-item { margin-bottom: 10px; }
20
- .task-item:last-child { margin-bottom: 0; }
21
- .item-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: #7a89ad; }
22
- .item-body { background: #fff; border: 1px solid #e7eefc; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #60708b; line-height: 1.7; }
23
- .task-item .num { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #edf2ff; color: #7a89ad; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
24
- .star-item .num { background: #fff7dc; color: #b89a4f; }
25
- .sample-frame-wrap { background: #f8faff; border: 1px solid #e7eefc; border-radius: 20px; padding: 14px; min-width: 0; }
26
- .sample-frame-head { display: flex; justify-content: flex-start; align-items: center; gap: 10px; margin-bottom: 12px; }
27
- .sample-frame-head h3 { margin: 0; color: #334d98; font-size: 17px; }
28
- .tips-block { margin-top: 16px; background: #fff; border-radius: 24px; padding: 22px; box-shadow: 0 10px 28px rgba(100,122,166,.12); }
29
- .tips-block h3 { margin: 0 0 14px; color: #334d98; font-size: 18px; }
30
- .tips-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
31
- .tip-item { background: #f8faff; border: 1px solid #e7eefc; border-radius: 16px; padding: 14px; }
32
- .tip-title { font-size: 14px; font-weight: 700; color: #334d98; margin-bottom: 8px; }
33
- .tip-desc { font-size: 13px; color: #60708b; line-height: 1.7; margin-bottom: 8px; }
34
- .tip-prompt { font-size: 12px; color: #4f5f7c; line-height: 1.8; background: #fff; border: 1px dashed #d6e2ff; border-radius: 12px; padding: 10px 12px; }
35
- iframe { width: 100%; height: 560px; border: 1px solid #dfe7fb; border-radius: 16px; background: #fff; display: block; }
36
- @media (max-width: 960px) { .page { padding: 14px 12px 32px; } .header-bar { padding: 16px 18px; } .header-left h1 { font-size: 22px; } .header-left .subtitle { font-size: 12px; } .content-layout { grid-template-columns: 1fr; } .task-panel, .goal-panel, .sample-frame-wrap, .tips-block { padding: 14px; } .tips-list { grid-template-columns: 1fr; } iframe { height: 360px; } }
37
- </style>
38
- </head>
39
- <body>
40
- <div class="page">
41
- <header class="header-bar">
42
- <div class="header-left">
43
- <h1>逃出迷宫:我来定规则</h1>
44
- <p class="subtitle">先玩懂这个3D迷宫游戏,然后改参数、改外观、加规则,做出一个属于你的版本。</p>
45
- </div>
46
- </header>
47
- <div class="main-section">
48
- <section class="block">
49
- <div class="content-layout">
50
- <div class="task-panel">
51
- <div class="panel-group">
52
- <h3>步骤</h3>
53
- <div class="task-item"><div class="item-top"><span class="num">1</span><span>玩懂游戏</span></div><div class="item-body">先玩一遍示范:用WASD移动,找到黄色旗帜,躲开僵尸,试试「自由视角」和「身临其境」两种模式。搞清楚:生命怎么扣、僵尸怎么追、怎么才算通关。</div></div><div class="task-item"><div class="item-top"><span class="num">2</span><span>改一个游戏参数</span></div><div class="item-body">找到代码顶部的「迷宫配置」区域,改一个数字试试效果。比如把迷宫变大、让玩家跑快点、或者让僵尸更慢。改完要确认游戏还能正常运行。</div></div><div class="task-item"><div class="item-top"><span class="num">3</span><span>改一个视觉元素</span></div><div class="item-body">改颜色或外观,让游戏看起来和原版不一样。比如换墙的颜色、换地面、换玩家颜色,或者给僵尸换个样子。</div></div><div class="task-item"><div class="item-top"><span class="num">4</span><span>加一个你的规则</span></div><div class="item-body">想一个让游戏更好玩的新规则,让AI帮你实现。比如加第二只僵尸、加计时器、加可以捡的道具,或者改掉你觉得不合理的地方。</div></div>
54
- </div>
55
- </div>
56
- <div class="sample-frame-wrap">
57
- <div class="sample-frame-head"><h3>游戏示范</h3></div>
58
- <iframe src="__demo__.html" title="游戏示范"></iframe>
59
- </div>
60
- <div class="goal-panel">
61
- <div class="panel-group">
62
- <h3>评价目标</h3>
63
- <div class="task-item star-item"><div class="item-top"><span class="num">一星</span><span>一星</span></div><div class="item-body">改了至少一个参数,游戏还能正常运行,能说出改了什么、有什么变化。</div></div><div class="task-item star-item"><div class="item-top"><span class="num">二星</span><span>二星</span></div><div class="item-body">改了参数和视觉,游戏玩起来和原版有明显区别。</div></div><div class="task-item star-item"><div class="item-top"><span class="num">三星</span><span>三星</span></div><div class="item-body">加了一个新规则或机制,游戏有自己的设计想法,能说清楚为什么这样改。</div></div>
64
- </div>
65
- </div>
66
- </div>
67
- </section>
68
- <section class="tips-block">
69
- <h3>小提示</h3>
70
- <div class="tips-list">
71
- <div class="tip-item"><div class="tip-title">改参数在哪里</div><div class="tip-desc">代码开头有一段「迷宫配置」,改 MAZE_SIZE(迷宫大小)、MOVE_SPEED(玩家速度)、WALL_HEIGHT(墙高度)等数字就行。</div><div class="tip-prompt">参考提示词:帮我把迷宫大小改成15,玩家移动速度改快一点</div></div><div class="tip-item"><div class="tip-title">改颜色怎么改</div><div class="tip-desc">找到 color: 0x 开头的代码,后面的字母数字就是颜色,可以让AI帮你换成喜欢的颜色。</div><div class="tip-prompt">参考提示词:帮我把迷宫墙壁改成深蓝色,地面改成黑色</div></div><div class="tip-item"><div class="tip-title">加新规则怎么说</div><div class="tip-desc">直接描述你想要的效果,让AI帮你加。越具体越好,比如「加一只跑得更快的红色僵尸,从终点出发」。</div><div class="tip-prompt">参考提示词:帮我再加一只僵尸,这只僵尸比原来的快,颜色是绿色</div></div><div class="tip-item"><div class="tip-title">改坏了怎么办</div><div class="tip-desc">如果改完游戏出错了,把改动告诉AI,让它帮你找出问题在哪。或者直接让它检查报错信息。</div><div class="tip-prompt">参考提示词:我改了这段代码之后游戏打不开了,帮我看看哪里有问题:[粘贴代码]</div></div>
72
- </div>
73
- </section>
74
- </div>
75
- </div>
76
- </body>
77
- </html>
@@ -1,60 +0,0 @@
1
- {
2
- "任务标题": "逃出迷宫:我来定规则",
3
- "一句话说明": "先玩懂这个3D迷宫游戏,然后改参数、改外观、加规则,做出一个属于你的版本。",
4
- "步骤": [
5
- {
6
- "标题": "玩懂游戏",
7
- "说明": "先玩一遍示范:用WASD移动,找到黄色旗帜,躲开僵尸,试试「自由视角」和「身临其境」两种模式。搞清楚:生命怎么扣、僵尸怎么追、怎么才算通关。"
8
- },
9
- {
10
- "标题": "改一个游戏参数",
11
- "说明": "找到代码顶部的「迷宫配置」区域,改一个数字试试效果。比如把迷宫变大、让玩家跑快点、或者让僵尸更慢。改完要确认游戏还能正常运行。"
12
- },
13
- {
14
- "标题": "改一个视觉元素",
15
- "说明": "改颜色或外观,让游戏看起来和原版不一样。比如换墙的颜色、换地面、换玩家颜色,或者给僵尸换个样子。"
16
- },
17
- {
18
- "标题": "加一个你的规则",
19
- "说明": "想一个让游戏更好玩的新规则,让AI帮你实现。比如加第二只僵尸、加计时器、加可以捡的道具,或者改掉你觉得不合理的地方。"
20
- }
21
- ],
22
- "评价目标": [
23
- {
24
- "等级": "一星",
25
- "说明": "改了至少一个参数,游戏还能正常运行,能说出改了什么、有什么变化。"
26
- },
27
- {
28
- "等级": "二星",
29
- "说明": "改了参数和视觉,游戏玩起来和原版有明显区别。"
30
- },
31
- {
32
- "等级": "三星",
33
- "说明": "加了一个新规则或机制,游戏有自己的设计想法,能说清楚为什么这样改。"
34
- }
35
- ],
36
- "示例区标题": "游戏示范",
37
- "示例页面文件": "__demo__.html",
38
- "小提示": [
39
- {
40
- "标题": "改参数在哪里",
41
- "说明": "代码开头有一段「迷宫配置」,改 MAZE_SIZE(迷宫大小)、MOVE_SPEED(玩家速度)、WALL_HEIGHT(墙高度)等数字就行。",
42
- "参考提示词": "帮我把迷宫大小改成15,玩家移动速度改快一点"
43
- },
44
- {
45
- "标题": "改颜色怎么改",
46
- "说明": "找到 color: 0x 开头的代码,后面的字母数字就是颜色,可以让AI帮你换成喜欢的颜色。",
47
- "参考提示词": "帮我把迷宫墙壁改成深蓝色,地面改成黑色"
48
- },
49
- {
50
- "标题": "加新规则怎么说",
51
- "说明": "直接描述你想要的效果,让AI帮你加。越具体越好,比如「加一只跑得更快的红色僵尸,从终点出发」。",
52
- "参考提示词": "帮我再加一只僵尸,这只僵尸比原来的快,颜色是绿色"
53
- },
54
- {
55
- "标题": "改坏了怎么办",
56
- "说明": "如果改完游戏出错了,把改动告诉AI,让它帮你找出问题在哪。或者直接让它检查报错信息。",
57
- "参考提示词": "我改了这段代码之后游戏打不开了,帮我看看哪里有问题:[粘贴代码]"
58
- }
59
- ]
60
- }
@@ -1,52 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="zh-CN">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>C · 逃出迷宫:我来定规则</title>
7
- <style>
8
- * { box-sizing: border-box; }
9
- body { margin: 0; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; background: #f4f7fb; color: #24324a; }
10
- .page { max-width: 1400px; margin: 0 auto; padding: 20px; }
11
- .hero { background: linear-gradient(135deg,#5f82ff 0%,#8c74ff 100%); color: #fff; border-radius: 24px; padding: 22px 24px; box-shadow: 0 16px 36px rgba(92,108,192,.22); }
12
- .hero h1 { margin: 0; font-size: 28px; }
13
- .hero p { margin: 8px 0 0; opacity: .92; font-size: 14px; }
14
- .layout { margin-top: 18px; display: grid; grid-template-columns: 360px minmax(0,1fr); gap: 16px; align-items: start; }
15
- .sidebar { display: grid; gap: 16px; }
16
- .card, .preview-card { background: #fff; border: 1px solid #e7eefc; border-radius: 20px; padding: 18px; box-shadow: 0 10px 24px rgba(100,122,166,.08); }
17
- .card h2, .preview-head h2 { margin: 0 0 12px; font-size: 18px; color: #314a96; }
18
- .meta-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
19
- .meta-item { background: #f8faff; border: 1px solid #e7eefc; border-radius: 14px; padding: 12px; }
20
- .meta-item .label { font-size: 12px; color: #7a89ad; margin-bottom: 6px; }
21
- .meta-item .value { font-size: 14px; color: #24324a; font-weight: 700; }
22
- .tags { display: flex; flex-wrap: wrap; gap: 8px; }
23
- .tag { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px; background: #edf2ff; color: #4c65c3; font-size: 13px; font-weight: 700; }
24
- .list { display: grid; gap: 10px; }
25
- .list-item { background: #f8faff; border: 1px solid #e7eefc; border-radius: 14px; padding: 12px; line-height: 1.7; font-size: 14px; color: #60708b; }
26
- .issue { border-left: 4px solid #8c74ff; background: #faf8ff; }
27
- .issue strong { color: #314a96; display: block; margin: 6px 0; }
28
- iframe { width: 100%; height: 900px; border: 1px solid #dfe7fb; border-radius: 16px; background: #fff; display: block; }
29
- .empty-box { background: #f8faff; border: 1px dashed #cfdcff; border-radius: 14px; padding: 24px; color: #7a89ad; line-height: 1.8; }
30
- @media (max-width: 960px) { .layout { grid-template-columns: 1fr; } iframe { height: 420px; } }
31
- </style>
32
- </head>
33
- <body>
34
- <div class="page">
35
- <section class="hero">
36
- <h1>C · 逃出迷宫:我来定规则</h1>
37
- <p>这是根据教师 JSON 自动生成的可视化查看页,左边快速扫读,右边直接看作品预览。</p>
38
- </section>
39
- <section class="layout">
40
- <div class="sidebar">
41
- <div class="card"><h2>基础信息</h2><div class="meta-grid"><div class="meta-item"><div class="label">主能力标签</div><div class="value">第四能力:迭代推进</div></div><div class="meta-item"><div class="label">任务类型标签</div><div class="value">游戏机制</div></div></div></div>
42
- <div class="card"><h2>适合学生类型</h2><div class="tags"><span class="tag">喜欢游戏、对游戏规则有想法的学生</span><span class="tag">会做基础网页但想挑战互动项目的学生</span><span class="tag">做完容易停手、需要练习「再改一次」的学生</span></div></div>
43
- <div class="card"><h2>训练重点</h2><div class="list"><div class="list-item">读懂已有代码结构,找到可改的位置</div><div class="list-item">用参数控制游戏体验,理解数值和效果的关系</div><div class="list-item">把自己的游戏想法转化成具体的修改方向</div></div></div>
44
- <div class="card"><h2>卡点和解决方案</h2><div class="list"><div class="list-item issue"><strong>卡点</strong>不知道从哪里改起,代码太多看不懂<strong>解决方案</strong>引导学生先只看「迷宫配置」那几行,改一个数字,重新打开看效果,建立改代码的信心</div><div class="list-item issue"><strong>卡点</strong>改了颜色但没有变化<strong>解决方案</strong>提醒学生保存文件后要刷新页面,或者检查 0x 后面的颜色代码格式是否正确</div><div class="list-item issue"><strong>卡点</strong>想加新规则但不知道怎么描述给AI<strong>解决方案</strong>引导学生先说「我想要什么感觉」,再说「具体触发条件是什么」,最后说「结果是什么」,三步描述清楚</div><div class="list-item issue"><strong>卡点</strong>加了功能之后其他部分出错了<strong>解决方案</strong>让学生把错误信息(浏览器控制台)截图或复制给AI,养成看控制台的习惯</div></div></div>
45
- <div class="card"><h2>可拓展方向</h2><div class="list"><div class="list-item">加计时器,挑战最快通关时间</div><div class="list-item">加多层地图,通关后进入更难的迷宫</div><div class="list-item">改成两人模式,一个控制玩家一个控制僵尸</div></div></div>
46
- <div class="card"><h2>课后作业</h2><div class="list"><div class="list-item">回家再加一个让游戏变难或变有趣的规则</div><div class="list-item">给家人介绍你改了什么,让他们试玩并收集反馈</div></div></div>
47
- </div>
48
- <div class="preview-card"><div class="preview-head"><h2>作品预览</h2></div><iframe src="__demo__.html" title="作品预览"></iframe></div>
49
- </section>
50
- </div>
51
- </body>
52
- </html>
@@ -1,45 +0,0 @@
1
- {
2
- "任务类别": "C",
3
- "任务编号": "102",
4
- "任务名称": "逃出迷宫:我来定规则",
5
- "主能力标签": "第四能力:迭代推进",
6
- "任务类型标签": "游戏机制",
7
- "适合学生类型": [
8
- "喜欢游戏、对游戏规则有想法的学生",
9
- "会做基础网页但想挑战互动项目的学生",
10
- "做完容易停手、需要练习「再改一次」的学生"
11
- ],
12
- "训练重点": [
13
- "读懂已有代码结构,找到可改的位置",
14
- "用参数控制游戏体验,理解数值和效果的关系",
15
- "把自己的游戏想法转化成具体的修改方向"
16
- ],
17
- "卡点和解决方案": [
18
- {
19
- "卡点": "不知道从哪里改起,代码太多看不懂",
20
- "解决方案": "引导学生先只看「迷宫配置」那几行,改一个数字,重新打开看效果,建立改代码的信心"
21
- },
22
- {
23
- "卡点": "改了颜色但没有变化",
24
- "解决方案": "提醒学生保存文件后要刷新页面,或者检查 0x 后面的颜色代码格式是否正确"
25
- },
26
- {
27
- "卡点": "想加新规则但不知道怎么描述给AI",
28
- "解决方案": "引导学生先说「我想要什么感觉」,再说「具体触发条件是什么」,最后说「结果是什么」,三步描述清楚"
29
- },
30
- {
31
- "卡点": "加了功能之后其他部分出错了",
32
- "解决方案": "让学生把错误信息(浏览器控制台)截图或复制给AI,养成看控制台的习惯"
33
- }
34
- ],
35
- "可拓展方向": [
36
- "加计时器,挑战最快通关时间",
37
- "加多层地图,通关后进入更难的迷宫",
38
- "改成两人模式,一个控制玩家一个控制僵尸"
39
- ],
40
- "课后作业": [
41
- "回家再加一个让游戏变难或变有趣的规则",
42
- "给家人介绍你改了什么,让他们试玩并收集反馈"
43
- ],
44
- "_id": "cf03758c"
45
- }
@@ -1,150 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="zh-CN">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>逃出迷宫:我来定规则</title>
7
- <style>
8
- * { box-sizing: border-box; }
9
- body {
10
- margin: 0;
11
- padding: 24px;
12
- font-family: monospace;
13
- background: #f6f8fc;
14
- color: #1f2937;
15
- }
16
- .grid {
17
- display: grid;
18
- grid-template-columns: 1fr 1fr;
19
- gap: 20px;
20
- align-items: start;
21
- }
22
- h2 {
23
- margin: 0 0 10px;
24
- font-size: 18px;
25
- }
26
- pre {
27
- margin: 0;
28
- white-space: pre-wrap;
29
- word-break: break-word;
30
- background: #ffffff;
31
- border: 1px solid #dbe3f0;
32
- border-radius: 12px;
33
- padding: 16px;
34
- line-height: 1.7;
35
- }
36
- </style>
37
- </head>
38
- <body>
39
- <!--
40
- [AI 编辑说明]
41
- 这是学生作品的主文件。当你开始编辑时:
42
- 1. 先删除 <body> 内所有现有内容(包括本注释)
43
- 2. 根据参考材料(__demo__.html 等 __XXX__ 文件)重新制作学生作品
44
- __XXX__ 文件只读,不要修改。
45
- -->
46
- <div class="grid">
47
- <section>
48
- <h2>评价目标</h2>
49
- <pre>[
50
- {
51
- &quot;等级&quot;: &quot;一星&quot;,
52
- &quot;说明&quot;: &quot;改了至少一个参数,游戏还能正常运行,能说出改了什么、有什么变化。&quot;
53
- },
54
- {
55
- &quot;等级&quot;: &quot;二星&quot;,
56
- &quot;说明&quot;: &quot;改了参数和视觉,游戏玩起来和原版有明显区别。&quot;
57
- },
58
- {
59
- &quot;等级&quot;: &quot;三星&quot;,
60
- &quot;说明&quot;: &quot;加了一个新规则或机制,游戏有自己的设计想法,能说清楚为什么这样改。&quot;
61
- }
62
- ]</pre>
63
- </section>
64
- <section>
65
- <h2>步骤</h2>
66
- <pre>[
67
- {
68
- &quot;标题&quot;: &quot;玩懂游戏&quot;,
69
- &quot;说明&quot;: &quot;先玩一遍示范:用WASD移动,找到黄色旗帜,躲开僵尸,试试「自由视角」和「身临其境」两种模式。搞清楚:生命怎么扣、僵尸怎么追、怎么才算通关。&quot;
70
- },
71
- {
72
- &quot;标题&quot;: &quot;改一个游戏参数&quot;,
73
- &quot;说明&quot;: &quot;找到代码顶部的「迷宫配置」区域,改一个数字试试效果。比如把迷宫变大、让玩家跑快点、或者让僵尸更慢。改完要确认游戏还能正常运行。&quot;
74
- },
75
- {
76
- &quot;标题&quot;: &quot;改一个视觉元素&quot;,
77
- &quot;说明&quot;: &quot;改颜色或外观,让游戏看起来和原版不一样。比如换墙的颜色、换地面、换玩家颜色,或者给僵尸换个样子。&quot;
78
- },
79
- {
80
- &quot;标题&quot;: &quot;加一个你的规则&quot;,
81
- &quot;说明&quot;: &quot;想一个让游戏更好玩的新规则,让AI帮你实现。比如加第二只僵尸、加计时器、加可以捡的道具,或者改掉你觉得不合理的地方。&quot;
82
- }
83
- ]</pre>
84
- </section>
85
- </div>
86
-
87
- <script type="application/json" id="task-data">
88
- {
89
- "任务标题": "逃出迷宫:我来定规则",
90
- "一句话说明": "先玩懂这个3D迷宫游戏,然后改参数、改外观、加规则,做出一个属于你的版本。",
91
- "步骤": [
92
- {
93
- "标题": "玩懂游戏",
94
- "说明": "先玩一遍示范:用WASD移动,找到黄色旗帜,躲开僵尸,试试「自由视角」和「身临其境」两种模式。搞清楚:生命怎么扣、僵尸怎么追、怎么才算通关。"
95
- },
96
- {
97
- "标题": "改一个游戏参数",
98
- "说明": "找到代码顶部的「迷宫配置」区域,改一个数字试试效果。比如把迷宫变大、让玩家跑快点、或者让僵尸更慢。改完要确认游戏还能正常运行。"
99
- },
100
- {
101
- "标题": "改一个视觉元素",
102
- "说明": "改颜色或外观,让游戏看起来和原版不一样。比如换墙的颜色、换地面、换玩家颜色,或者给僵尸换个样子。"
103
- },
104
- {
105
- "标题": "加一个你的规则",
106
- "说明": "想一个让游戏更好玩的新规则,让AI帮你实现。比如加第二只僵尸、加计时器、加可以捡的道具,或者改掉你觉得不合理的地方。"
107
- }
108
- ],
109
- "评价目标": [
110
- {
111
- "等级": "一星",
112
- "说明": "改了至少一个参数,游戏还能正常运行,能说出改了什么、有什么变化。"
113
- },
114
- {
115
- "等级": "二星",
116
- "说明": "改了参数和视觉,游戏玩起来和原版有明显区别。"
117
- },
118
- {
119
- "等级": "三星",
120
- "说明": "加了一个新规则或机制,游戏有自己的设计想法,能说清楚为什么这样改。"
121
- }
122
- ],
123
- "示例区标题": "游戏示范",
124
- "示例页面文件": "__demo__.html",
125
- "小提示": [
126
- {
127
- "标题": "改参数在哪里",
128
- "说明": "代码开头有一段「迷宫配置」,改 MAZE_SIZE(迷宫大小)、MOVE_SPEED(玩家速度)、WALL_HEIGHT(墙高度)等数字就行。",
129
- "参考提示词": "帮我把迷宫大小改成15,玩家移动速度改快一点"
130
- },
131
- {
132
- "标题": "改颜色怎么改",
133
- "说明": "找到 color: 0x 开头的代码,后面的字母数字就是颜色,可以让AI帮你换成喜欢的颜色。",
134
- "参考提示词": "帮我把迷宫墙壁改成深蓝色,地面改成黑色"
135
- },
136
- {
137
- "标题": "加新规则怎么说",
138
- "说明": "直接描述你想要的效果,让AI帮你加。越具体越好,比如「加一只跑得更快的红色僵尸,从终点出发」。",
139
- "参考提示词": "帮我再加一只僵尸,这只僵尸比原来的快,颜色是绿色"
140
- },
141
- {
142
- "标题": "改坏了怎么办",
143
- "说明": "如果改完游戏出错了,把改动告诉AI,让它帮你找出问题在哪。或者直接让它检查报错信息。",
144
- "参考提示词": "我改了这段代码之后游戏打不开了,帮我看看哪里有问题:[粘贴代码]"
145
- }
146
- ]
147
- }
148
- </script>
149
- </body>
150
- </html>