This commit is contained in:
2024-08-14 23:07:41 +08:00
parent 36419ffda4
commit cc2020086d
3 changed files with 20 additions and 17 deletions

View File

@@ -454,8 +454,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 0.7,
"y": 1, "y": 0.7,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,
@@ -595,13 +595,13 @@
"_restitution": 0, "_restitution": 0,
"_offset": { "_offset": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 9.3, "x": 310,
"y": -386.9 "y": -459.8
}, },
"_size": { "_size": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1177.9, "width": 3260.8,
"height": 835.9 "height": 981.7
}, },
"_id": "" "_id": ""
}, },
@@ -629,8 +629,8 @@
"_restitution": 0, "_restitution": 0,
"_offset": { "_offset": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 796.8, "x": 983.4,
"y": -30.2 "y": -22.4
}, },
"_size": { "_size": {
"__type__": "cc.Size", "__type__": "cc.Size",
@@ -663,8 +663,8 @@
"_restitution": 0, "_restitution": 0,
"_offset": { "_offset": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": -720, "x": -883.7,
"y": -20.1 "y": -16.2
}, },
"_size": { "_size": {
"__type__": "cc.Size", "__type__": "cc.Size",

View File

@@ -763,7 +763,7 @@
"a": 255 "a": 255
}, },
"_string": "dps", "_string": "dps",
"_horizontalAlign": 1, "_horizontalAlign": 0,
"_verticalAlign": 1, "_verticalAlign": 1,
"_actualFontSize": 20, "_actualFontSize": 20,
"_fontSize": 20, "_fontSize": 20,
@@ -1479,7 +1479,7 @@
"a": 255 "a": 255
}, },
"_string": "dps", "_string": "dps",
"_horizontalAlign": 1, "_horizontalAlign": 0,
"_verticalAlign": 1, "_verticalAlign": 1,
"_actualFontSize": 20, "_actualFontSize": 20,
"_fontSize": 20, "_fontSize": 20,
@@ -2195,7 +2195,7 @@
"a": 255 "a": 255
}, },
"_string": "dps", "_string": "dps",
"_horizontalAlign": 1, "_horizontalAlign": 0,
"_verticalAlign": 1, "_verticalAlign": 1,
"_actualFontSize": 20, "_actualFontSize": 20,
"_fontSize": 20, "_fontSize": 20,
@@ -2911,7 +2911,7 @@
"a": 255 "a": 255
}, },
"_string": "dps", "_string": "dps",
"_horizontalAlign": 1, "_horizontalAlign": 0,
"_verticalAlign": 1, "_verticalAlign": 1,
"_actualFontSize": 20, "_actualFontSize": 20,
"_fontSize": 20, "_fontSize": 20,
@@ -3627,7 +3627,7 @@
"a": 255 "a": 255
}, },
"_string": "dps", "_string": "dps",
"_horizontalAlign": 1, "_horizontalAlign": 0,
"_verticalAlign": 1, "_verticalAlign": 1,
"_actualFontSize": 20, "_actualFontSize": 20,
"_fontSize": 20, "_fontSize": 20,
@@ -4343,7 +4343,7 @@
"a": 255 "a": 255
}, },
"_string": "dps", "_string": "dps",
"_horizontalAlign": 1, "_horizontalAlign": 0,
"_verticalAlign": 1, "_verticalAlign": 1,
"_actualFontSize": 20, "_actualFontSize": 20,
"_fontSize": 20, "_fontSize": 20,

View File

@@ -24,7 +24,7 @@ export class MapViewComp extends CCComp {
/** 当前地图数据 */ /** 当前地图数据 */
current_map: any; current_map: any;
/** 转场碰撞点对象集合 */ /** 转场碰撞点对象集合 */
private game_timer: Timer = new Timer(1);
private monster_refresh_rtimer: Timer = new Timer(3); private monster_refresh_rtimer: Timer = new Timer(3);
private mapLoaded() { private mapLoaded() {
@@ -56,6 +56,9 @@ export class MapViewComp extends CCComp {
if (this.monster_refresh_rtimer.update(dt)) { if (this.monster_refresh_rtimer.update(dt)) {
this.monster_refresh() this.monster_refresh()
} }
if (this.game_timer.update(dt)) {
smc.vm_data.game.g_time += 1;
}
// this.shuaxin(dt) // this.shuaxin(dt)
this.gold_add(dt) this.gold_add(dt)
} }