Implement tooltip and clean up/refactor code base
This commit is contained in:
@@ -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 }));
|
||||
|
||||
Reference in New Issue
Block a user