mirror of
https://github.com/thib8956/tic-tac-toe-ws.git
synced 2024-11-17 01:16:33 +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/
|
||||
*.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 GRID_SIZE = CELL_SIZE * 3;
|
@ -6,5 +6,5 @@
|
||||
<body style="margin: 0; padding 0; overflow: hidden; background-color: #000000">
|
||||
<canvas id="game" width="800" height="600"></canvas>
|
||||
</body>
|
||||
<script type="module" src="client.mjs"></script>
|
||||
<script type="module" src="client.js"></script>
|
||||
</html>
|
||||
|
@ -3,6 +3,7 @@
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"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";
|
||||
|
||||
const port = 1234
|
Loading…
Reference in New Issue
Block a user