diff options
author | jak1 <mike.wollmann@gmail.com> | 2021-08-01 17:02:17 +0200 |
---|---|---|
committer | jak1 <mike.wollmann@gmail.com> | 2021-08-01 17:02:17 +0200 |
commit | a8fb9c3e5ca4e089b8161b0e0f0150c1100d68c3 (patch) | |
tree | b3eb94b0ff4cd3792fcebb8b34e0e7192d0c7b50 /client/consts.js | |
parent | c9bdbee1b58b8530b6508ea705d5b9fd9a17f627 (diff) | |
download | thepixelworld-a8fb9c3e5ca4e089b8161b0e0f0150c1100d68c3.tar.gz thepixelworld-a8fb9c3e5ca4e089b8161b0e0f0150c1100d68c3.tar.bz2 thepixelworld-a8fb9c3e5ca4e089b8161b0e0f0150c1100d68c3.tar.xz thepixelworld-a8fb9c3e5ca4e089b8161b0e0f0150c1100d68c3.zip |
added some more features, and fixed some bugs (was to lazy to commit every change *hides)
Diffstat (limited to 'client/consts.js')
-rw-r--r-- | client/consts.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/client/consts.js b/client/consts.js index 0e0e28c..242857d 100644 --- a/client/consts.js +++ b/client/consts.js @@ -1,8 +1,16 @@ -const WIDTH = 500; -const HEIGHT = 500; +// game settings +const WIDTH = 500; +const HEIGHT = 500; +// directions +const DIR_DOWN = 0; +const DIR_LEFT = 1; +const DIR_UP = 2; +const DIR_RIGHT = 4; + +// error codes const CONNECTION_LOST = 10001;
\ No newline at end of file |