Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillermo Gonzalez committed Apr 18, 2024
1 parent 61802a9 commit 17ef07a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import BaseShape from "./shared/base-shape";
import shape2 from "../shapes/ship2.json";

export default class Ship extends BaseShape {
export default class Player extends BaseShape {
/**
* @param eventEmitter {Observable}
* @param x {number}
Expand Down
4 changes: 2 additions & 2 deletions src/game/scenes/play.scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
SCREEN_HEIGHT,
SCREEN_WIDTH
} from "../utils/variables";
import Ship from "../components/ship";
import Player from "../components/player";
import Score from "../components/score";
import Modal from "../components/modal";
import Button from "../components/button";
Expand Down Expand Up @@ -60,7 +60,7 @@ export default class ScenePlay extends Scene {
this.currentGame = new GameLogic();

// player component
this.player = new Ship(
this.player = new Player(
this.eventEmitter,
SCREEN_WIDTH / 2,
SCREEN_HEIGHT / 2,
Expand Down
2 changes: 1 addition & 1 deletion test/utils/helpers.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {detectCollision, linearFunction, logFunction} from "../../src/game/utils/helpers";
import {detectCollision, linearFunction, logFunction} from "../../src/game/utils/math";

describe("Helpers", () => {
describe("Collisions", () => {
Expand Down

0 comments on commit 17ef07a

Please sign in to comment.