角色动画 确定

This commit is contained in:
2024-08-26 07:33:26 +08:00
parent 68d7077e56
commit 4f96558d36
111 changed files with 54661 additions and 1391 deletions

View File

@@ -43,15 +43,15 @@ export class MapViewComp extends CCComp {
}
load_role(){
let role = ecs.getEntity<Role>(Role);
let pos = v3(0,BoxSet.GAME_LINE)
role.load(pos,108)
let pos = v3(BoxSet.HERO_START-50,BoxSet.GAME_LINE)
role.load(pos,108,"Character07")
}
load_data(){
// let heros = oops.res.get("config/game/heros")
// console.log("heros",heros)
}
protected update(dt: number): void {
// if (this.game_timer.update(dt)) {
// smc.vm_data.game.g_time += 1;
// }
@@ -63,10 +63,13 @@ export class MapViewComp extends CCComp {
gold_add(dt: number) {
smc.vm_data.gold.time += dt;
if (smc.vm_data.gold.time >= smc.vm_data.gold.cd) {
if (smc.vm_data.gold.max < smc.vm_data.gold.max_limit) {
smc.vm_data.gold.max += 1;
// if (smc.vm_data.gold.max < smc.vm_data.gold.max_limit) {
// smc.vm_data.gold.max += 1;
// }
// smc.vm_data.gold.min = smc.vm_data.gold.max;
if(smc.vm_data.gold.min < smc.vm_data.gold.max){
smc.vm_data.gold.min += 1;
}
smc.vm_data.gold.min = smc.vm_data.gold.max;
smc.vm_data.gold.time = 0;
}
}
@@ -84,6 +87,6 @@ export class MapViewComp extends CCComp {
let scale = 1
hero.load(pos,scale,uuid);
}
}