-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
43 lines (34 loc) · 2.06 KB
/
Copy pathscript.js
File metadata and controls
43 lines (34 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* CARTA DE LOS DESARROLLADORES:
* Lo sentimos por no poder incluir un solo archivo Javascript, entendimos que esto hubiera facilitado mucho su revision inicial,
* pero realmente no pudimos convertir toda nuestra logica en un solo archivo sin hacer un desastre de codigo mientras no comprometiamos el desarrollo del proyecto,
* y eso es lo que valoramos, despues de todo intentamos que la arquitectura fuera lo más limpia posible para que nadie tenga que leer o intentar entender
* cosas muy complejas. Un codigo simple, es un mejor codigo.
* */
// Pequeño easter egg para iniciar el juego
const ascii = `
██ ▄█▀ █ ██ ██▀███ ██▓ ▒█████ ██████
██▄█▒ ██ ▓██▒▓██ ▒ ██▒▓██▒▒██▒ ██▒▒██ ▒
▓███▄░ ▓██ ▒██░▓██ ░▄█ ▒▒██▒▒██░ ██▒░ ▓██▄
▓██ █▄ ▓▓█ ░██░▒██▀▀█▄ ░██░▒██ ██░ ▒ ██▒
▒██▒ █▄▒▒█████▓ ░██▓ ▒██▒░██░░ ████▓▒░▒██████▒▒
▒ ▒▒ ▓▒░▒▓▒ ▒ ▒ ░ ▒▓ ░▒▓░░▓ ░ ▒░▒░▒░ ▒ ▒▓▒ ▒ ░
░ ░▒ ▒░░░▒░ ░ ░ ░▒ ░ ▒░ ▒ ░ ░ ▒ ▒░ ░ ░▒ ░ ░
░ ░░ ░ ░░░ ░ ░ ░░ ░ ▒ ░░ ░ ░ ▒ ░ ░ ░
░ ░ ░ ░ ░ ░ ░ ░
Hola!
Hecho por el Equipo de U.E.C.P Nuestros Símbolos
Repositorio: https://github.com/eswaldots/kurios-competition
`;
console.log(
`%c${ascii}`,
'font-family: "JetBrains Mono", monospace; white-space: pre; line-height: 1; color: white;',
);
import { Engine } from "./src/engine.js";
import { GameState } from "./src/state.js";
const root = document.getElementById("root");
if (!root) {
throw new Error("La etiqueta root no pudo ser encontrada");
}
const engine = new Engine();
engine.handleStateUpdate(GameState.BOOTING);