mirror of
https://github.com/thib8956/tic-tac-toe-ws.git
synced 2025-01-12 04:41:06 +00:00
rename mts to ts
This commit is contained in:
parent
3a33868a02
commit
cc1fd59b79
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
*.mjs
|
*.js
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Request, Response, Message, Hello, EndGame } from "common.mjs";
|
import { Request, Response, Message, Hello, EndGame } from "common.js";
|
||||||
|
|
||||||
const CELL_SIZE = 150;
|
const CELL_SIZE = 150;
|
||||||
const GRID_SIZE = CELL_SIZE * 3;
|
const GRID_SIZE = CELL_SIZE * 3;
|
@ -6,5 +6,5 @@
|
|||||||
<body style="margin: 0; padding 0; overflow: hidden; background-color: #000000">
|
<body style="margin: 0; padding 0; overflow: hidden; background-color: #000000">
|
||||||
<canvas id="game" width="800" height="600"></canvas>
|
<canvas id="game" width="800" height="600"></canvas>
|
||||||
</body>
|
</body>
|
||||||
<script type="module" src="client.mjs"></script>
|
<script type="module" src="client.js"></script>
|
||||||
</html>
|
</html>
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Message, Response, Hello, EndGame } from "common.mjs"
|
import { Message, Response, Hello, EndGame } from "common.js"
|
||||||
import { WebSocket, WebSocketServer, MessageEvent } from "ws";
|
import { WebSocket, WebSocketServer, MessageEvent } from "ws";
|
||||||
|
|
||||||
const port = 1234
|
const port = 1234
|
Loading…
Reference in New Issue
Block a user