drawing now seperate from gameLoop
+ refactoring + added soundMutedFlag
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
import {Vector, VectorInteger} from "./Vector.js";
|
||||
import { Vector, VectorInteger } from "./Vector.js";
|
||||
|
||||
interface Component {
|
||||
pos: VectorInteger;
|
||||
|
||||
Reference in New Issue
Block a user