Implement tooltip and clean up/refactor code base

This commit is contained in:
2019-08-29 12:02:22 +02:00
parent 9d723e4470
commit 8ba4a30644
10 changed files with 144 additions and 111 deletions

View File

@@ -1,4 +1,5 @@
import Module from "./module.js";
import keys from "../enums/keys.js";
export const MODULE_NAME = "GAME";
@@ -9,16 +10,6 @@ export const module = new Module(MODULE_NAME, {
fps: 8
});
export const keys = {
UP: "ArrowUp",
RIGHT: "ArrowRight",
DOWN: "ArrowDown",
LEFT: "ArrowLeft",
EQUAL: "=",
PLUS: "+",
MINUS: "-"
};
export const [START_LOOP, startLoop] = module.action("START_LOOP");
export const [STOP_LOOP, stopLoop] = module.action("STOP_LOOP");
export const [LOOP, loop] = module.action("LOOP", ({ recur, skip } = {}) => ({ recur, skip }));