1
0
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:
Thibaud Gasser 2024-09-25 20:21:02 +02:00
parent 3a33868a02
commit cc1fd59b79
6 changed files with 5 additions and 4 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
node_modules/
*.mjs
*.js

View File

@ -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;

View File

@ -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>

View File

@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},

View File

@ -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