Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
tailuge committed Jan 4, 2025
1 parent 9f4eb31 commit bb56dfc
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 199 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,11 @@ yarn prettify

### Two player

tbd uses nchan
```shell
yarn serve
```

open <http://localhost:8888/dist/multi.html> to see options
then open <http://localhost:8080/multi.html> to see options, message server is public nchan.

## Controls

Expand Down
4 changes: 2 additions & 2 deletions dist/2p.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@

<script>
const urlParams = new URLSearchParams(window.location.search)
const websocketserver = urlParams.get("websocketserver")
const ruletype = urlParams.get("ruletype")
const websocketserver = urlParams.get("websocketserver") ?? "ws://localhost:8080"
const ruletype = urlParams.get("ruletype") ?? "nineball"
const unique = Math.floor(Math.random() * 0xffff).toString(16)
const url = `index.html?ruletype=${ruletype}&websocketserver=${websocketserver}&tableId=${unique}`
document.getElementById("P1").src =
Expand Down
32 changes: 0 additions & 32 deletions dist/lobby/lobby.css

This file was deleted.

52 changes: 0 additions & 52 deletions dist/lobby/lobby.html

This file was deleted.

94 changes: 0 additions & 94 deletions dist/lobby/lobby.js

This file was deleted.

17 changes: 1 addition & 16 deletions dist/multi.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<title>multi player billiards hosting</title>
<title>multi player billiards testing setup</title>
<link rel="icon" type="image/png" href="favicon.png" />
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
Expand Down Expand Up @@ -53,21 +53,6 @@ <h1>tailuge/billiards multiplayer test page</h1>
>two players snooker in single window</a
>
</li>
<li><a href="lobby/lobby.html?mode=local">local lobby</a></li>
</ul>
github assets and local websocket server:
<ul>
<li>
<a
class="addwss"
href="https://tailuge.github.io/billiards/dist/?ruletype=nineball"
>single player</a
>
</li>
</ul>
github assets and render websocket server:
<ul>
<li><a id="local" href="lobby/lobby.html">lobby</a></li>
</ul>
</body>

Expand Down
1 change: 0 additions & 1 deletion dist/server.js

This file was deleted.

0 comments on commit bb56dfc

Please sign in to comment.