feat: 添加生命值系统

- 新增 StorageManager 本地存储管理器,管理用户生命值
- 新用户默认 10 点生命值,存储在 localStorage
- 查看提示消耗 1 点生命值
- 通关奖励 1 点生命值
- PageLevel 集成生命值显示和消耗逻辑
This commit is contained in:
richarjiang
2026-03-14 18:32:50 +08:00
parent 774486ba21
commit 71a38c1fe5
4 changed files with 168 additions and 5 deletions

View File

@@ -1612,7 +1612,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -220,
"x": -180,
"y": 0,
"z": 0
},
@@ -1653,7 +1653,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 160,
"width": 320,
"height": 100.8
},
"_anchorPoint": {
@@ -1689,7 +1689,7 @@
"b": 0,
"a": 255
},
"_string": "这是",
"_string": "答案是:",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 80,
@@ -1771,7 +1771,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -150,
"x": -70,
"y": 0,
"z": 0
},
@@ -1904,7 +1904,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -110,
"x": -30,
"y": 41.081,
"z": 0
},
@@ -6023,6 +6023,9 @@
"clockLabel": {
"__id__": 48
},
"liveLabel": {
"__id__": 30
},
"levelConfigs": [
{
"__id__": 250