refactor, simplify common access names

This commit is contained in:
Matthieu Jolimaitre 2024-04-10 03:15:01 +02:00
parent f277a71087
commit 55a5adcd92
5 changed files with 30 additions and 20 deletions

View file

@ -6,12 +6,15 @@ import { Session } from "./entities/player.ts";
import { sys_spawn_structure } from "./components/world.ts";
import { Gateway } from "./network.ts";
import { sys_spawn_enemy } from "./entities/enemy.ts";
import { enemy_plugin } from "./entities/enemy.ts";
const log = log_from(import.meta);
async function main() {
log("Starting.");
const engine = new Engine();
enemy_plugin(engine);
engine.start();
engine.run(await sys_spawn_structure("../data/structures/houses.txt", v2(2, 2)));
engine.run(sys_spawn_enemy(v2(1, 1)));