diff options
| author | Indrajith K L | 2021-08-02 13:23:30 +0530 | 
|---|---|---|
| committer | Indrajith K L | 2021-08-02 13:23:30 +0530 | 
| commit | 2ff207a1d30830aeca2ea9e5d085a55ee3448ab0 (patch) | |
| tree | be75e1282d19563324cff6d4bfeac9cea053ee51 /config.wren | |
| parent | b73889da9f33b883894db6a989037030fee99f95 (diff) | |
| download | rebirth-wren-2ff207a1d30830aeca2ea9e5d085a55ee3448ab0.tar.gz rebirth-wren-2ff207a1d30830aeca2ea9e5d085a55ee3448ab0.tar.bz2 rebirth-wren-2ff207a1d30830aeca2ea9e5d085a55ee3448ab0.zip | |
* Code Refactoring
* Bug Fixes in Map rendering
Diffstat (limited to 'config.wren')
| -rw-r--r-- | config.wren | 39 | 
1 files changed, 39 insertions, 0 deletions
| 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 | 
