fix: game: 2d work
This commit is contained in:
@ -2,6 +2,7 @@ import { AExchangeable } from "../../AExchangable.js";
|
||||
import { PongGame } from "./PongGame.js";
|
||||
import { renderCube} from "../../../3D/cube.js"
|
||||
import { Position } from "./Position.js";
|
||||
import { Point } from "./Point.js";
|
||||
|
||||
export class PongBall extends AExchangeable
|
||||
{
|
||||
@ -13,7 +14,7 @@ export class PongBall extends AExchangeable
|
||||
* @param {Number} speed
|
||||
* @param {Number} size
|
||||
*/
|
||||
constructor(game, size, position = new Position(), angle, speed)
|
||||
constructor(game, size, position = new Position(new Point(game.config.CENTER_X, game.config.CENTER_Y), 0), angle, speed)
|
||||
{
|
||||
super();
|
||||
|
||||
|
Reference in New Issue
Block a user