asd
This commit is contained in:
@@ -80,6 +80,9 @@ const createPlayer = (scravatar: string) => {
|
||||
return player
|
||||
}
|
||||
|
||||
const peerIDToConnect = location.pathname.replace("/", "")
|
||||
initWebRTC((gameState) => {}, peerIDToConnect)
|
||||
|
||||
scene("menu", () => {
|
||||
add([text("Choose your Scravatar", { font: "happy" })])
|
||||
;["wolfi", "octo", "dead", "triboi"].forEach((image, i) => {
|
||||
@@ -125,9 +128,6 @@ scene("menu", () => {
|
||||
duration: 1,
|
||||
})
|
||||
})
|
||||
|
||||
const peerIDToConnect = location.pathname.replace("/", "")
|
||||
initWebRTC((gameState) => {}, peerIDToConnect)
|
||||
})
|
||||
|
||||
scene("game", (scravatar: string) => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DataConnection, DataConnectionErrorType, Peer } from "peerjs"
|
||||
import { DataConnection, Peer } from "peerjs"
|
||||
import { GameState, Message } from "./types"
|
||||
|
||||
const configuration: RTCConfiguration = {
|
||||
|
||||
Reference in New Issue
Block a user