Spaces:
Running
Running
fix: pure-CSS game UI (no tiled slices) and atlas sprites; witch edition 37 files / 6.85 MB
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- README.md +10 -0
- htlb/miniapp/dist-potato/style.css +26 -11
- htlb/miniapp/dist-witch/style.css +26 -11
- htlb/miniapp/dist-witch/witch-sprites.js +1 -1
- htlb/miniapp/dist-witch/witch.js +36 -20
- htlb/miniapp/dist-witch/witch/badge-c5.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-dead.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-first.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-fit.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-hand.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-lookR.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-m1.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-m2.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-m4.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-m5.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-m7.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-old.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-phyR.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-r10.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-r100.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-r500.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-revive.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-unlock.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-win.webp +0 -3
- htlb/miniapp/dist-witch/witch/badge-young.webp +0 -3
- htlb/miniapp/dist-witch/witch/badges.webp +3 -0
- htlb/miniapp/dist-witch/witch/car-0.webp +0 -3
- htlb/miniapp/dist-witch/witch/car-1.webp +0 -3
- htlb/miniapp/dist-witch/witch/car-2.webp +0 -3
- htlb/miniapp/dist-witch/witch/car-3.webp +0 -3
- htlb/miniapp/dist-witch/witch/car-4.webp +0 -3
- htlb/miniapp/dist-witch/witch/car-5.webp +0 -3
- htlb/miniapp/dist-witch/witch/car-6.webp +0 -3
- htlb/miniapp/dist-witch/witch/car-7.webp +0 -3
- htlb/miniapp/dist-witch/witch/cars.webp +3 -0
- htlb/miniapp/dist-witch/witch/cup-1.webp +0 -3
- htlb/miniapp/dist-witch/witch/cup-2.webp +0 -3
- htlb/miniapp/dist-witch/witch/cup-3.webp +0 -3
- htlb/miniapp/dist-witch/witch/cup-4.webp +0 -3
- htlb/miniapp/dist-witch/witch/cup-5.webp +0 -3
- htlb/miniapp/dist-witch/witch/cup-6.webp +0 -3
- htlb/miniapp/dist-witch/witch/cups.webp +3 -0
- htlb/miniapp/dist-witch/witch/face-a1l1.webp +0 -3
- htlb/miniapp/dist-witch/witch/face-a1l2.webp +0 -3
- htlb/miniapp/dist-witch/witch/face-a1l3.webp +0 -3
- htlb/miniapp/dist-witch/witch/face-a2l1.webp +0 -3
- htlb/miniapp/dist-witch/witch/face-a2l2.webp +0 -3
- htlb/miniapp/dist-witch/witch/face-a2l3.webp +0 -3
- htlb/miniapp/dist-witch/witch/face-a3l1.webp +0 -3
- htlb/miniapp/dist-witch/witch/face-a3l2.webp +0 -3
README.md
CHANGED
|
@@ -17,6 +17,16 @@ pinned: false
|
|
| 17 |
- 生成方法:`python3 htlb/pdf-src/build_pdf.py <原 PDF> <输出 PDF> <封面预览 jpg>`(原排版源文件不在本仓库,因此在原 PDF 上做增量修改:遮盖旧文字后用相同字号、颜色、行距写入新文字)
|
| 18 |
- 小工具「领取 PDF」的笔记位置已预留(`app.js` 中 `PDF_NOTE`,发布笔记后填标题)
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
# 本轮:「女巫的魔药」第 2.2 版(接入素材 6)+ 触感反馈
|
| 21 |
|
| 22 |
- [x] 素材 6(163 个文件)接入,构建顺序 素材4 → 素材5 → 素材6(新的覆盖旧的);停用第 1 版男主角;女巫的魔药版 **7.13 MB**、红薯冒险版 3.85 MB
|
|
|
|
| 17 |
- 生成方法:`python3 htlb/pdf-src/build_pdf.py <原 PDF> <输出 PDF> <封面预览 jpg>`(原排版源文件不在本仓库,因此在原 PDF 上做增量修改:遮盖旧文字后用相同字号、颜色、行距写入新文字)
|
| 18 |
- 小工具「领取 PDF」的笔记位置已预留(`app.js` 中 `PDF_NOTE`,发布笔记后填标题)
|
| 19 |
|
| 20 |
+
# 本轮:「女巫的魔药」第 2.3 版——修复乱码 + 文件数精简到 200 以内
|
| 21 |
+
|
| 22 |
+
- [x] **乱码原因**:对话框、按钮、选项牌用了「切片 + 平铺」的图片,中段素材并不能无缝平铺,拉伸 / 重复后出现错乱的花纹。现改为**纯 CSS 绘制**(羊皮纸渐变 + 金边 + 紫色宝石按钮 + 深紫金边选项牌),不再拉伸或平铺任何图片;只保留不需要拉伸的图片(分割线、托盘、头像框、图标、徽章)
|
| 23 |
+
- [x] **文件数**:小红书上传限制 200 个文件。把同类素材合成一张图(合图),程序按行 / 列切出来用:男主角每个年龄段 2 张(待机 9 行 × 6 帧、动作 15–16 行 × 8 帧)、女巫 1 张、魔药杯 1 张、特效 1 张、座驾 1 张、头像 1 张、头像框 1 张、图标 1 张、徽章 1 张,房子背景 8 张、托盘与分割线各 1 张 → 素材只有 **26 张图**
|
| 24 |
+
- [x] 女巫的魔药版:**37 个文件、6.85 MB**(之前 208 个);红薯冒险版:63 个文件、3.85 MB
|
| 25 |
+
- [x] 包里只有运行需要的文件(index.html、脚本、样式、数据、图片),没有 node_modules、.git、构建中间产物
|
| 26 |
+
- [x] 矮屏手机(360×640)上托盘自动抬到对话框上方
|
| 27 |
+
- [x] 实测:两个版本完整流程、三种屏幕尺寸、0 个 404、0 报错
|
| 28 |
+
- 构建:`python3 htlb/miniapp/witch-src/build_atlas.py htlb/miniapp/tool <素材4> <素材5> <素材6>` 生成合图,再 `python3 htlb/miniapp/build_variants.py` 打两个包
|
| 29 |
+
|
| 30 |
# 本轮:「女巫的魔药」第 2.2 版(接入素材 6)+ 触感反馈
|
| 31 |
|
| 32 |
- [x] 素材 6(163 个文件)接入,构建顺序 素材4 → 素材5 → 素材6(新的覆盖旧的);停用第 1 版男主角;女巫的魔药版 **7.13 MB**、红薯冒险版 3.85 MB
|
htlb/miniapp/dist-potato/style.css
CHANGED
|
@@ -535,8 +535,6 @@ html.game-on img{-webkit-user-drag:none;pointer-events:none}
|
|
| 535 |
.w2-money b{font-size:11px;font-weight:900;color:#FFE58A}
|
| 536 |
.w2-flash{position:absolute;left:0;top:0;right:0;bottom:0;background:#fff;opacity:0;pointer-events:none;z-index:6}
|
| 537 |
.w2-flash.on{-webkit-animation:flashA .4s ease-out;animation:flashA .4s ease-out}
|
| 538 |
-
.w2-dialog{position:absolute;left:8px;right:8px;bottom:calc(env(safe-area-inset-bottom,0px) + 70px);z-index:7;max-height:50%;overflow-y:auto;-webkit-overflow-scrolling:touch;border-style:solid;border-width:22px;border-image:url(./witch/ui-dialog.webp) 64 fill / 22px stretch;color:#2b1d12;padding:6px 6px 4px;min-height:96px}
|
| 539 |
-
.w2-name{display:inline-flex;align-items:center;position:relative;top:-10px;margin:-6px 0 -6px -4px;min-width:96px;height:32px;padding:0 18px;background:url(./witch/ui-name.webp) center/100% 100% no-repeat;font-size:14px;font-weight:900;color:#3a1f52}
|
| 540 |
.w2-name small{font-size:10.5px;font-weight:800;margin-left:6px;opacity:.75}
|
| 541 |
.w2-text{font-size:15.5px;line-height:1.65;font-weight:700;min-height:2.6em}
|
| 542 |
.w2-tap{font-size:12px;color:#7a5a8a;text-align:right;margin-top:4px}
|
|
@@ -555,7 +553,6 @@ html.game-on img{-webkit-user-drag:none;pointer-events:none}
|
|
| 555 |
.w2-timer span i.low{background:linear-gradient(90deg,#E0002A,#FF6B81)}
|
| 556 |
.w2-timer b{font-size:15px;font-weight:900;width:22px;text-align:right}
|
| 557 |
.w2-ic{display:inline-block;width:30px;height:30px;flex-shrink:0;background-size:800% 100%;background-repeat:no-repeat;vertical-align:middle}
|
| 558 |
-
.w2-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;margin-top:8px;background:url(./witch/ui-button.webp) center/100% 100% no-repeat;color:#fff;font-size:16px;font-weight:900;text-shadow:0 1px 2px rgba(0,0,0,.4);transition:transform .12s}
|
| 559 |
.w2-btn:active{-webkit-transform:scale(.96);transform:scale(.96)}
|
| 560 |
.w2-btn.ghost{background:rgba(91,42,134,.12);color:#3a1f52;text-shadow:none;border-radius:14px}
|
| 561 |
.w2-btn.danger .w2-ic{margin-right:6px}
|
|
@@ -570,7 +567,6 @@ html.game-on img{-webkit-user-drag:none;pointer-events:none}
|
|
| 570 |
.w2-tool .w2-ic{width:38px;height:38px}
|
| 571 |
.w2-tool:active{-webkit-transform:scale(.9);transform:scale(.9)}
|
| 572 |
.w2-pop{position:absolute;left:0;top:0;right:0;bottom:0;z-index:20;display:flex;align-items:center;justify-content:center;background:rgba(10,6,16,.6);padding:20px}
|
| 573 |
-
.w2-pop-box{position:relative;width:100%;max-width:360px;max-height:80%;overflow-y:auto;border-style:solid;border-width:22px;border-image:url(./witch/ui-dialog.webp) 64 fill / 22px stretch;color:#2b1d12;padding:4px 6px}
|
| 574 |
.w2-pop-body p{font-size:14px;line-height:1.7;margin-top:6px}
|
| 575 |
.w2-pop-x{position:absolute;right:-8px;top:-10px;width:36px;height:36px;border-radius:18px;background:#5B2A86;color:#fff;font-size:16px;font-weight:900}
|
| 576 |
.w2-share button{display:flex;align-items:center;width:100%;text-align:left;background:rgba(91,42,134,.1);border-radius:12px;padding:8px;margin-top:8px}
|
|
@@ -645,21 +641,14 @@ html.game-on img{-webkit-user-drag:none;pointer-events:none}
|
|
| 645 |
/* 名字:不用框,文字 + 金色分割线 */
|
| 646 |
.w2-name{display:block;position:static;top:auto;margin:0 0 6px;min-width:0;height:auto;padding:0 0 4px;background:none!important;font-size:15px;font-weight:900;color:#4a2a68;letter-spacing:1px;border-bottom:2px solid;border-image:linear-gradient(90deg,#c9a45c,#f3dc9a 40%,rgba(201,164,92,0)) 1}
|
| 647 |
/* 对话框 / 按钮 / 选项:保边切片 + 平铺,文字多时不再拉伸变形 */
|
| 648 |
-
.w2-dialog,.w2-pop-box{border-image:url(./witch/ui-dialog.webp) 64 fill / 22px round}
|
| 649 |
-
.w2-btn{background:none;border-style:solid;border-width:14px 22px;border-image:url(./witch/ui-button.webp) 40 60 fill / 14px 22px round;padding:0;min-height:22px}
|
| 650 |
.w2-btn.ghost{border:0}
|
| 651 |
-
.w2-opt{justify-content:center;text-align:center;background:none!important;border-style:solid;border-width:12px 18px;border-image:url(./witch/ui-option.webp) 36 60 fill / 12px 18px round;padding:2px 2px;min-height:30px}
|
| 652 |
.w2-opt span{flex:1;text-align:center}
|
| 653 |
.w2-opt i{width:30px;height:30px;margin-right:2px}
|
| 654 |
/* ===== 女巫的魔药 第 2.2 版:素材 6(三段式界面、烟雾魔药杯、头像框) ===== */
|
| 655 |
.w2-dialog,.w2-pop-box{border:0!important;border-image:none!important;background:none!important;isolation:isolate;padding:30px 7% 24px}
|
| 656 |
.w2-pop-box{position:relative;z-index:0}
|
| 657 |
-
.w2-dialog::before,.w2-pop-box::before{content:"";position:absolute;left:0;right:0;top:28px;bottom:28px;background:url(./witch/ui-dialog-mid.webp) center top/100% auto repeat-y;z-index:-1;pointer-events:none}
|
| 658 |
-
.w2-dialog::after,.w2-pop-box::after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;background:url(./witch/ui-dialog-top.webp) center top/100% 36px no-repeat,url(./witch/ui-dialog-bottom.webp) center bottom/100% 36px no-repeat;z-index:-1;pointer-events:none}
|
| 659 |
-
.w2-btn{border:0!important;border-image:none!important;padding:0 26px;min-height:50px;background:url(./witch/ui-btn-left.webp) left center/auto 100% no-repeat,url(./witch/ui-btn-right.webp) right center/auto 100% no-repeat,url(./witch/ui-btn-mid.webp) center/auto 100% repeat-x!important;background-clip:border-box,border-box,content-box!important;background-origin:border-box,border-box,content-box!important}
|
| 660 |
.w2-btn.ghost{background:rgba(91,42,134,.12)!important;padding:0 10px}
|
| 661 |
.w2-btn.danger{-webkit-filter:hue-rotate(-60deg) saturate(1.3);filter:hue-rotate(-60deg) saturate(1.3)}
|
| 662 |
-
.w2-opt{border:0!important;border-image:none!important;padding:2px 24px;min-height:52px;color:#fff3c4;text-shadow:0 1px 2px rgba(0,0,0,.45);background:url(./witch/ui-opt-left.webp) left center/auto 100% no-repeat,url(./witch/ui-opt-right.webp) right center/auto 100% no-repeat,url(./witch/ui-opt-mid.webp) center/auto 100% repeat-x!important;background-clip:border-box,border-box,content-box!important;background-origin:border-box,border-box,content-box!important}
|
| 663 |
.w2-opt.is-right{color:#9dffcf}
|
| 664 |
.w2-opt.is-wrong{color:#ffb3b3}
|
| 665 |
.w2-name,.w2-title{border:0!important;border-image:none!important;background:url(./witch/ui-divider.webp) left bottom/100% 12px no-repeat!important;padding-bottom:13px!important}
|
|
@@ -672,3 +661,29 @@ html.game-on img{-webkit-user-drag:none;pointer-events:none}
|
|
| 672 |
.w2-pop-x{background:transparent!important;width:42px;height:42px;right:-6px;top:-8px}
|
| 673 |
.w2-tool .w2-ic.one{width:40px;height:40px}
|
| 674 |
.w2-badge i{width:58px;height:58px}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 535 |
.w2-money b{font-size:11px;font-weight:900;color:#FFE58A}
|
| 536 |
.w2-flash{position:absolute;left:0;top:0;right:0;bottom:0;background:#fff;opacity:0;pointer-events:none;z-index:6}
|
| 537 |
.w2-flash.on{-webkit-animation:flashA .4s ease-out;animation:flashA .4s ease-out}
|
|
|
|
|
|
|
| 538 |
.w2-name small{font-size:10.5px;font-weight:800;margin-left:6px;opacity:.75}
|
| 539 |
.w2-text{font-size:15.5px;line-height:1.65;font-weight:700;min-height:2.6em}
|
| 540 |
.w2-tap{font-size:12px;color:#7a5a8a;text-align:right;margin-top:4px}
|
|
|
|
| 553 |
.w2-timer span i.low{background:linear-gradient(90deg,#E0002A,#FF6B81)}
|
| 554 |
.w2-timer b{font-size:15px;font-weight:900;width:22px;text-align:right}
|
| 555 |
.w2-ic{display:inline-block;width:30px;height:30px;flex-shrink:0;background-size:800% 100%;background-repeat:no-repeat;vertical-align:middle}
|
|
|
|
| 556 |
.w2-btn:active{-webkit-transform:scale(.96);transform:scale(.96)}
|
| 557 |
.w2-btn.ghost{background:rgba(91,42,134,.12);color:#3a1f52;text-shadow:none;border-radius:14px}
|
| 558 |
.w2-btn.danger .w2-ic{margin-right:6px}
|
|
|
|
| 567 |
.w2-tool .w2-ic{width:38px;height:38px}
|
| 568 |
.w2-tool:active{-webkit-transform:scale(.9);transform:scale(.9)}
|
| 569 |
.w2-pop{position:absolute;left:0;top:0;right:0;bottom:0;z-index:20;display:flex;align-items:center;justify-content:center;background:rgba(10,6,16,.6);padding:20px}
|
|
|
|
| 570 |
.w2-pop-body p{font-size:14px;line-height:1.7;margin-top:6px}
|
| 571 |
.w2-pop-x{position:absolute;right:-8px;top:-10px;width:36px;height:36px;border-radius:18px;background:#5B2A86;color:#fff;font-size:16px;font-weight:900}
|
| 572 |
.w2-share button{display:flex;align-items:center;width:100%;text-align:left;background:rgba(91,42,134,.1);border-radius:12px;padding:8px;margin-top:8px}
|
|
|
|
| 641 |
/* 名字:不用框,文字 + 金色分割线 */
|
| 642 |
.w2-name{display:block;position:static;top:auto;margin:0 0 6px;min-width:0;height:auto;padding:0 0 4px;background:none!important;font-size:15px;font-weight:900;color:#4a2a68;letter-spacing:1px;border-bottom:2px solid;border-image:linear-gradient(90deg,#c9a45c,#f3dc9a 40%,rgba(201,164,92,0)) 1}
|
| 643 |
/* 对话框 / 按钮 / 选项:保边切片 + 平铺,文字多时不再拉伸变形 */
|
|
|
|
|
|
|
| 644 |
.w2-btn.ghost{border:0}
|
|
|
|
| 645 |
.w2-opt span{flex:1;text-align:center}
|
| 646 |
.w2-opt i{width:30px;height:30px;margin-right:2px}
|
| 647 |
/* ===== 女巫的魔药 第 2.2 版:素材 6(三段式界面、烟雾魔药杯、头像框) ===== */
|
| 648 |
.w2-dialog,.w2-pop-box{border:0!important;border-image:none!important;background:none!important;isolation:isolate;padding:30px 7% 24px}
|
| 649 |
.w2-pop-box{position:relative;z-index:0}
|
|
|
|
|
|
|
|
|
|
| 650 |
.w2-btn.ghost{background:rgba(91,42,134,.12)!important;padding:0 10px}
|
| 651 |
.w2-btn.danger{-webkit-filter:hue-rotate(-60deg) saturate(1.3);filter:hue-rotate(-60deg) saturate(1.3)}
|
|
|
|
| 652 |
.w2-opt.is-right{color:#9dffcf}
|
| 653 |
.w2-opt.is-wrong{color:#ffb3b3}
|
| 654 |
.w2-name,.w2-title{border:0!important;border-image:none!important;background:url(./witch/ui-divider.webp) left bottom/100% 12px no-repeat!important;padding-bottom:13px!important}
|
|
|
|
| 661 |
.w2-pop-x{background:transparent!important;width:42px;height:42px;right:-6px;top:-8px}
|
| 662 |
.w2-tool .w2-ic.one{width:40px;height:40px}
|
| 663 |
.w2-badge i{width:58px;height:58px}
|
| 664 |
+
/* ===== 女巫的魔药 第 2.3 版:界面框改为纯 CSS 绘制(不再拉伸 / 平铺图片,避免接缝乱码);素材改为合图 ===== */
|
| 665 |
+
.w2-dialog,.w2-pop-box{background:linear-gradient(180deg,#fbf4e2 0%,#f3e5c4 100%)!important;border:3px solid #c9a45c!important;border-radius:18px;box-shadow:inset 0 0 0 2px #fff8e6,inset 0 0 0 5px rgba(123,63,176,.55),0 10px 26px rgba(0,0,0,.5);padding:16px 16px 12px;isolation:auto}
|
| 666 |
+
.w2-dialog::before,.w2-pop-box::before{content:none!important}
|
| 667 |
+
.w2-dialog::after,.w2-pop-box::after{content:""!important;position:absolute;left:50%;top:-10px;width:16px;height:16px;margin-left:-8px;background:linear-gradient(135deg,#c79bf0,#6b2fa3)!important;border:2px solid #e7c36f;-webkit-transform:rotate(45deg);transform:rotate(45deg);z-index:1}
|
| 668 |
+
.w2-pop-box{position:relative}
|
| 669 |
+
.w2-dialog{overflow-y:auto}
|
| 670 |
+
.w2-btn{background:linear-gradient(180deg,#a56ad9 0%,#6d34a3 55%,#57288a 100%)!important;background-clip:border-box!important;background-origin:padding-box!important;border:2px solid #e7c36f!important;border-radius:14px;box-shadow:inset 0 2px 0 rgba(255,255,255,.35),inset 0 -3px 0 rgba(0,0,0,.18),0 4px 0 #3b1a5c,0 7px 14px rgba(0,0,0,.35);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.45);padding:0 16px;min-height:48px;margin-top:10px}
|
| 671 |
+
.w2-btn:active{box-shadow:inset 0 2px 0 rgba(255,255,255,.3),0 1px 0 #3b1a5c;-webkit-transform:translateY(3px);transform:translateY(3px)}
|
| 672 |
+
.w2-btn.ghost{background:rgba(123,63,176,.1)!important;border:1.5px solid rgba(123,63,176,.4)!important;box-shadow:none;color:#4a2a68;text-shadow:none}
|
| 673 |
+
.w2-btn.danger{-webkit-filter:none;filter:none;background:linear-gradient(180deg,#e2566e,#a8203a)!important;box-shadow:inset 0 2px 0 rgba(255,255,255,.3),0 4px 0 #6d1324,0 7px 14px rgba(0,0,0,.35)}
|
| 674 |
+
.w2-opt{background:linear-gradient(180deg,#53307a 0%,#2f1849 100%)!important;background-clip:border-box!important;background-origin:padding-box!important;border:2px solid #c9a45c!important;border-radius:12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 3px 0 #1d0f2e;color:#fff3c4;padding:6px 10px;min-height:52px}
|
| 675 |
+
.w2-opt:active{-webkit-transform:translateY(2px);transform:translateY(2px)}
|
| 676 |
+
.w2-opt.is-right{border-color:#45d483!important;box-shadow:0 0 0 2px #45d483,0 0 14px rgba(69,212,131,.6);-webkit-filter:none;filter:none}
|
| 677 |
+
.w2-opt.is-wrong{border-color:#ff5a5a!important;box-shadow:0 0 0 2px #ff5a5a,0 0 14px rgba(255,90,90,.6);-webkit-filter:none;filter:none}
|
| 678 |
+
.w2-name,.w2-title{background:url(./witch/ui-divider.webp) left bottom/100% 10px no-repeat!important}
|
| 679 |
+
.w2-cup i.smoke,.wt-fly.smoke{-webkit-animation:cupSmokeX 1.2s steps(6) infinite!important;animation:cupSmokeX 1.2s steps(6) infinite!important}
|
| 680 |
+
@-webkit-keyframes cupSmokeX{from{background-position-x:0%}to{background-position-x:120%}}
|
| 681 |
+
@keyframes cupSmokeX{from{background-position-x:0%}to{background-position-x:120%}}
|
| 682 |
+
.hub-card .hub-face.round{border-radius:50%;width:84px;height:84px;margin:0 10px 0 4px;box-shadow:0 0 0 3px rgba(255,255,255,.85);background-color:#f3d7c0}
|
| 683 |
+
.w2-pcar{height:0;padding-bottom:34.6%;bottom:6%}
|
| 684 |
+
.w2-badge i{background-color:transparent}
|
| 685 |
+
/* 布局(与外观分开,外观见 2.3 版纯 CSS 规则) */
|
| 686 |
+
.w2-dialog{position:absolute;left:8px;right:8px;bottom:calc(env(safe-area-inset-bottom,0px) + 70px);z-index:7;max-height:50%;overflow-y:auto;-webkit-overflow-scrolling:touch;color:#2b1d12;min-height:96px}
|
| 687 |
+
.w2-pop-box{position:relative;width:100%;max-width:360px;max-height:80%;overflow-y:auto;color:#2b1d12}
|
| 688 |
+
.w2-btn{display:flex;align-items:center;justify-content:center;width:100%;font-size:16px;font-weight:900;transition:transform .12s}
|
| 689 |
+
.w2-opt{display:flex;align-items:center;justify-content:center;text-align:center;font-size:14px;font-weight:900;line-height:1.35;transition:transform .12s}
|
htlb/miniapp/dist-witch/style.css
CHANGED
|
@@ -535,8 +535,6 @@ html.game-on img{-webkit-user-drag:none;pointer-events:none}
|
|
| 535 |
.w2-money b{font-size:11px;font-weight:900;color:#FFE58A}
|
| 536 |
.w2-flash{position:absolute;left:0;top:0;right:0;bottom:0;background:#fff;opacity:0;pointer-events:none;z-index:6}
|
| 537 |
.w2-flash.on{-webkit-animation:flashA .4s ease-out;animation:flashA .4s ease-out}
|
| 538 |
-
.w2-dialog{position:absolute;left:8px;right:8px;bottom:calc(env(safe-area-inset-bottom,0px) + 70px);z-index:7;max-height:50%;overflow-y:auto;-webkit-overflow-scrolling:touch;border-style:solid;border-width:22px;border-image:url(./witch/ui-dialog.webp) 64 fill / 22px stretch;color:#2b1d12;padding:6px 6px 4px;min-height:96px}
|
| 539 |
-
.w2-name{display:inline-flex;align-items:center;position:relative;top:-10px;margin:-6px 0 -6px -4px;min-width:96px;height:32px;padding:0 18px;background:url(./witch/ui-name.webp) center/100% 100% no-repeat;font-size:14px;font-weight:900;color:#3a1f52}
|
| 540 |
.w2-name small{font-size:10.5px;font-weight:800;margin-left:6px;opacity:.75}
|
| 541 |
.w2-text{font-size:15.5px;line-height:1.65;font-weight:700;min-height:2.6em}
|
| 542 |
.w2-tap{font-size:12px;color:#7a5a8a;text-align:right;margin-top:4px}
|
|
@@ -555,7 +553,6 @@ html.game-on img{-webkit-user-drag:none;pointer-events:none}
|
|
| 555 |
.w2-timer span i.low{background:linear-gradient(90deg,#E0002A,#FF6B81)}
|
| 556 |
.w2-timer b{font-size:15px;font-weight:900;width:22px;text-align:right}
|
| 557 |
.w2-ic{display:inline-block;width:30px;height:30px;flex-shrink:0;background-size:800% 100%;background-repeat:no-repeat;vertical-align:middle}
|
| 558 |
-
.w2-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;margin-top:8px;background:url(./witch/ui-button.webp) center/100% 100% no-repeat;color:#fff;font-size:16px;font-weight:900;text-shadow:0 1px 2px rgba(0,0,0,.4);transition:transform .12s}
|
| 559 |
.w2-btn:active{-webkit-transform:scale(.96);transform:scale(.96)}
|
| 560 |
.w2-btn.ghost{background:rgba(91,42,134,.12);color:#3a1f52;text-shadow:none;border-radius:14px}
|
| 561 |
.w2-btn.danger .w2-ic{margin-right:6px}
|
|
@@ -570,7 +567,6 @@ html.game-on img{-webkit-user-drag:none;pointer-events:none}
|
|
| 570 |
.w2-tool .w2-ic{width:38px;height:38px}
|
| 571 |
.w2-tool:active{-webkit-transform:scale(.9);transform:scale(.9)}
|
| 572 |
.w2-pop{position:absolute;left:0;top:0;right:0;bottom:0;z-index:20;display:flex;align-items:center;justify-content:center;background:rgba(10,6,16,.6);padding:20px}
|
| 573 |
-
.w2-pop-box{position:relative;width:100%;max-width:360px;max-height:80%;overflow-y:auto;border-style:solid;border-width:22px;border-image:url(./witch/ui-dialog.webp) 64 fill / 22px stretch;color:#2b1d12;padding:4px 6px}
|
| 574 |
.w2-pop-body p{font-size:14px;line-height:1.7;margin-top:6px}
|
| 575 |
.w2-pop-x{position:absolute;right:-8px;top:-10px;width:36px;height:36px;border-radius:18px;background:#5B2A86;color:#fff;font-size:16px;font-weight:900}
|
| 576 |
.w2-share button{display:flex;align-items:center;width:100%;text-align:left;background:rgba(91,42,134,.1);border-radius:12px;padding:8px;margin-top:8px}
|
|
@@ -645,21 +641,14 @@ html.game-on img{-webkit-user-drag:none;pointer-events:none}
|
|
| 645 |
/* 名字:不用框,文字 + 金色分割线 */
|
| 646 |
.w2-name{display:block;position:static;top:auto;margin:0 0 6px;min-width:0;height:auto;padding:0 0 4px;background:none!important;font-size:15px;font-weight:900;color:#4a2a68;letter-spacing:1px;border-bottom:2px solid;border-image:linear-gradient(90deg,#c9a45c,#f3dc9a 40%,rgba(201,164,92,0)) 1}
|
| 647 |
/* 对话框 / 按钮 / 选项:保边切片 + 平铺,文字多时不再拉伸变形 */
|
| 648 |
-
.w2-dialog,.w2-pop-box{border-image:url(./witch/ui-dialog.webp) 64 fill / 22px round}
|
| 649 |
-
.w2-btn{background:none;border-style:solid;border-width:14px 22px;border-image:url(./witch/ui-button.webp) 40 60 fill / 14px 22px round;padding:0;min-height:22px}
|
| 650 |
.w2-btn.ghost{border:0}
|
| 651 |
-
.w2-opt{justify-content:center;text-align:center;background:none!important;border-style:solid;border-width:12px 18px;border-image:url(./witch/ui-option.webp) 36 60 fill / 12px 18px round;padding:2px 2px;min-height:30px}
|
| 652 |
.w2-opt span{flex:1;text-align:center}
|
| 653 |
.w2-opt i{width:30px;height:30px;margin-right:2px}
|
| 654 |
/* ===== 女巫的魔药 第 2.2 版:素材 6(三段式界面、烟雾魔药杯、头像框) ===== */
|
| 655 |
.w2-dialog,.w2-pop-box{border:0!important;border-image:none!important;background:none!important;isolation:isolate;padding:30px 7% 24px}
|
| 656 |
.w2-pop-box{position:relative;z-index:0}
|
| 657 |
-
.w2-dialog::before,.w2-pop-box::before{content:"";position:absolute;left:0;right:0;top:28px;bottom:28px;background:url(./witch/ui-dialog-mid.webp) center top/100% auto repeat-y;z-index:-1;pointer-events:none}
|
| 658 |
-
.w2-dialog::after,.w2-pop-box::after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;background:url(./witch/ui-dialog-top.webp) center top/100% 36px no-repeat,url(./witch/ui-dialog-bottom.webp) center bottom/100% 36px no-repeat;z-index:-1;pointer-events:none}
|
| 659 |
-
.w2-btn{border:0!important;border-image:none!important;padding:0 26px;min-height:50px;background:url(./witch/ui-btn-left.webp) left center/auto 100% no-repeat,url(./witch/ui-btn-right.webp) right center/auto 100% no-repeat,url(./witch/ui-btn-mid.webp) center/auto 100% repeat-x!important;background-clip:border-box,border-box,content-box!important;background-origin:border-box,border-box,content-box!important}
|
| 660 |
.w2-btn.ghost{background:rgba(91,42,134,.12)!important;padding:0 10px}
|
| 661 |
.w2-btn.danger{-webkit-filter:hue-rotate(-60deg) saturate(1.3);filter:hue-rotate(-60deg) saturate(1.3)}
|
| 662 |
-
.w2-opt{border:0!important;border-image:none!important;padding:2px 24px;min-height:52px;color:#fff3c4;text-shadow:0 1px 2px rgba(0,0,0,.45);background:url(./witch/ui-opt-left.webp) left center/auto 100% no-repeat,url(./witch/ui-opt-right.webp) right center/auto 100% no-repeat,url(./witch/ui-opt-mid.webp) center/auto 100% repeat-x!important;background-clip:border-box,border-box,content-box!important;background-origin:border-box,border-box,content-box!important}
|
| 663 |
.w2-opt.is-right{color:#9dffcf}
|
| 664 |
.w2-opt.is-wrong{color:#ffb3b3}
|
| 665 |
.w2-name,.w2-title{border:0!important;border-image:none!important;background:url(./witch/ui-divider.webp) left bottom/100% 12px no-repeat!important;padding-bottom:13px!important}
|
|
@@ -672,3 +661,29 @@ html.game-on img{-webkit-user-drag:none;pointer-events:none}
|
|
| 672 |
.w2-pop-x{background:transparent!important;width:42px;height:42px;right:-6px;top:-8px}
|
| 673 |
.w2-tool .w2-ic.one{width:40px;height:40px}
|
| 674 |
.w2-badge i{width:58px;height:58px}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 535 |
.w2-money b{font-size:11px;font-weight:900;color:#FFE58A}
|
| 536 |
.w2-flash{position:absolute;left:0;top:0;right:0;bottom:0;background:#fff;opacity:0;pointer-events:none;z-index:6}
|
| 537 |
.w2-flash.on{-webkit-animation:flashA .4s ease-out;animation:flashA .4s ease-out}
|
|
|
|
|
|
|
| 538 |
.w2-name small{font-size:10.5px;font-weight:800;margin-left:6px;opacity:.75}
|
| 539 |
.w2-text{font-size:15.5px;line-height:1.65;font-weight:700;min-height:2.6em}
|
| 540 |
.w2-tap{font-size:12px;color:#7a5a8a;text-align:right;margin-top:4px}
|
|
|
|
| 553 |
.w2-timer span i.low{background:linear-gradient(90deg,#E0002A,#FF6B81)}
|
| 554 |
.w2-timer b{font-size:15px;font-weight:900;width:22px;text-align:right}
|
| 555 |
.w2-ic{display:inline-block;width:30px;height:30px;flex-shrink:0;background-size:800% 100%;background-repeat:no-repeat;vertical-align:middle}
|
|
|
|
| 556 |
.w2-btn:active{-webkit-transform:scale(.96);transform:scale(.96)}
|
| 557 |
.w2-btn.ghost{background:rgba(91,42,134,.12);color:#3a1f52;text-shadow:none;border-radius:14px}
|
| 558 |
.w2-btn.danger .w2-ic{margin-right:6px}
|
|
|
|
| 567 |
.w2-tool .w2-ic{width:38px;height:38px}
|
| 568 |
.w2-tool:active{-webkit-transform:scale(.9);transform:scale(.9)}
|
| 569 |
.w2-pop{position:absolute;left:0;top:0;right:0;bottom:0;z-index:20;display:flex;align-items:center;justify-content:center;background:rgba(10,6,16,.6);padding:20px}
|
|
|
|
| 570 |
.w2-pop-body p{font-size:14px;line-height:1.7;margin-top:6px}
|
| 571 |
.w2-pop-x{position:absolute;right:-8px;top:-10px;width:36px;height:36px;border-radius:18px;background:#5B2A86;color:#fff;font-size:16px;font-weight:900}
|
| 572 |
.w2-share button{display:flex;align-items:center;width:100%;text-align:left;background:rgba(91,42,134,.1);border-radius:12px;padding:8px;margin-top:8px}
|
|
|
|
| 641 |
/* 名字:不用框,文字 + 金色分割线 */
|
| 642 |
.w2-name{display:block;position:static;top:auto;margin:0 0 6px;min-width:0;height:auto;padding:0 0 4px;background:none!important;font-size:15px;font-weight:900;color:#4a2a68;letter-spacing:1px;border-bottom:2px solid;border-image:linear-gradient(90deg,#c9a45c,#f3dc9a 40%,rgba(201,164,92,0)) 1}
|
| 643 |
/* 对话框 / 按钮 / 选项:保边切片 + 平铺,文字多时不再拉伸变形 */
|
|
|
|
|
|
|
| 644 |
.w2-btn.ghost{border:0}
|
|
|
|
| 645 |
.w2-opt span{flex:1;text-align:center}
|
| 646 |
.w2-opt i{width:30px;height:30px;margin-right:2px}
|
| 647 |
/* ===== 女巫的魔药 第 2.2 版:素材 6(三段式界面、烟雾魔药杯、头像框) ===== */
|
| 648 |
.w2-dialog,.w2-pop-box{border:0!important;border-image:none!important;background:none!important;isolation:isolate;padding:30px 7% 24px}
|
| 649 |
.w2-pop-box{position:relative;z-index:0}
|
|
|
|
|
|
|
|
|
|
| 650 |
.w2-btn.ghost{background:rgba(91,42,134,.12)!important;padding:0 10px}
|
| 651 |
.w2-btn.danger{-webkit-filter:hue-rotate(-60deg) saturate(1.3);filter:hue-rotate(-60deg) saturate(1.3)}
|
|
|
|
| 652 |
.w2-opt.is-right{color:#9dffcf}
|
| 653 |
.w2-opt.is-wrong{color:#ffb3b3}
|
| 654 |
.w2-name,.w2-title{border:0!important;border-image:none!important;background:url(./witch/ui-divider.webp) left bottom/100% 12px no-repeat!important;padding-bottom:13px!important}
|
|
|
|
| 661 |
.w2-pop-x{background:transparent!important;width:42px;height:42px;right:-6px;top:-8px}
|
| 662 |
.w2-tool .w2-ic.one{width:40px;height:40px}
|
| 663 |
.w2-badge i{width:58px;height:58px}
|
| 664 |
+
/* ===== 女巫的魔药 第 2.3 版:界面框改为纯 CSS 绘制(不再拉伸 / 平铺图片,避免接缝乱码);素材改为合图 ===== */
|
| 665 |
+
.w2-dialog,.w2-pop-box{background:linear-gradient(180deg,#fbf4e2 0%,#f3e5c4 100%)!important;border:3px solid #c9a45c!important;border-radius:18px;box-shadow:inset 0 0 0 2px #fff8e6,inset 0 0 0 5px rgba(123,63,176,.55),0 10px 26px rgba(0,0,0,.5);padding:16px 16px 12px;isolation:auto}
|
| 666 |
+
.w2-dialog::before,.w2-pop-box::before{content:none!important}
|
| 667 |
+
.w2-dialog::after,.w2-pop-box::after{content:""!important;position:absolute;left:50%;top:-10px;width:16px;height:16px;margin-left:-8px;background:linear-gradient(135deg,#c79bf0,#6b2fa3)!important;border:2px solid #e7c36f;-webkit-transform:rotate(45deg);transform:rotate(45deg);z-index:1}
|
| 668 |
+
.w2-pop-box{position:relative}
|
| 669 |
+
.w2-dialog{overflow-y:auto}
|
| 670 |
+
.w2-btn{background:linear-gradient(180deg,#a56ad9 0%,#6d34a3 55%,#57288a 100%)!important;background-clip:border-box!important;background-origin:padding-box!important;border:2px solid #e7c36f!important;border-radius:14px;box-shadow:inset 0 2px 0 rgba(255,255,255,.35),inset 0 -3px 0 rgba(0,0,0,.18),0 4px 0 #3b1a5c,0 7px 14px rgba(0,0,0,.35);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.45);padding:0 16px;min-height:48px;margin-top:10px}
|
| 671 |
+
.w2-btn:active{box-shadow:inset 0 2px 0 rgba(255,255,255,.3),0 1px 0 #3b1a5c;-webkit-transform:translateY(3px);transform:translateY(3px)}
|
| 672 |
+
.w2-btn.ghost{background:rgba(123,63,176,.1)!important;border:1.5px solid rgba(123,63,176,.4)!important;box-shadow:none;color:#4a2a68;text-shadow:none}
|
| 673 |
+
.w2-btn.danger{-webkit-filter:none;filter:none;background:linear-gradient(180deg,#e2566e,#a8203a)!important;box-shadow:inset 0 2px 0 rgba(255,255,255,.3),0 4px 0 #6d1324,0 7px 14px rgba(0,0,0,.35)}
|
| 674 |
+
.w2-opt{background:linear-gradient(180deg,#53307a 0%,#2f1849 100%)!important;background-clip:border-box!important;background-origin:padding-box!important;border:2px solid #c9a45c!important;border-radius:12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 3px 0 #1d0f2e;color:#fff3c4;padding:6px 10px;min-height:52px}
|
| 675 |
+
.w2-opt:active{-webkit-transform:translateY(2px);transform:translateY(2px)}
|
| 676 |
+
.w2-opt.is-right{border-color:#45d483!important;box-shadow:0 0 0 2px #45d483,0 0 14px rgba(69,212,131,.6);-webkit-filter:none;filter:none}
|
| 677 |
+
.w2-opt.is-wrong{border-color:#ff5a5a!important;box-shadow:0 0 0 2px #ff5a5a,0 0 14px rgba(255,90,90,.6);-webkit-filter:none;filter:none}
|
| 678 |
+
.w2-name,.w2-title{background:url(./witch/ui-divider.webp) left bottom/100% 10px no-repeat!important}
|
| 679 |
+
.w2-cup i.smoke,.wt-fly.smoke{-webkit-animation:cupSmokeX 1.2s steps(6) infinite!important;animation:cupSmokeX 1.2s steps(6) infinite!important}
|
| 680 |
+
@-webkit-keyframes cupSmokeX{from{background-position-x:0%}to{background-position-x:120%}}
|
| 681 |
+
@keyframes cupSmokeX{from{background-position-x:0%}to{background-position-x:120%}}
|
| 682 |
+
.hub-card .hub-face.round{border-radius:50%;width:84px;height:84px;margin:0 10px 0 4px;box-shadow:0 0 0 3px rgba(255,255,255,.85);background-color:#f3d7c0}
|
| 683 |
+
.w2-pcar{height:0;padding-bottom:34.6%;bottom:6%}
|
| 684 |
+
.w2-badge i{background-color:transparent}
|
| 685 |
+
/* 布局(与外观分开,外观见 2.3 版纯 CSS 规则) */
|
| 686 |
+
.w2-dialog{position:absolute;left:8px;right:8px;bottom:calc(env(safe-area-inset-bottom,0px) + 70px);z-index:7;max-height:50%;overflow-y:auto;-webkit-overflow-scrolling:touch;color:#2b1d12;min-height:96px}
|
| 687 |
+
.w2-pop-box{position:relative;width:100%;max-width:360px;max-height:80%;overflow-y:auto;color:#2b1d12}
|
| 688 |
+
.w2-btn{display:flex;align-items:center;justify-content:center;width:100%;font-size:16px;font-weight:900;transition:transform .12s}
|
| 689 |
+
.w2-opt{display:flex;align-items:center;justify-content:center;text-align:center;font-size:14px;font-weight:900;line-height:1.35;transition:transform .12s}
|
htlb/miniapp/dist-witch/witch-sprites.js
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
window.__WITCH_SPR__={"badge-ageR":{"w":128,"h":128,"box":[7,8,120,120]},"badge-bill":{"w":128,"h":128,"box":[12,6,120,121]},"badge-c10":{"w":128,"h":128,"box":[5,6,121,119]},"badge-c20":{"w":128,"h":128,"box":[18,6,111,118]},"badge-c5":{"w":128,"h":128,"box":[16,6,117,121]},"badge-dead":{"w":128,"h":128,"box":[13,6,111,121]},"badge-first":{"w":128,"h":128,"box":[15,6,113,117]},"badge-fit":{"w":128,"h":128,"box":[8,6,115,117]},"badge-hand":{"w":128,"h":128,"box":[7,7,122,118]},"badge-lookR":{"w":128,"h":128,"box":[6,6,122,120]},"badge-m1":{"w":128,"h":128,"box":[11,6,110,118]},"badge-m2":{"w":128,"h":128,"box":[8,5,112,122]},"badge-m4":{"w":128,"h":128,"box":[11,6,114,117]},"badge-m5":{"w":128,"h":128,"box":[12,9,117,116]},"badge-m7":{"w":128,"h":128,"box":[12,6,111,121]},"badge-old":{"w":128,"h":128,"box":[7,6,121,115]},"badge-phyR":{"w":128,"h":128,"box":[10,7,117,116]},"badge-r10":{"w":128,"h":128,"box":[9,6,112,121]},"badge-r100":{"w":128,"h":128,"box":[10,6,121,121]},"badge-r500":{"w":128,"h":128,"box":[13,6,115,118]},"badge-revive":{"w":128,"h":128,"box":[14,6,115,118]},"badge-unlock":{"w":128,"h":128,"box":[8,7,119,119]},"badge-win":{"w":128,"h":128,"box":[7,6,114,117]},"badge-young":{"w":128,"h":128,"box":[8,6,119,111]},"car-0":{"w":768,"h":512,"box":[127,14,641,488]},"car-1":{"w":768,"h":512,"box":[148,17,644,490]},"car-2":{"w":768,"h":512,"box":[20,72,754,458]},"car-3":{"w":768,"h":512,"box":[24,79,753,458]},"car-4":{"w":768,"h":512,"box":[24,56,748,445]},"car-5":{"w":768,"h":512,"box":[25,65,752,421]},"car-6":{"w":768,"h":512,"box":[18,201,750,432]},"car-7":{"w":768,"h":512,"box":[22,13,744,477]},"cup-1":{"n":6,"f":1,"boxes":[[77,80,167,242],[79,66,169,241],[82,49,173,241],[81,16,177,241],[81,48,171,242],[83,83,174,242]]},"cup-2":{"n":6,"f":1,"boxes":[[77,71,177,243],[77,58,178,244],[77,37,178,243],[74,14,177,244],[77,40,178,243],[77,74,178,243]]},"cup-3":{"n":6,"f":1,"boxes":[[78,82,177,241],[78,63,177,241],[78,43,177,241],[78,17,183,243],[79,38,177,230],[82,87,180,243]]},"cup-4":{"n":6,"f":1,"boxes":[[77,76,170,244],[80,61,174,243],[81,40,174,243],[82,13,183,243],[81,38,174,238],[82,76,175,243]]},"cup-5":{"n":6,"f":1,"boxes":[[81,76,174,243],[81,63,174,243],[81,45,173,244],[76,14,176,243],[81,45,173,243],[81,78,174,243]]},"cup-6":{"n":6,"f":1,"boxes":[[77,73,178,244],[77,59,178,243],[76,39,178,243],[74,12,179,243],[76,43,178,244],[77,74,178,243]]},"face-a1l1":{"w":160,"h":160,"box":[21,2,143,158]},"face-a1l2":{"w":160,"h":160,"box":[16,0,143,159]},"face-a1l3":{"w":160,"h":160,"box":[9,1,141,159]},"face-a2l1":{"w":160,"h":160,"box":[18,2,147,157]},"face-a2l2":{"w":160,"h":160,"box":[21,3,137,159]},"face-a2l3":{"w":160,"h":160,"box":[2,1,156,159]},"face-a3l1":{"w":160,"h":160,"box":[19,2,144,158]},"face-a3l2":{"w":160,"h":160,"box":[5,2,154,158]},"face-a3l3":{"w":160,"h":160,"box":[9,1,148,158]},"face-a4l1":{"w":160,"h":160,"box":[20,1,141,157]},"face-a4l2":{"w":160,"h":160,"box":[19,3,143,156]},"face-a4l3":{"w":160,"h":160,"box":[7,1,155,159]},"fx-bad":{"n":6,"f":1,"boxes":[[80,120,175,240],[66,66,188,239],[57,26,198,243],[56,12,198,245],[54,10,200,243],[77,44,178,242]]},"fx-change":{"n":6,"f":1,"boxes":[[71,96,182,229],[63,67,191,232],[60,11,195,236],[54,22,202,241],[47,31,209,241],[64,56,190,236]]},"fx-good":{"n":6,"f":1,"boxes":[[81,88,173,179],[61,61,194,204],[36,30,219,222],[11,11,244,244],[54,46,202,207],[75,76,179,194]]},"house-0":{"w":720,"h":1280},"house-1":{"w":720,"h":1280},"house-2":{"w":720,"h":1280},"house-3":{"w":720,"h":1280},"house-4":{"w":720,"h":1280},"house-5":{"w":720,"h":1280},"house-6":{"w":720,"h":1280},"house-7":{"w":720,"h":1280},"icon-ach":{"w":96,"h":96,"box":[6,9,88,84]},"icon-age":{"w":96,"h":96,"box":[21,8,74,87]},"icon-body":{"w":96,"h":96,"box":[9,7,87,84]},"icon-book":{"w":96,"h":96,"box":[6,12,89,82]},"icon-car":{"w":96,"h":96,"box":[7,14,89,77]},"icon-exit":{"w":96,"h":96,"box":[15,9,81,85]},"icon-house":{"w":96,"h":96,"box":[9,8,88,87]},"icon-look":{"w":96,"h":96,"box":[21,8,81,87]},"icon-set":{"w":96,"h":96,"box":[8,6,88,85]},"icon-share":{"w":96,"h":96,"box":[11,9,87,84]},"icon-wealth":{"w":96,"h":96,"box":[9,10,88,83]},"man-a1p1-bad":{"n":6,"h":180,"b":231},"man-a1p1-drink":{"n":8,"h":166,"b":235},"man-a1p1-good":{"n":6,"h":184,"b":240},"man-a1p1-idle2":{"n":6,"h":180,"b":231},"man-a1p1-idle3":{"n":6,"h":191,"b":242},"man-a1p1l1-idle":{"n":6,"h":212,"b":241},"man-a1p1l2-idle":{"n":6,"h":194,"b":244},"man-a1p1l3-idle":{"n":6,"h":195,"b":243},"man-a1p2-bad":{"n":6,"h":189,"b":234},"man-a1p2-drink":{"n":8,"h":172,"b":236},"man-a1p2-good":{"n":6,"h":170,"b":226},"man-a1p2-idle2":{"n":6,"h":215,"b":243},"man-a1p2-idle3":{"n":6,"h":193,"b":234},"man-a1p2l1-idle":{"n":6,"h":180,"b":227},"man-a1p2l2-idle":{"n":6,"h":183,"b":234},"man-a1p2l3-idle":{"n":6,"h":195,"b":239},"man-a1p3-bad":{"n":6,"h":188,"b":240},"man-a1p3-drink":{"n":8,"h":168,"b":243},"man-a1p3-good":{"n":6,"h":192,"b":236},"man-a1p3-idle2":{"n":6,"h":195,"b":242},"man-a1p3-idle3":{"n":6,"h":206,"b":243},"man-a1p3l1-idle":{"n":6,"h":202,"b":244},"man-a1p3l2-idle":{"n":6,"h":198,"b":242},"man-a1p3l3-idle":{"n":6,"h":184,"b":244},"man-a2p1-bad":{"n":6,"h":180,"b":236},"man-a2p1-drink":{"n":8,"h":173,"b":236},"man-a2p1-good":{"n":6,"h":204,"b":233},"man-a2p1-idle2":{"n":6,"h":197,"b":242},"man-a2p1-idle3":{"n":6,"h":188,"b":242},"man-a2p1l1-idle":{"n":6,"h":186,"b":243},"man-a2p1l2-idle":{"n":6,"h":205,"b":242},"man-a2p1l3-idle":{"n":6,"h":187,"b":237},"man-a2p2-bad":{"n":6,"h":208,"b":244},"man-a2p2-drink":{"n":8,"h":193,"b":242},"man-a2p2-good":{"n":6,"h":193,"b":234},"man-a2p2-idle2":{"n":6,"h":203,"b":244},"man-a2p2-idle3":{"n":6,"h":180,"b":234},"man-a2p2l1-idle":{"n":6,"h":189,"b":244},"man-a2p2l2-idle":{"n":6,"h":178,"b":231},"man-a2p2l3-idle":{"n":6,"h":182,"b":226},"man-a2p3-bad":{"n":6,"h":188,"b":244},"man-a2p3-drink":{"n":8,"h":168,"b":229},"man-a2p3-good":{"n":6,"h":213,"b":242},"man-a2p3-idle2":{"n":6,"h":196,"b":243},"man-a2p3-idle3":{"n":6,"h":194,"b":234},"man-a2p3l1-idle":{"n":6,"h":202,"b":244},"man-a2p3l2-idle":{"n":6,"h":181,"b":235},"man-a2p3l3-idle":{"n":6,"h":200,"b":241},"man-a3p1-bad":{"n":6,"h":174,"b":223},"man-a3p1-drink":{"n":8,"h":176,"b":242},"man-a3p1-good":{"n":6,"h":194,"b":243},"man-a3p1-idle2":{"n":6,"h":189,"b":242},"man-a3p1-idle3":{"n":6,"h":197,"b":233},"man-a3p1l1-idle":{"n":6,"h":194,"b":244},"man-a3p1l2-idle":{"n":6,"h":198,"b":243},"man-a3p1l3-idle":{"n":6,"h":190,"b":233},"man-a3p2-bad":{"n":6,"h":184,"b":242},"man-a3p2-drink":{"n":8,"h":178,"b":242},"man-a3p2-good":{"n":6,"h":201,"b":241},"man-a3p2-idle2":{"n":6,"h":193,"b":244},"man-a3p2-idle3":{"n":6,"h":195,"b":242},"man-a3p2l1-idle":{"n":6,"h":187,"b":240},"man-a3p2l2-idle":{"n":6,"h":204,"b":242},"man-a3p2l3-idle":{"n":6,"h":180,"b":235},"man-a3p3-bad":{"n":6,"h":180,"b":226},"man-a3p3-drink":{"n":8,"h":175,"b":238},"man-a3p3-good":{"n":6,"h":187,"b":243},"man-a3p3-idle2":{"n":6,"h":200,"b":241},"man-a3p3-idle3":{"n":6,"h":186,"b":238},"man-a3p3l1-idle":{"n":6,"h":199,"b":241},"man-a3p3l2-idle":{"n":6,"h":216,"b":244},"man-a3p3l3-idle":{"n":6,"h":201,"b":243},"man-a4p1-bad":{"n":6,"h":177,"b":215},"man-a4p1-drink":{"n":8,"h":156,"b":214},"man-a4p1-good":{"n":6,"h":201,"b":234},"man-a4p1-idle2":{"n":6,"h":198,"b":231},"man-a4p1-idle3":{"n":6,"h":172,"b":223},"man-a4p1l1-idle":{"n":6,"h":186,"b":244},"man-a4p1l2-idle":{"n":6,"h":186,"b":227},"man-a4p1l3-idle":{"n":6,"h":197,"b":242},"man-a4p2-bad":{"n":6,"h":186,"b":225},"man-a4p2-drink":{"n":8,"h":188,"b":232},"man-a4p2-good":{"n":6,"h":177,"b":227},"man-a4p2-idle2":{"n":6,"h":186,"b":237},"man-a4p2-idle3":{"n":6,"h":180,"b":221},"man-a4p2l1-idle":{"n":6,"h":193,"b":242},"man-a4p2l2-idle":{"n":6,"h":197,"b":234},"man-a4p2l3-idle":{"n":6,"h":184,"b":228},"man-a4p3-bad":{"n":6,"h":192,"b":231},"man-a4p3-drink":{"n":8,"h":173,"b":238},"man-a4p3-good":{"n":6,"h":192,"b":231},"man-a4p3-idle2":{"n":6,"h":190,"b":227},"man-a4p3-idle3":{"n":6,"h":185,"b":228},"man-a4p3l1-idle":{"n":6,"h":192,"b":234},"man-a4p3l2-idle":{"n":6,"h":190,"b":232},"man-a4p3l3-idle":{"n":6,"h":204,"b":243},"man-ride":{"n":6,"h":168,"b":214},"ui-btn-left":{"w":64,"h":128,"box":[4,21,61,106]},"ui-btn-mid":{"w":64,"h":128,"box":[2,43,61,78]},"ui-btn-right":{"w":64,"h":128,"box":[2,16,61,109]},"ui-close":{"w":96,"h":96,"box":[6,7,89,88]},"ui-dialog-bottom":{"w":1024,"h":96,"box":[344,3,679,91]},"ui-dialog-mid":{"w":1024,"h":64,"box":[435,2,586,61]},"ui-dialog-top":{"w":1024,"h":96,"box":[370,3,653,92]},"ui-divider":{"w":768,"h":40,"box":[350,14,416,24]},"ui-frame-1":{"w":192,"h":192,"box":[3,4,187,187]},"ui-frame-2":{"w":192,"h":192,"box":[6,3,187,183]},"ui-frame-3":{"w":192,"h":192,"box":[5,3,187,185]},"ui-frame-4":{"w":192,"h":192,"box":[3,3,188,183]},"ui-frame-5":{"w":192,"h":192,"box":[5,3,188,184]},"ui-frame-6":{"w":192,"h":192,"box":[3,3,188,186]},"ui-frame-7":{"w":192,"h":192,"box":[4,4,187,186]},"ui-opt-left":{"w":48,"h":112,"box":[9,5,38,105]},"ui-opt-mid":{"w":48,"h":112,"box":[4,13,44,98]},"ui-opt-right":{"w":48,"h":112,"box":[2,5,44,105]},"ui-tray":{"w":426,"h":219,"box":[2,2,423,216]},"witch-appear":{"n":8,"h":160,"b":219},"witch-idle":{"n":8,"h":152,"b":222},"witch-idle2":{"n":8,"h":160,"b":219},"witch-idle3":{"n":8,"h":171,"b":242},"witch-laugh":{"n":6,"h":205,"b":241},"witch-nod":{"n":6,"h":216,"b":243},"witch-offer":{"n":6,"h":213,"b":224},"witch-stop":{"n":6,"h":205,"b":236},"witch-wand":{"n":8,"h":139,"b":232}};
|
|
|
|
| 1 |
+
window.__WITCH_SPR__={"A":{"man-a1i":[6,9],"man-a1x":[8,15],"man-a2i":[6,9],"man-a2x":[8,16],"man-a3i":[6,9],"man-a3x":[8,15],"man-a4i":[6,9],"man-a4x":[8,15],"witch":[8,8],"cups":[6,6],"fx":[6,3],"cars":[4,2],"faces":[6,2],"frames":[7,1],"icons":[12,1],"badges":[6,4],"ui-tray":[1,1],"ui-divider":[1,1]},"S":{"man-a1p1l1-idle":{"a":"man-a1i","x":0,"y":0,"n":6,"h":212,"b":241},"man-a1p1l2-idle":{"a":"man-a1i","x":0,"y":1,"n":6,"h":194,"b":244},"man-a1p1l3-idle":{"a":"man-a1i","x":0,"y":2,"n":6,"h":195,"b":243},"man-a1p2l1-idle":{"a":"man-a1i","x":0,"y":3,"n":6,"h":180,"b":227},"man-a1p2l2-idle":{"a":"man-a1i","x":0,"y":4,"n":6,"h":183,"b":234},"man-a1p2l3-idle":{"a":"man-a1i","x":0,"y":5,"n":6,"h":195,"b":239},"man-a1p3l1-idle":{"a":"man-a1i","x":0,"y":6,"n":6,"h":202,"b":244},"man-a1p3l2-idle":{"a":"man-a1i","x":0,"y":7,"n":6,"h":198,"b":242},"man-a1p3l3-idle":{"a":"man-a1i","x":0,"y":8,"n":6,"h":184,"b":244},"man-a1p1-idle2":{"a":"man-a1x","x":0,"y":0,"n":6,"h":180,"b":231},"man-a1p1-idle3":{"a":"man-a1x","x":0,"y":1,"n":6,"h":191,"b":242},"man-a1p1-drink":{"a":"man-a1x","x":0,"y":2,"n":8,"h":166,"b":235},"man-a1p1-good":{"a":"man-a1x","x":0,"y":3,"n":6,"h":184,"b":240},"man-a1p1-bad":{"a":"man-a1x","x":0,"y":4,"n":6,"h":180,"b":231},"man-a1p2-idle2":{"a":"man-a1x","x":0,"y":5,"n":6,"h":215,"b":243},"man-a1p2-idle3":{"a":"man-a1x","x":0,"y":6,"n":6,"h":193,"b":234},"man-a1p2-drink":{"a":"man-a1x","x":0,"y":7,"n":8,"h":172,"b":236},"man-a1p2-good":{"a":"man-a1x","x":0,"y":8,"n":6,"h":170,"b":226},"man-a1p2-bad":{"a":"man-a1x","x":0,"y":9,"n":6,"h":189,"b":234},"man-a1p3-idle2":{"a":"man-a1x","x":0,"y":10,"n":6,"h":195,"b":242},"man-a1p3-idle3":{"a":"man-a1x","x":0,"y":11,"n":6,"h":206,"b":243},"man-a1p3-drink":{"a":"man-a1x","x":0,"y":12,"n":8,"h":168,"b":243},"man-a1p3-good":{"a":"man-a1x","x":0,"y":13,"n":6,"h":192,"b":236},"man-a1p3-bad":{"a":"man-a1x","x":0,"y":14,"n":6,"h":188,"b":240},"man-a2p1l1-idle":{"a":"man-a2i","x":0,"y":0,"n":6,"h":186,"b":243},"man-a2p1l2-idle":{"a":"man-a2i","x":0,"y":1,"n":6,"h":205,"b":242},"man-a2p1l3-idle":{"a":"man-a2i","x":0,"y":2,"n":6,"h":187,"b":237},"man-a2p2l1-idle":{"a":"man-a2i","x":0,"y":3,"n":6,"h":189,"b":244},"man-a2p2l2-idle":{"a":"man-a2i","x":0,"y":4,"n":6,"h":178,"b":231},"man-a2p2l3-idle":{"a":"man-a2i","x":0,"y":5,"n":6,"h":182,"b":226},"man-a2p3l1-idle":{"a":"man-a2i","x":0,"y":6,"n":6,"h":202,"b":244},"man-a2p3l2-idle":{"a":"man-a2i","x":0,"y":7,"n":6,"h":181,"b":235},"man-a2p3l3-idle":{"a":"man-a2i","x":0,"y":8,"n":6,"h":200,"b":241},"man-a2p1-idle2":{"a":"man-a2x","x":0,"y":0,"n":6,"h":197,"b":242},"man-a2p1-idle3":{"a":"man-a2x","x":0,"y":1,"n":6,"h":188,"b":242},"man-a2p1-drink":{"a":"man-a2x","x":0,"y":2,"n":8,"h":173,"b":236},"man-a2p1-good":{"a":"man-a2x","x":0,"y":3,"n":6,"h":204,"b":233},"man-a2p1-bad":{"a":"man-a2x","x":0,"y":4,"n":6,"h":180,"b":236},"man-a2p2-idle2":{"a":"man-a2x","x":0,"y":5,"n":6,"h":203,"b":244},"man-a2p2-idle3":{"a":"man-a2x","x":0,"y":6,"n":6,"h":180,"b":234},"man-a2p2-drink":{"a":"man-a2x","x":0,"y":7,"n":8,"h":193,"b":242},"man-a2p2-good":{"a":"man-a2x","x":0,"y":8,"n":6,"h":193,"b":234},"man-a2p2-bad":{"a":"man-a2x","x":0,"y":9,"n":6,"h":208,"b":244},"man-a2p3-idle2":{"a":"man-a2x","x":0,"y":10,"n":6,"h":196,"b":243},"man-a2p3-idle3":{"a":"man-a2x","x":0,"y":11,"n":6,"h":194,"b":234},"man-a2p3-drink":{"a":"man-a2x","x":0,"y":12,"n":8,"h":168,"b":229},"man-a2p3-good":{"a":"man-a2x","x":0,"y":13,"n":6,"h":213,"b":242},"man-a2p3-bad":{"a":"man-a2x","x":0,"y":14,"n":6,"h":188,"b":244},"man-ride":{"a":"man-a2x","x":0,"y":15,"n":6,"h":168,"b":214},"man-a3p1l1-idle":{"a":"man-a3i","x":0,"y":0,"n":6,"h":194,"b":244},"man-a3p1l2-idle":{"a":"man-a3i","x":0,"y":1,"n":6,"h":198,"b":243},"man-a3p1l3-idle":{"a":"man-a3i","x":0,"y":2,"n":6,"h":190,"b":233},"man-a3p2l1-idle":{"a":"man-a3i","x":0,"y":3,"n":6,"h":187,"b":240},"man-a3p2l2-idle":{"a":"man-a3i","x":0,"y":4,"n":6,"h":204,"b":242},"man-a3p2l3-idle":{"a":"man-a3i","x":0,"y":5,"n":6,"h":180,"b":235},"man-a3p3l1-idle":{"a":"man-a3i","x":0,"y":6,"n":6,"h":199,"b":241},"man-a3p3l2-idle":{"a":"man-a3i","x":0,"y":7,"n":6,"h":216,"b":244},"man-a3p3l3-idle":{"a":"man-a3i","x":0,"y":8,"n":6,"h":201,"b":243},"man-a3p1-idle2":{"a":"man-a3x","x":0,"y":0,"n":6,"h":189,"b":242},"man-a3p1-idle3":{"a":"man-a3x","x":0,"y":1,"n":6,"h":197,"b":233},"man-a3p1-drink":{"a":"man-a3x","x":0,"y":2,"n":8,"h":176,"b":242},"man-a3p1-good":{"a":"man-a3x","x":0,"y":3,"n":6,"h":194,"b":243},"man-a3p1-bad":{"a":"man-a3x","x":0,"y":4,"n":6,"h":174,"b":223},"man-a3p2-idle2":{"a":"man-a3x","x":0,"y":5,"n":6,"h":193,"b":244},"man-a3p2-idle3":{"a":"man-a3x","x":0,"y":6,"n":6,"h":195,"b":242},"man-a3p2-drink":{"a":"man-a3x","x":0,"y":7,"n":8,"h":178,"b":242},"man-a3p2-good":{"a":"man-a3x","x":0,"y":8,"n":6,"h":201,"b":241},"man-a3p2-bad":{"a":"man-a3x","x":0,"y":9,"n":6,"h":184,"b":242},"man-a3p3-idle2":{"a":"man-a3x","x":0,"y":10,"n":6,"h":200,"b":241},"man-a3p3-idle3":{"a":"man-a3x","x":0,"y":11,"n":6,"h":186,"b":238},"man-a3p3-drink":{"a":"man-a3x","x":0,"y":12,"n":8,"h":175,"b":238},"man-a3p3-good":{"a":"man-a3x","x":0,"y":13,"n":6,"h":187,"b":243},"man-a3p3-bad":{"a":"man-a3x","x":0,"y":14,"n":6,"h":180,"b":226},"man-a4p1l1-idle":{"a":"man-a4i","x":0,"y":0,"n":6,"h":186,"b":244},"man-a4p1l2-idle":{"a":"man-a4i","x":0,"y":1,"n":6,"h":186,"b":227},"man-a4p1l3-idle":{"a":"man-a4i","x":0,"y":2,"n":6,"h":197,"b":242},"man-a4p2l1-idle":{"a":"man-a4i","x":0,"y":3,"n":6,"h":193,"b":242},"man-a4p2l2-idle":{"a":"man-a4i","x":0,"y":4,"n":6,"h":197,"b":234},"man-a4p2l3-idle":{"a":"man-a4i","x":0,"y":5,"n":6,"h":184,"b":228},"man-a4p3l1-idle":{"a":"man-a4i","x":0,"y":6,"n":6,"h":192,"b":234},"man-a4p3l2-idle":{"a":"man-a4i","x":0,"y":7,"n":6,"h":190,"b":232},"man-a4p3l3-idle":{"a":"man-a4i","x":0,"y":8,"n":6,"h":204,"b":243},"man-a4p1-idle2":{"a":"man-a4x","x":0,"y":0,"n":6,"h":198,"b":231},"man-a4p1-idle3":{"a":"man-a4x","x":0,"y":1,"n":6,"h":172,"b":223},"man-a4p1-drink":{"a":"man-a4x","x":0,"y":2,"n":8,"h":156,"b":214},"man-a4p1-good":{"a":"man-a4x","x":0,"y":3,"n":6,"h":201,"b":234},"man-a4p1-bad":{"a":"man-a4x","x":0,"y":4,"n":6,"h":177,"b":215},"man-a4p2-idle2":{"a":"man-a4x","x":0,"y":5,"n":6,"h":186,"b":237},"man-a4p2-idle3":{"a":"man-a4x","x":0,"y":6,"n":6,"h":180,"b":221},"man-a4p2-drink":{"a":"man-a4x","x":0,"y":7,"n":8,"h":188,"b":232},"man-a4p2-good":{"a":"man-a4x","x":0,"y":8,"n":6,"h":177,"b":227},"man-a4p2-bad":{"a":"man-a4x","x":0,"y":9,"n":6,"h":186,"b":225},"man-a4p3-idle2":{"a":"man-a4x","x":0,"y":10,"n":6,"h":190,"b":227},"man-a4p3-idle3":{"a":"man-a4x","x":0,"y":11,"n":6,"h":185,"b":228},"man-a4p3-drink":{"a":"man-a4x","x":0,"y":12,"n":8,"h":173,"b":238},"man-a4p3-good":{"a":"man-a4x","x":0,"y":13,"n":6,"h":192,"b":231},"man-a4p3-bad":{"a":"man-a4x","x":0,"y":14,"n":6,"h":192,"b":231},"witch-idle":{"a":"witch","x":0,"y":0,"n":8,"h":152,"b":222},"witch-idle2":{"a":"witch","x":0,"y":1,"n":8,"h":160,"b":219},"witch-idle3":{"a":"witch","x":0,"y":2,"n":8,"h":171,"b":242},"witch-appear":{"a":"witch","x":0,"y":3,"n":8,"h":160,"b":219},"witch-nod":{"a":"witch","x":0,"y":4,"n":6,"h":216,"b":243},"witch-laugh":{"a":"witch","x":0,"y":5,"n":6,"h":205,"b":241},"witch-wand":{"a":"witch","x":0,"y":6,"n":8,"h":139,"b":232},"witch-stop":{"a":"witch","x":0,"y":7,"n":6,"h":205,"b":236},"cup-1":{"a":"cups","x":0,"y":0,"n":6,"f":1},"cup-2":{"a":"cups","x":0,"y":1,"n":6,"f":1},"cup-3":{"a":"cups","x":0,"y":2,"n":6,"f":1},"cup-4":{"a":"cups","x":0,"y":3,"n":6,"f":1},"cup-5":{"a":"cups","x":0,"y":4,"n":6,"f":1},"cup-6":{"a":"cups","x":0,"y":5,"n":6,"f":1},"fx-good":{"a":"fx","x":0,"y":0,"n":6,"f":1},"fx-bad":{"a":"fx","x":0,"y":1,"n":6,"f":1},"fx-change":{"a":"fx","x":0,"y":2,"n":6,"f":1},"car-0":{"a":"cars","x":0,"y":0,"n":1,"box":[127,14,641,488],"w":768,"h":512},"car-1":{"a":"cars","x":1,"y":0,"n":1,"box":[148,17,644,490],"w":768,"h":512},"car-2":{"a":"cars","x":2,"y":0,"n":1,"box":[20,72,754,458],"w":768,"h":512},"car-3":{"a":"cars","x":3,"y":0,"n":1,"box":[24,79,753,458],"w":768,"h":512},"car-4":{"a":"cars","x":0,"y":1,"n":1,"box":[24,56,748,445],"w":768,"h":512},"car-5":{"a":"cars","x":1,"y":1,"n":1,"box":[25,65,752,421],"w":768,"h":512},"car-6":{"a":"cars","x":2,"y":1,"n":1,"box":[18,201,750,432],"w":768,"h":512},"car-7":{"a":"cars","x":3,"y":1,"n":1,"box":[22,13,744,477],"w":768,"h":512},"face-a1l1":{"a":"faces","x":0,"y":0,"n":1},"face-a1l2":{"a":"faces","x":1,"y":0,"n":1},"face-a1l3":{"a":"faces","x":2,"y":0,"n":1},"face-a2l1":{"a":"faces","x":3,"y":0,"n":1},"face-a2l2":{"a":"faces","x":4,"y":0,"n":1},"face-a2l3":{"a":"faces","x":5,"y":0,"n":1},"face-a3l1":{"a":"faces","x":0,"y":1,"n":1},"face-a3l2":{"a":"faces","x":1,"y":1,"n":1},"face-a3l3":{"a":"faces","x":2,"y":1,"n":1},"face-a4l1":{"a":"faces","x":3,"y":1,"n":1},"face-a4l2":{"a":"faces","x":4,"y":1,"n":1},"face-a4l3":{"a":"faces","x":5,"y":1,"n":1},"ui-frame-1":{"a":"frames","x":0,"y":0,"n":1},"ui-frame-2":{"a":"frames","x":1,"y":0,"n":1},"ui-frame-3":{"a":"frames","x":2,"y":0,"n":1},"ui-frame-4":{"a":"frames","x":3,"y":0,"n":1},"ui-frame-5":{"a":"frames","x":4,"y":0,"n":1},"ui-frame-6":{"a":"frames","x":5,"y":0,"n":1},"ui-frame-7":{"a":"frames","x":6,"y":0,"n":1},"icon-age":{"a":"icons","x":0,"y":0,"n":1},"icon-body":{"a":"icons","x":1,"y":0,"n":1},"icon-look":{"a":"icons","x":2,"y":0,"n":1},"icon-wealth":{"a":"icons","x":3,"y":0,"n":1},"icon-house":{"a":"icons","x":4,"y":0,"n":1},"icon-car":{"a":"icons","x":5,"y":0,"n":1},"icon-ach":{"a":"icons","x":6,"y":0,"n":1},"icon-share":{"a":"icons","x":7,"y":0,"n":1},"icon-set":{"a":"icons","x":8,"y":0,"n":1},"icon-exit":{"a":"icons","x":9,"y":0,"n":1},"icon-book":{"a":"icons","x":10,"y":0,"n":1},"ui-close":{"a":"icons","x":11,"y":0,"n":1},"badge-first":{"a":"badges","x":0,"y":0,"n":1},"badge-r10":{"a":"badges","x":1,"y":0,"n":1},"badge-r100":{"a":"badges","x":2,"y":0,"n":1},"badge-r500":{"a":"badges","x":3,"y":0,"n":1},"badge-c5":{"a":"badges","x":4,"y":0,"n":1},"badge-c10":{"a":"badges","x":5,"y":0,"n":1},"badge-c20":{"a":"badges","x":0,"y":1,"n":1},"badge-young":{"a":"badges","x":1,"y":1,"n":1},"badge-ageR":{"a":"badges","x":2,"y":1,"n":1},"badge-fit":{"a":"badges","x":3,"y":1,"n":1},"badge-phyR":{"a":"badges","x":4,"y":1,"n":1},"badge-hand":{"a":"badges","x":5,"y":1,"n":1},"badge-lookR":{"a":"badges","x":0,"y":2,"n":1},"badge-m1":{"a":"badges","x":1,"y":2,"n":1},"badge-m2":{"a":"badges","x":2,"y":2,"n":1},"badge-m4":{"a":"badges","x":3,"y":2,"n":1},"badge-m5":{"a":"badges","x":4,"y":2,"n":1},"badge-m7":{"a":"badges","x":5,"y":2,"n":1},"badge-win":{"a":"badges","x":0,"y":3,"n":1},"badge-old":{"a":"badges","x":1,"y":3,"n":1},"badge-dead":{"a":"badges","x":2,"y":3,"n":1},"badge-revive":{"a":"badges","x":3,"y":3,"n":1},"badge-bill":{"a":"badges","x":4,"y":3,"n":1},"badge-unlock":{"a":"badges","x":5,"y":3,"n":1},"ui-tray":{"a":"ui-tray","x":0,"y":0,"n":1,"w":426,"h":219},"ui-divider":{"a":"ui-divider","x":0,"y":0,"n":1,"w":768,"h":40}}};
|
htlb/miniapp/dist-witch/witch.js
CHANGED
|
@@ -9,7 +9,8 @@
|
|
| 9 |
var B = window.__HTLB__;
|
| 10 |
if (!B) return;
|
| 11 |
var esc = B.esc, $ = B.q, $$ = B.qa, icon = B.icon;
|
| 12 |
-
|
|
|
|
| 13 |
var STANDALONE = !window.__HTLB_CH__; // 「女巫的魔药」版:没有红薯冒险
|
| 14 |
|
| 15 |
/* ---------------- 规则 ---------------- */
|
|
@@ -128,7 +129,10 @@
|
|
| 128 |
|
| 129 |
/* ---------------- 精灵 ---------------- */
|
| 130 |
var pre = {};
|
| 131 |
-
function img(name) { if (!
|
|
|
|
|
|
|
|
|
|
| 132 |
function Actor(el, base, T) { this.el = el; this.base = base; this.T = T; this.timer = 0; this.d = document.createElement('div'); this.d.className = 'spr'; el.appendChild(this.d); }
|
| 133 |
Actor.prototype.frame = function (name, k) {
|
| 134 |
var m = SPR[name];
|
|
@@ -138,10 +142,10 @@
|
|
| 138 |
var h = m.f ? 256 : m.h, D = this.T * 256 / h, st = this.d.style;
|
| 139 |
st.width = D + 'px'; st.height = D + 'px'; st.marginLeft = (-D / 2) + 'px';
|
| 140 |
st.bottom = m.f ? (-D * 0.04) + 'px' : (-(256 - m.b) / 256 * D) + 'px';
|
| 141 |
-
st.backgroundImage = 'url(' + DIR +
|
| 142 |
this.n = m.n;
|
| 143 |
}
|
| 144 |
-
this.d.style.backgroundPosition = (
|
| 145 |
};
|
| 146 |
Actor.prototype.play = function (name, o) {
|
| 147 |
o = o || {};
|
|
@@ -165,10 +169,14 @@
|
|
| 165 |
Actor.prototype.stop = function () { clearTimeout(this.timer); };
|
| 166 |
function wait(ms) { return new Promise(function (r) { setTimeout(r, B.rm ? Math.min(ms, 120) : ms); }); }
|
| 167 |
function vibrateLong() { var m = B.mini(); try { if (m && typeof m.vibrateLong === 'function') { var r = m.vibrateLong(); r && r.then && r.then(null, function () {}); return; } } catch (e) {} B.buzz('success'); }
|
| 168 |
-
function cupBg(k, still) {
|
| 169 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 170 |
var ICON_FILE = ['icon-ach', 'icon-ach', 'icon-share', 'icon-book', 'icon-set', 'icon-exit', 'icon-set', 'icon-age'];
|
| 171 |
-
function uiIcon(k) { var f = ICON_FILE[k]; return SPR[f] ? '<i class="w2-ic one" style="
|
| 172 |
|
| 173 |
/* ---------------- 冒险页(落地页) ---------------- */
|
| 174 |
function landing() {
|
|
@@ -176,7 +184,7 @@
|
|
| 176 |
var ms = moneyStage();
|
| 177 |
v.innerHTML = (STANDALONE ? '' : hubTabs('witch')) + '<div class="view-head"><div><h1 class="view-title">女巫的魔药</h1><p class="view-sub">喝对变年轻、变有钱;喝错变老、变穷</p></div></div>' +
|
| 178 |
'<button class="hub-card witch big" type="button" data-act="wt-open"><span class="hub-bg" style="background-image:url(' + DIR + 'house-' + ms + '.webp)"></span>' +
|
| 179 |
-
'<span class="hub-face" style="
|
| 180 |
'<span class="hub-txt"><b>' + (S.intro ? '继续喝魔药' : '开始游戏') + '</b><small>我:' + ageTxt() + ' 岁 · ' + band(PHY, S.phy) + '</small><small class="hub-me">' + MONEY[ms].name + ' · 住' + esc(MONEY[ms].house) + ' · ' + esc(MONEY[ms].car) + '</small></span><span class="hub-go">进入' + icon('i-right', 'ic-s') + '</span></button>' +
|
| 181 |
'<div class="gm-rules"><p>一个 22 岁、什么都没有的普通青年,在路上捡到《高性价比人生指南》,女巫从书里飘了出来。</p><p>女巫按题目选项端出几杯魔药:<b>喝对</b>了变年轻、变强壮、变帅、变有钱;<b>喝错</b>了变老、变丑、变穷,到 90 岁就寿终。每天最多喝错 10 杯,晒一下人生账单可以再喝。</p></div>' +
|
| 182 |
'<p class="ch-fine">题目来自原书 ' + B.H.length + ' 条建议,难度和类别由决策模型 lingdt-decision-1.0-27b 离线评定;答案以原书为准。进度只存在这台手机上。</p>';
|
|
@@ -192,7 +200,7 @@
|
|
| 192 |
whenReady(function () {
|
| 193 |
if (L) return;
|
| 194 |
rollDay(); gameMode(true); B.buzz('light');
|
| 195 |
-
['ui-
|
| 196 |
'house-' + moneyStage(), 'car-' + moneyStage(), heroKey() + '-idle', actKey() + '-drink', actKey() + '-good', actKey() + '-bad', faceKey(), 'man-ride'].forEach(img);
|
| 197 |
L = B.sheet('w2', { label: '女巫的魔药', render: function (lay) {
|
| 198 |
lay.el.classList.add('w2-sheet');
|
|
@@ -217,7 +225,7 @@
|
|
| 217 |
});
|
| 218 |
}
|
| 219 |
var TOOL_ICON = { ach: 'icon-ach', share: 'icon-share', set: 'icon-set', exit: 'icon-exit' };
|
| 220 |
-
function toolIcon(k) { return SPR[TOOL_ICON[k]] ? '<i class="w2-ic one" style="
|
| 221 |
function tool(k, label) { return '<button class="w2-tool" type="button" data-act="wt-tool" data-k="' + k + '">' + toolIcon(k) + '<span>' + label + '</span></button>'; }
|
| 222 |
function layout() {
|
| 223 |
var el = L.el, W = el.offsetWidth || 390, H = el.offsetHeight || 844;
|
|
@@ -250,7 +258,7 @@
|
|
| 250 |
c.style.width = 768 * s + 'px'; c.style.height = 512 * s + 'px';
|
| 251 |
c.style.left = (G.W * 0.7 - (box[0] + (box[2] - box[0]) / 2) * s) + 'px';
|
| 252 |
c.style.bottom = (-(512 - box[3]) * s) + 'px';
|
| 253 |
-
c.style.
|
| 254 |
p.style.width = wpx * 1.08 + 'px'; p.style.left = (G.W * 0.7 - wpx * 0.54) + 'px'; p.style.bottom = (-wpx * 0.06) + 'px'; p.style.height = wpx * 0.16 + 'px';
|
| 255 |
}
|
| 256 |
function hero(name, fps, loop, onFrame) { clearTimeout(G.hIdleT); G.hero.T = heroT(); return G.hero.play(name, { fps: fps || 6, loop: loop, onFrame: onFrame }); }
|
|
@@ -282,7 +290,7 @@
|
|
| 282 |
/* ---------------- 状态栏:头像(点开属性面板)+ 四条「到下一级」进度条 ---------------- */
|
| 283 |
var STAT_ICON = { age: 'icon-age', phy: 'icon-body', look: 'icon-look', money: 'icon-wealth', house: 'icon-house', car: 'icon-car' };
|
| 284 |
var STAT_TXT = { age: '龄', phy: '身', look: '颜', money: '财', house: '房', car: '车' };
|
| 285 |
-
function statIcon(k) { return SPR[STAT_ICON[k]] ? '<i class="w2-si" style="
|
| 286 |
function frameUrl() { var k = 'ui-frame-' + (gAll() + 1); return DIR + (SPR[k] ? k : 'ui-frame') + '.webp'; }
|
| 287 |
function bars() {
|
| 288 |
var ms = moneyStage();
|
|
@@ -295,7 +303,7 @@
|
|
| 295 |
}
|
| 296 |
function refreshHud() {
|
| 297 |
if (!alive()) return;
|
| 298 |
-
var h = '<button class="w2-me" type="button" data-act="wt-panel" aria-label="查看角色属性"><span class="w2-face g' + gAll() + '" style="
|
| 299 |
bars().forEach(function (r) {
|
| 300 |
var c = GRADE[r[2].g][1];
|
| 301 |
h += '<div class="w2-bar" id="w2-bar-' + r[0] + '">' + statIcon(r[0]) + '<span class="w2-bl">' + r[1] + '</span><span class="w2-track"><i style="width:' + Math.round(r[2].p * 100) + '%;background:' + c + '"></i></span>' +
|
|
@@ -324,7 +332,7 @@
|
|
| 324 |
['house', '房子', M.house, gMoney()],
|
| 325 |
['car', '车子', M.car, gMoney()]
|
| 326 |
];
|
| 327 |
-
popup('角色属性 · 综合 <em style="color:' + GRADE[gAll()][1] + '">' + GRADE[gAll()][0] + '</em>', '<div class="w2-pscene" id="w2-pscene" style="background-image:url(' + DIR + 'house-' + ms + '.webp)"><div class="w2-pcar" style="
|
| 328 |
'<div class="w2-attrs">' + rows.map(function (r) { return '<p>' + statIcon(r[0]) + '<b>' + r[1] + '</b><span style="color:' + GRADE[r[3]][1] + '">' + esc(r[2]) + '</span></p>'; }).join('') + '</div>' +
|
| 329 |
'<div class="w2-subcap">战绩</div><dl class="w2-stats"><div><dt>今天喝对</dt><dd>' + S.today.right + ' 杯</dd></div><div><dt>今天喝错</dt><dd>' + S.today.wrong + ' 杯</dd></div><div><dt>累计喝对</dt><dd>' + S.total.right + ' 杯</dd></div><div><dt>累计喝错</dt><dd>' + S.total.wrong + ' 杯</dd></div>' +
|
| 330 |
'<div><dt>连续喝对</dt><dd>' + S.combo + ' 杯</dd></div><div><dt>最年轻</dt><dd>' + (S.peak.age < 20 ? S.peak.age.toFixed(1) : Math.round(S.peak.age)) + ' 岁</dd></div><div><dt>最高金钱</dt><dd>' + Math.round(S.peak.m) + '</dd></div><div><dt>寿终 / 复活</dt><dd>' + S.total.deaths + ' / ' + S.total.revives + '</dd></div></dl>', 'panel');
|
|
@@ -417,6 +425,13 @@
|
|
| 417 |
if (!items.length) { t.innerHTML = ''; t.style.display = 'none'; return; }
|
| 418 |
var tm = SPR['ui-tray'] || { w: 426, h: 219 }, w = Math.min(G.W * (items.length > 2 ? 0.66 : 0.5), 320), h = w * tm.h / tm.w, cw = Math.min(w * 0.8 / items.length, 66);
|
| 419 |
t.style.display = 'block'; t.style.width = w + 'px'; t.style.height = h + 'px'; t.style.left = (G.W * 0.5 - w / 2) + 'px';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 420 |
t.innerHTML = '<i class="w2-tray-img" style="background-image:url(' + DIR + 'ui-tray.webp)"></i>' + items.map(function (it, i) {
|
| 421 |
return '<button class="w2-cup" type="button" data-act="wt-cup" data-i="' + i + '" style="left:' + (10 + (i + 0.5) / items.length * 80) + '%;width:' + cw + 'px;height:' + cw + 'px;margin-left:' + (-cw / 2) + 'px;bottom:' + (h * 0.4) + 'px"><i class="smoke" style="' + cupBg(it.k) + '"></i></button>';
|
| 422 |
}).join('');
|
|
@@ -608,7 +623,7 @@
|
|
| 608 |
if (!S.dead) heroIdle();
|
| 609 |
var over = !S.dead && S.wrong >= cap();
|
| 610 |
say('女巫', (ok ? '「喝对了!」' : timeout ? '「时间到,硬灌一杯!」' : '「哈哈,喝错了!」') + what + '。正确答案是「' + q.o[q.a] + '」。' + q.w,
|
| 611 |
-
(change ? '<p class="w2-change">' + change + '</p>' : '') + '<div class="w2-acts"><button class="w2-btn ghost orig" type="button" data-act="wt-orig" data-id="' + q.id + '">' + (SPR['icon-book'] ? '<i class="w2-ic one" style="
|
| 612 |
(S.dead ? '<button class="w2-btn" type="button" data-act="wt-death">寿终了……</button>' : over ? '<button class="w2-btn" type="button" data-act="wt-cap">女巫有话说</button>' : '<button class="w2-btn" type="button" data-act="wt-next">继续挑战</button>') + '</div>');
|
| 613 |
$('#w2-name', L.el).innerHTML = '女巫';
|
| 614 |
tray([]);
|
|
@@ -692,13 +707,13 @@
|
|
| 692 |
function popup(title, body, cls) {
|
| 693 |
closePopup();
|
| 694 |
var p = document.createElement('div'); p.className = 'w2-pop' + (cls ? ' ' + cls : ''); p.id = 'w2-pop';
|
| 695 |
-
var x = SPR['ui-close'] ? '<i style="
|
| 696 |
p.innerHTML = '<div class="w2-pop-box rise"><div class="w2-title">' + title + '</div><div class="w2-pop-body">' + body + '</div><button class="w2-pop-x" type="button" data-act="wt-popclose" aria-label="关闭">' + x + '</button></div>';
|
| 697 |
L.el.appendChild(p);
|
| 698 |
}
|
| 699 |
function closePopup() { var p = L && $('#w2-pop', L.el); if (p) p.parentNode.removeChild(p); if (G && G.panelA) { G.panelA.stop(); G.panelA = null; } }
|
| 700 |
function badge(a, got) {
|
| 701 |
-
var art = SPR['badge-' + a[0]] ? '<i style="
|
| 702 |
return '<button class="w2-badge' + (got ? ' got' : '') + '" type="button" data-act="wt-badge" data-id="' + a[0] + '">' + art + '<span>' + a[1] + '</span></button>';
|
| 703 |
}
|
| 704 |
var RULES = '<div class="w2-rules">' +
|
|
@@ -736,7 +751,8 @@
|
|
| 736 |
function toURL(make) { try { return make().toDataURL('image/png'); } catch (e) { DRAW = false; try { return make().toDataURL('image/png'); } finally { DRAW = true; } } }
|
| 737 |
function loadAll(names) { return Promise.all(names.map(img).map(function (im) { return im.complete ? Promise.resolve() : new Promise(function (r) { im.onload = r; im.onerror = r; setTimeout(r, 2500); }); })); }
|
| 738 |
function drawImg(g, name, sx, sy, sw, sh, x, y, w, h) { var im = pre[name]; if (!DRAW || !im || !im.naturalWidth) return; try { g.drawImage(im, sx, sy, sw, sh, x, y, w, h); } catch (e) {} }
|
| 739 |
-
function
|
|
|
|
| 740 |
function billCanvas() {
|
| 741 |
var cv = document.createElement('canvas'); cv.width = 1080; cv.height = 1440;
|
| 742 |
var g = cv.getContext('2d'), f = B.font, ms = moneyStage(), M = MONEY[ms];
|
|
@@ -752,12 +768,12 @@
|
|
| 752 |
var sky = g.createLinearGradient(0, 150, 0, 750); sky.addColorStop(0, '#6d4ea0'); sky.addColorStop(1, '#2d1f45'); g.fillStyle = sky; g.fillRect(64, 150, 952, 600);
|
| 753 |
drawImg(g, 'house-' + ms, 0, 200, 720, 640, 64, 150, 952, 846);
|
| 754 |
var cm = SPR['car-' + ms];
|
| 755 |
-
if (cm) { var bx = cm.box, w = 952 * CAR_W[ms] * 0.85, sc = w / (bx[2] - bx[0]);
|
| 756 |
drawSpr(g, heroKey() + '-idle', 330, 725, 430);
|
| 757 |
g.restore();
|
| 758 |
g.strokeStyle = GRADE[gAll()][1]; g.lineWidth = 6; B.rr(g, 64, 150, 952, 600, 34); g.stroke();
|
| 759 |
// 头像 + 综合等级
|
| 760 |
-
g.save(); g.beginPath(); g.arc(150, 830, 70, 0, 6.3); g.fillStyle = '#f3d7c0'; g.fill(); g.clip();
|
| 761 |
g.strokeStyle = GRADE[gAll()][1]; g.lineWidth = 8; g.beginPath(); g.arc(150, 830, 72, 0, 6.3); g.stroke();
|
| 762 |
g.fillStyle = '#fff'; g.font = f(900, 48); g.fillText('我', 250, 820);
|
| 763 |
g.font = f(800, 30); g.fillStyle = GRADE[gAll()][1]; g.fillText('综合等级 · ' + GRADE[gAll()][0], 250, 868);
|
|
|
|
| 9 |
var B = window.__HTLB__;
|
| 10 |
if (!B) return;
|
| 11 |
var esc = B.esc, $ = B.q, $$ = B.qa, icon = B.icon;
|
| 12 |
+
// 素材都在合图(atlas)里:A = {图名: [列, 行]},S = {素材名: {a 图名, x 列, y 行, n 帧数, h/b 复位高度与底边, f 不对齐, box}}
|
| 13 |
+
var SPR0 = window.__WITCH_SPR__ || {}, AT = SPR0.A || {}, SPR = SPR0.S || {}, DIR = './witch/';
|
| 14 |
var STANDALONE = !window.__HTLB_CH__; // 「女巫的魔药」版:没有红薯冒险
|
| 15 |
|
| 16 |
/* ---------------- 规则 ---------------- */
|
|
|
|
| 129 |
|
| 130 |
/* ---------------- 精灵 ---------------- */
|
| 131 |
var pre = {};
|
| 132 |
+
function img(name) { var f = SPR[name] ? SPR[name].a : name; if (!SPR[name] && !AT[f] && !/^house-\d$/.test(f)) return new Image(); if (!pre[f]) { var im = new Image(); im.src = DIR + f + '.webp'; pre[f] = im; } return pre[f]; }
|
| 133 |
+
function atOf(name) { var m = SPR[name]; return m ? AT[m.a] || [1, 1] : [1, 1]; }
|
| 134 |
+
function bgPos(name, k) { var m = SPR[name], at = atOf(name); return (at[0] > 1 ? (m.x + (k || 0)) / (at[0] - 1) * 100 : 0) + '% ' + (at[1] > 1 ? m.y / (at[1] - 1) * 100 : 0) + '%'; }
|
| 135 |
+
function bg(name, k) { var m = SPR[name]; if (!m) return ''; var at = atOf(name); return 'background-image:url(' + DIR + m.a + '.webp);background-size:' + (at[0] * 100) + '% ' + (at[1] * 100) + '%;background-position:' + bgPos(name, k) + ';background-repeat:no-repeat'; }
|
| 136 |
function Actor(el, base, T) { this.el = el; this.base = base; this.T = T; this.timer = 0; this.d = document.createElement('div'); this.d.className = 'spr'; el.appendChild(this.d); }
|
| 137 |
Actor.prototype.frame = function (name, k) {
|
| 138 |
var m = SPR[name];
|
|
|
|
| 142 |
var h = m.f ? 256 : m.h, D = this.T * 256 / h, st = this.d.style;
|
| 143 |
st.width = D + 'px'; st.height = D + 'px'; st.marginLeft = (-D / 2) + 'px';
|
| 144 |
st.bottom = m.f ? (-D * 0.04) + 'px' : (-(256 - m.b) / 256 * D) + 'px';
|
| 145 |
+
var at = atOf(name); st.backgroundImage = 'url(' + DIR + m.a + '.webp)'; st.backgroundSize = (at[0] * 100) + '% ' + (at[1] * 100) + '%';
|
| 146 |
this.n = m.n;
|
| 147 |
}
|
| 148 |
+
this.d.style.backgroundPosition = bgPos(name, k);
|
| 149 |
};
|
| 150 |
Actor.prototype.play = function (name, o) {
|
| 151 |
o = o || {};
|
|
|
|
| 169 |
Actor.prototype.stop = function () { clearTimeout(this.timer); };
|
| 170 |
function wait(ms) { return new Promise(function (r) { setTimeout(r, B.rm ? Math.min(ms, 120) : ms); }); }
|
| 171 |
function vibrateLong() { var m = B.mini(); try { if (m && typeof m.vibrateLong === 'function') { var r = m.vibrateLong(); r && r.then && r.then(null, function () {}); return; } } catch (e) {} B.buzz('success'); }
|
| 172 |
+
function cupBg(k, still) {
|
| 173 |
+
var nm = 'cup-' + (k + 1), m = SPR[nm]; if (!m) return '';
|
| 174 |
+
var at = atOf(nm), y = at[1] > 1 ? m.y / (at[1] - 1) * 100 : 0, d = (1.1 + k * 0.07).toFixed(2);
|
| 175 |
+
return 'background-image:url(' + DIR + m.a + '.webp);background-size:' + (at[0] * 100) + '% ' + (at[1] * 100) + '%;background-position:0% ' + y + '%;background-position-y:' + y + '%' + (still ? '' : ';-webkit-animation-duration:' + d + 's;animation-duration:' + d + 's');
|
| 176 |
+
}
|
| 177 |
+
function sprBg(name, k) { return bg(name, k); }
|
| 178 |
var ICON_FILE = ['icon-ach', 'icon-ach', 'icon-share', 'icon-book', 'icon-set', 'icon-exit', 'icon-set', 'icon-age'];
|
| 179 |
+
function uiIcon(k) { var f = ICON_FILE[k]; return SPR[f] ? '<i class="w2-ic one" style="' + bg(f) + '"></i>' : '<i class="w2-ic"></i>'; }
|
| 180 |
|
| 181 |
/* ---------------- 冒险页(落地页) ---------------- */
|
| 182 |
function landing() {
|
|
|
|
| 184 |
var ms = moneyStage();
|
| 185 |
v.innerHTML = (STANDALONE ? '' : hubTabs('witch')) + '<div class="view-head"><div><h1 class="view-title">女巫的魔药</h1><p class="view-sub">喝对变年轻、变有钱;喝错变老、变穷</p></div></div>' +
|
| 186 |
'<button class="hub-card witch big" type="button" data-act="wt-open"><span class="hub-bg" style="background-image:url(' + DIR + 'house-' + ms + '.webp)"></span>' +
|
| 187 |
+
'<span class="hub-face round" style="' + bg(faceKey()) + '"></span>' +
|
| 188 |
'<span class="hub-txt"><b>' + (S.intro ? '继续喝魔药' : '开始游戏') + '</b><small>我:' + ageTxt() + ' 岁 · ' + band(PHY, S.phy) + '</small><small class="hub-me">' + MONEY[ms].name + ' · 住' + esc(MONEY[ms].house) + ' · ' + esc(MONEY[ms].car) + '</small></span><span class="hub-go">进入' + icon('i-right', 'ic-s') + '</span></button>' +
|
| 189 |
'<div class="gm-rules"><p>一个 22 岁、什么都没有的普通青年,在路上捡到《高性价比人生指南》,女巫从书里飘了出来。</p><p>女巫按题目选项端出几杯魔药:<b>喝对</b>了变年轻、变强壮、变帅、变有钱;<b>喝错</b>了变老、变丑、变穷,到 90 岁就寿终。每天最多喝错 10 杯,晒一下人生账单可以再喝。</p></div>' +
|
| 190 |
'<p class="ch-fine">题目来自原书 ' + B.H.length + ' 条建议,难度和类别由决策模型 lingdt-decision-1.0-27b 离线评定;答案以原书为准。进度只存在这台手机上。</p>';
|
|
|
|
| 200 |
whenReady(function () {
|
| 201 |
if (L) return;
|
| 202 |
rollDay(); gameMode(true); B.buzz('light');
|
| 203 |
+
['ui-divider', 'ui-tray', 'ui-close', 'cup-1', 'icons', 'frames', 'witch-idle2', 'witch-idle3', actKey() + '-idle2', actKey() + '-idle3', 'fx-good', 'fx-bad', 'fx-change', 'witch-idle', 'witch-appear', 'witch-nod', 'witch-laugh', 'witch-wand', 'witch-stop',
|
| 204 |
'house-' + moneyStage(), 'car-' + moneyStage(), heroKey() + '-idle', actKey() + '-drink', actKey() + '-good', actKey() + '-bad', faceKey(), 'man-ride'].forEach(img);
|
| 205 |
L = B.sheet('w2', { label: '女巫的魔药', render: function (lay) {
|
| 206 |
lay.el.classList.add('w2-sheet');
|
|
|
|
| 225 |
});
|
| 226 |
}
|
| 227 |
var TOOL_ICON = { ach: 'icon-ach', share: 'icon-share', set: 'icon-set', exit: 'icon-exit' };
|
| 228 |
+
function toolIcon(k) { return SPR[TOOL_ICON[k]] ? '<i class="w2-ic one" style="' + bg(TOOL_ICON[k]) + '"></i>' : uiIcon(ICON[k]); }
|
| 229 |
function tool(k, label) { return '<button class="w2-tool" type="button" data-act="wt-tool" data-k="' + k + '">' + toolIcon(k) + '<span>' + label + '</span></button>'; }
|
| 230 |
function layout() {
|
| 231 |
var el = L.el, W = el.offsetWidth || 390, H = el.offsetHeight || 844;
|
|
|
|
| 258 |
c.style.width = 768 * s + 'px'; c.style.height = 512 * s + 'px';
|
| 259 |
c.style.left = (G.W * 0.7 - (box[0] + (box[2] - box[0]) / 2) * s) + 'px';
|
| 260 |
c.style.bottom = (-(512 - box[3]) * s) + 'px';
|
| 261 |
+
c.style.cssText += ';' + bg('car-' + ms);
|
| 262 |
p.style.width = wpx * 1.08 + 'px'; p.style.left = (G.W * 0.7 - wpx * 0.54) + 'px'; p.style.bottom = (-wpx * 0.06) + 'px'; p.style.height = wpx * 0.16 + 'px';
|
| 263 |
}
|
| 264 |
function hero(name, fps, loop, onFrame) { clearTimeout(G.hIdleT); G.hero.T = heroT(); return G.hero.play(name, { fps: fps || 6, loop: loop, onFrame: onFrame }); }
|
|
|
|
| 290 |
/* ---------------- 状态栏:头像(点开属性面板)+ 四条「到下一级」进度条 ---------------- */
|
| 291 |
var STAT_ICON = { age: 'icon-age', phy: 'icon-body', look: 'icon-look', money: 'icon-wealth', house: 'icon-house', car: 'icon-car' };
|
| 292 |
var STAT_TXT = { age: '龄', phy: '身', look: '颜', money: '财', house: '房', car: '车' };
|
| 293 |
+
function statIcon(k) { return SPR[STAT_ICON[k]] ? '<i class="w2-si" style="' + bg(STAT_ICON[k]) + '"></i>' : '<i class="w2-si t">' + STAT_TXT[k] + '</i>'; }
|
| 294 |
function frameUrl() { var k = 'ui-frame-' + (gAll() + 1); return DIR + (SPR[k] ? k : 'ui-frame') + '.webp'; }
|
| 295 |
function bars() {
|
| 296 |
var ms = moneyStage();
|
|
|
|
| 303 |
}
|
| 304 |
function refreshHud() {
|
| 305 |
if (!alive()) return;
|
| 306 |
+
var h = '<button class="w2-me" type="button" data-act="wt-panel" aria-label="查看角色属性"><span class="w2-face g' + gAll() + '" style="' + bg(faceKey()) + '"><i style="' + bg('ui-frame-' + (gAll() + 1)) + '"></i></span><b class="w2-age">我</b></button><div class="w2-bars">';
|
| 307 |
bars().forEach(function (r) {
|
| 308 |
var c = GRADE[r[2].g][1];
|
| 309 |
h += '<div class="w2-bar" id="w2-bar-' + r[0] + '">' + statIcon(r[0]) + '<span class="w2-bl">' + r[1] + '</span><span class="w2-track"><i style="width:' + Math.round(r[2].p * 100) + '%;background:' + c + '"></i></span>' +
|
|
|
|
| 332 |
['house', '房子', M.house, gMoney()],
|
| 333 |
['car', '车子', M.car, gMoney()]
|
| 334 |
];
|
| 335 |
+
popup('角色属性 · 综合 <em style="color:' + GRADE[gAll()][1] + '">' + GRADE[gAll()][0] + '</em>', '<div class="w2-pscene" id="w2-pscene" style="background-image:url(' + DIR + 'house-' + ms + '.webp)"><div class="w2-pcar" style="' + bg('car-' + ms) + '"></div><div class="wt-actor" id="w2-phero"></div></div>' +
|
| 336 |
'<div class="w2-attrs">' + rows.map(function (r) { return '<p>' + statIcon(r[0]) + '<b>' + r[1] + '</b><span style="color:' + GRADE[r[3]][1] + '">' + esc(r[2]) + '</span></p>'; }).join('') + '</div>' +
|
| 337 |
'<div class="w2-subcap">战绩</div><dl class="w2-stats"><div><dt>今天喝对</dt><dd>' + S.today.right + ' 杯</dd></div><div><dt>今天喝错</dt><dd>' + S.today.wrong + ' 杯</dd></div><div><dt>累计喝对</dt><dd>' + S.total.right + ' 杯</dd></div><div><dt>累计喝错</dt><dd>' + S.total.wrong + ' 杯</dd></div>' +
|
| 338 |
'<div><dt>连续喝对</dt><dd>' + S.combo + ' 杯</dd></div><div><dt>最年轻</dt><dd>' + (S.peak.age < 20 ? S.peak.age.toFixed(1) : Math.round(S.peak.age)) + ' 岁</dd></div><div><dt>最高金钱</dt><dd>' + Math.round(S.peak.m) + '</dd></div><div><dt>寿终 / 复活</dt><dd>' + S.total.deaths + ' / ' + S.total.revives + '</dd></div></dl>', 'panel');
|
|
|
|
| 425 |
if (!items.length) { t.innerHTML = ''; t.style.display = 'none'; return; }
|
| 426 |
var tm = SPR['ui-tray'] || { w: 426, h: 219 }, w = Math.min(G.W * (items.length > 2 ? 0.66 : 0.5), 320), h = w * tm.h / tm.w, cw = Math.min(w * 0.8 / items.length, 66);
|
| 427 |
t.style.display = 'block'; t.style.width = w + 'px'; t.style.height = h + 'px'; t.style.left = (G.W * 0.5 - w / 2) + 'px';
|
| 428 |
+
// 矮屏:对话框会盖住托盘时,把托盘抬到对话框上方
|
| 429 |
+
setTimeout(function () {
|
| 430 |
+
if (!alive()) return;
|
| 431 |
+
var d = $('#w2-dialog', L.el), rr = L.el.getBoundingClientRect(), dTop = d.getBoundingClientRect().top - rr.top;
|
| 432 |
+
var bottomY = Math.min(G.ground - G.ground * 0.04, dTop - 8);
|
| 433 |
+
t.style.bottom = Math.max(0, G.ground - bottomY) + 'px';
|
| 434 |
+
}, 60);
|
| 435 |
t.innerHTML = '<i class="w2-tray-img" style="background-image:url(' + DIR + 'ui-tray.webp)"></i>' + items.map(function (it, i) {
|
| 436 |
return '<button class="w2-cup" type="button" data-act="wt-cup" data-i="' + i + '" style="left:' + (10 + (i + 0.5) / items.length * 80) + '%;width:' + cw + 'px;height:' + cw + 'px;margin-left:' + (-cw / 2) + 'px;bottom:' + (h * 0.4) + 'px"><i class="smoke" style="' + cupBg(it.k) + '"></i></button>';
|
| 437 |
}).join('');
|
|
|
|
| 623 |
if (!S.dead) heroIdle();
|
| 624 |
var over = !S.dead && S.wrong >= cap();
|
| 625 |
say('女巫', (ok ? '「喝对了!」' : timeout ? '「时间到,硬灌一杯!」' : '「哈哈,喝错了!」') + what + '。正确答案是「' + q.o[q.a] + '」。' + q.w,
|
| 626 |
+
(change ? '<p class="w2-change">' + change + '</p>' : '') + '<div class="w2-acts"><button class="w2-btn ghost orig" type="button" data-act="wt-orig" data-id="' + q.id + '">' + (SPR['icon-book'] ? '<i class="w2-ic one" style="' + bg('icon-book') + '"></i>' : '') + '看原文</button>' +
|
| 627 |
(S.dead ? '<button class="w2-btn" type="button" data-act="wt-death">寿终了……</button>' : over ? '<button class="w2-btn" type="button" data-act="wt-cap">女巫有话说</button>' : '<button class="w2-btn" type="button" data-act="wt-next">继续挑战</button>') + '</div>');
|
| 628 |
$('#w2-name', L.el).innerHTML = '女巫';
|
| 629 |
tray([]);
|
|
|
|
| 707 |
function popup(title, body, cls) {
|
| 708 |
closePopup();
|
| 709 |
var p = document.createElement('div'); p.className = 'w2-pop' + (cls ? ' ' + cls : ''); p.id = 'w2-pop';
|
| 710 |
+
var x = SPR['ui-close'] ? '<i style="' + bg('ui-close') + '"></i>' : '✕';
|
| 711 |
p.innerHTML = '<div class="w2-pop-box rise"><div class="w2-title">' + title + '</div><div class="w2-pop-body">' + body + '</div><button class="w2-pop-x" type="button" data-act="wt-popclose" aria-label="关闭">' + x + '</button></div>';
|
| 712 |
L.el.appendChild(p);
|
| 713 |
}
|
| 714 |
function closePopup() { var p = L && $('#w2-pop', L.el); if (p) p.parentNode.removeChild(p); if (G && G.panelA) { G.panelA.stop(); G.panelA = null; } }
|
| 715 |
function badge(a, got) {
|
| 716 |
+
var art = SPR['badge-' + a[0]] ? '<i style="' + bg('badge-' + a[0]) + '"></i>' : '<i class="t">' + a[1].slice(0, 1) + '</i>';
|
| 717 |
return '<button class="w2-badge' + (got ? ' got' : '') + '" type="button" data-act="wt-badge" data-id="' + a[0] + '">' + art + '<span>' + a[1] + '</span></button>';
|
| 718 |
}
|
| 719 |
var RULES = '<div class="w2-rules">' +
|
|
|
|
| 751 |
function toURL(make) { try { return make().toDataURL('image/png'); } catch (e) { DRAW = false; try { return make().toDataURL('image/png'); } finally { DRAW = true; } } }
|
| 752 |
function loadAll(names) { return Promise.all(names.map(img).map(function (im) { return im.complete ? Promise.resolve() : new Promise(function (r) { im.onload = r; im.onerror = r; setTimeout(r, 2500); }); })); }
|
| 753 |
function drawImg(g, name, sx, sy, sw, sh, x, y, w, h) { var im = pre[name]; if (!DRAW || !im || !im.naturalWidth) return; try { g.drawImage(im, sx, sy, sw, sh, x, y, w, h); } catch (e) {} }
|
| 754 |
+
function drawCell(g, name, k, x, y, w, h) { var m = SPR[name]; if (!m || !DRAW) return; var im = pre[m.a], at = atOf(name); if (!im || !im.naturalWidth) return; var cw = im.naturalWidth / at[0], ch = im.naturalHeight / at[1]; try { g.drawImage(im, (m.x + (k || 0)) * cw, m.y * ch, cw, ch, x, y, w, h); } catch (e) {} }
|
| 755 |
+
function drawSpr(g, name, cx, footY, T) { var m = SPR[name]; if (!m) return; var D = T * 256 / (m.h || 230); drawCell(g, name, 0, cx - D / 2, footY - (m.b || 244) / 256 * D, D, D); }
|
| 756 |
function billCanvas() {
|
| 757 |
var cv = document.createElement('canvas'); cv.width = 1080; cv.height = 1440;
|
| 758 |
var g = cv.getContext('2d'), f = B.font, ms = moneyStage(), M = MONEY[ms];
|
|
|
|
| 768 |
var sky = g.createLinearGradient(0, 150, 0, 750); sky.addColorStop(0, '#6d4ea0'); sky.addColorStop(1, '#2d1f45'); g.fillStyle = sky; g.fillRect(64, 150, 952, 600);
|
| 769 |
drawImg(g, 'house-' + ms, 0, 200, 720, 640, 64, 150, 952, 846);
|
| 770 |
var cm = SPR['car-' + ms];
|
| 771 |
+
if (cm) { var bx = cm.box, w = 952 * CAR_W[ms] * 0.85, sc = w / (bx[2] - bx[0]); drawCell(g, 'car-' + ms, 0, 760 - (bx[0] + (bx[2] - bx[0]) / 2) * sc, 715 - bx[3] * sc, 768 * sc, 512 * sc); }
|
| 772 |
drawSpr(g, heroKey() + '-idle', 330, 725, 430);
|
| 773 |
g.restore();
|
| 774 |
g.strokeStyle = GRADE[gAll()][1]; g.lineWidth = 6; B.rr(g, 64, 150, 952, 600, 34); g.stroke();
|
| 775 |
// 头像 + 综合等级
|
| 776 |
+
g.save(); g.beginPath(); g.arc(150, 830, 70, 0, 6.3); g.fillStyle = '#f3d7c0'; g.fill(); g.clip(); drawCell(g, faceKey(), 0, 80, 760, 140, 140); g.restore();
|
| 777 |
g.strokeStyle = GRADE[gAll()][1]; g.lineWidth = 8; g.beginPath(); g.arc(150, 830, 72, 0, 6.3); g.stroke();
|
| 778 |
g.fillStyle = '#fff'; g.font = f(900, 48); g.fillText('我', 250, 820);
|
| 779 |
g.font = f(800, 30); g.fillStyle = GRADE[gAll()][1]; g.fillText('综合等级 · ' + GRADE[gAll()][0], 250, 868);
|
htlb/miniapp/dist-witch/witch/badge-c5.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-dead.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-first.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-fit.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-hand.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-lookR.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-m1.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-m2.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-m4.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-m5.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-m7.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-old.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-phyR.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-r10.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-r100.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-r500.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-revive.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-unlock.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-win.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badge-young.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/badges.webp
ADDED
|
Git LFS Details
|
htlb/miniapp/dist-witch/witch/car-0.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/car-1.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/car-2.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/car-3.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/car-4.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/car-5.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/car-6.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/car-7.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/cars.webp
ADDED
|
Git LFS Details
|
htlb/miniapp/dist-witch/witch/cup-1.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/cup-2.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/cup-3.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/cup-4.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/cup-5.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/cup-6.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/cups.webp
ADDED
|
Git LFS Details
|
htlb/miniapp/dist-witch/witch/face-a1l1.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/face-a1l2.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/face-a1l3.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/face-a2l1.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/face-a2l2.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/face-a2l3.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/face-a3l1.webp
DELETED
Git LFS Details
|
htlb/miniapp/dist-witch/witch/face-a3l2.webp
DELETED
Git LFS Details
|