Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
SinusStudios committed Apr 10, 2020
1 parent d354019 commit 497b78d
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 10 deletions.
4 changes: 3 additions & 1 deletion client/OBScoreClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,6 @@ export default class OBScoreClient {
changeMethod()
await OBScoreClient.fadeIn(element)
}
}
}

window.OBScoreClient = OBScoreClient
5 changes: 4 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@
"devDependencies": {
"babel-core": "^6.26.3",
"babel-preset-env": "^1.7.0"
}
},
"browserslist": [
"last 5 Chrome versions"
]
}
2 changes: 1 addition & 1 deletion client/sample-receive/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ document.addEventListener("DOMContentLoaded", function() {
})

// Connect to the host!
obscoreClient.connect("ws://192.168.0.55:3001")
obscoreClient.connect("ws://localhost:3001")
})
6 changes: 4 additions & 2 deletions controller/notes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
BO5 / BO3 / Custom?
Animationen sind irgendwie sequenziert, nicht parallel
Persistenz im Speicher oder sowas
Tooltips
Tooltips

Wenn man eine Rundenzahl einstellt, aber danach zB auf Quarters wechselt, bleibt die Zahl (Client? Statische Stringify Methode?)
stringifySet methode, die custom berücksichtigt
2 changes: 1 addition & 1 deletion controller/src/socket.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import io from "socket.io-client"
import {receivable} from "./socketEvents"

const socket = io("192.168.0.55:3001")
const socket = io("http://localhost:3001")

// socket.close()

Expand Down
8 changes: 4 additions & 4 deletions controller/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ import SetTypes from "./model/Set"

const scoreboard = new Scoreboard()

const player1 = new Player("blub")
const player1 = new Player("Player 1")
player1.score = 0

const player2 = new Player("bla")
const player2 = new Player("Player 2")
player2.score = 0

scoreboard.players = [
player1,
player2
]

const commentator1 = new Commentator("bruh")
const commentator2 = new Commentator("bromega")
const commentator1 = new Commentator("Commentator 1")
const commentator2 = new Commentator("Commentator 2")

scoreboard.commentators = [
commentator1,
Expand Down

0 comments on commit 497b78d

Please sign in to comment.