From 2ff207a1d30830aeca2ea9e5d085a55ee3448ab0 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Mon, 2 Aug 2021 13:23:30 +0530 Subject: * Code Refactoring * Bug Fixes in Map rendering --- config.wren | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 config.wren (limited to 'config.wren') diff --git a/config.wren b/config.wren new file mode 100644 index 0000000..a1b8cec --- /dev/null +++ b/config.wren @@ -0,0 +1,39 @@ +import "graphics" for Canvas +import "dome" for Window +class Config { + construct new() { + + } + + static KeyboardConstants { + return { + "UP": "up", + "DOWN": "down", + "LEFT": "left", + "RIGHT": "right", + "PICK" : "c", + "SELECT": "z", + "ATTACK": "x", + "QUIT": "escape" + } + } + + static setup() { + Window.resize(800, 600) + Canvas.resize(800, 600) + Window.title = "REBIRTH" + } + + // static KeyboardConstants() { + // return { + // "UP": "up", + // "DOWN": "down", + // "LEFT": "left", + // "RIGHT": "right", + // "PICK" : "c", + // "SELECT": "z", + // "ATTACK": "x", + // "QUIT": "esc" + // } + // } +} \ No newline at end of file -- cgit v1.2.3