Skip to content

Commit

Permalink
fixes for compiling using 'tsc' directly
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed May 1, 2018
1 parent ebb47e9 commit 34416be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rooms/02-state-handler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Room, EntityMap, Client, nosync } from "colyseus";

class State {
export class State {
players: EntityMap<Player> = {};

@nosync
Expand All @@ -24,7 +24,7 @@ class State {
}
}

class Player {
export class Player {
x = Math.floor(Math.random() * 400);
y = Math.floor(Math.random() * 400);
}
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"target": "es2016",
"declaration": true,
"noImplicitAny": false,
"experimentalDecorators": true,
"sourceMap": false
},
"include": [
"src/**/*.ts"
"**/*.ts"
]
}

0 comments on commit 34416be

Please sign in to comment.