drawing now seperate from gameLoop

+ refactoring
+ added soundMutedFlag
This commit is contained in:
LuckyLaszlo
2022-11-24 13:56:51 +01:00
parent 7d5895a6cc
commit 3474d54a2b
22 changed files with 105 additions and 106 deletions

View File

@@ -3,8 +3,8 @@
For the moment, this code is only used by the server.
*/
import * as c from "../constants.js"
import {VectorInteger} from "./Vector.js";
import {Rectangle, Racket, Ball} from "./Rectangle.js";
import { VectorInteger } from "./Vector.js";
import { Rectangle, Racket, Ball } from "./Rectangle.js";
class GameComponents {
wallTop: Rectangle;

View File

@@ -1,6 +1,6 @@
import {Vector, VectorInteger} from "./Vector.js";
import {Component, Moving} from "./interface.js";
import { Vector, VectorInteger } from "./Vector.js";
import { Component, Moving } from "./interface.js";
class Rectangle implements Component {
pos: VectorInteger;

View File

@@ -1,5 +1,5 @@
import {Vector, VectorInteger} from "./Vector.js";
import { Vector, VectorInteger } from "./Vector.js";
interface Component {
pos: VectorInteger;