* Code Refactoring
* Bug Fixes in Map rendering
This commit is contained in:
39
config.wren
Normal file
39
config.wren
Normal file
@@ -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"
|
||||
// }
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user