碰撞
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* @LastEditors: dgflash
|
||||
* @LastEditTime: 2022-08-17 13:43:02
|
||||
*/
|
||||
import { profiler, _decorator } from 'cc';
|
||||
import { profiler, _decorator ,PhysicsSystem2D} from 'cc';
|
||||
import { DEBUG } from 'cc/env';
|
||||
import { oops } from '../../extensions/oops-plugin-framework/assets/core/Oops';
|
||||
import { Root } from '../../extensions/oops-plugin-framework/assets/core/Root';
|
||||
@@ -20,20 +20,20 @@ export class Main extends Root {
|
||||
start() {
|
||||
if (DEBUG) profiler.showStats();
|
||||
}
|
||||
|
||||
|
||||
protected async run() {
|
||||
smc.initialize = ecs.getEntity<Initialize>(Initialize);
|
||||
smc.monsters = [
|
||||
{profession:'m1',speed:60},
|
||||
{profession:'m2',speed:600},
|
||||
{profession:'m3',speed:200},
|
||||
{profession:'m4',speed:100},
|
||||
{profession:'m1',speed:50},
|
||||
{profession:'m2',speed:50},
|
||||
{profession:'m3',speed:50},
|
||||
{profession:'m4',speed:50},
|
||||
]
|
||||
smc.heros = [
|
||||
{profession:'war',speed:60},
|
||||
{profession:'magic',speed:60},
|
||||
{profession:'heath',speed:60},
|
||||
{profession:'war',speed:60},
|
||||
{profession:'war',speed:50},
|
||||
{profession:'magic',speed:50},
|
||||
{profession:'heath',speed:50},
|
||||
{profession:'war',speed:50},
|
||||
]
|
||||
console.log("Game start");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user