mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-24 14:06:16 -04:00
wip
This commit is contained in:
parent
1ba55bf2a6
commit
4d7d57f17f
15 changed files with 165 additions and 120 deletions
|
@ -12,7 +12,7 @@ let mediaRecorder: MediaRecorder | null,
|
|||
recordCanvasCtx: CanvasRenderingContext2D;
|
||||
|
||||
export function recordOneFrame(gameState: GameState) {
|
||||
if (!isOptionOn("record") || isInWebView) {
|
||||
if (!isOptionOn("record") ) {
|
||||
return;
|
||||
}
|
||||
// if (!gameState.running) return;
|
||||
|
@ -59,7 +59,7 @@ export function drawMainCanvasOnSmallCanvas(gameState: GameState) {
|
|||
}
|
||||
|
||||
export function startRecordingGame(gameState: GameState) {
|
||||
if (!isOptionOn("record") || isInWebView) {
|
||||
if (!isOptionOn("record") ) {
|
||||
return;
|
||||
}
|
||||
if (mediaRecorder) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue