Skip to content

Commit

Permalink
feat: Gaming: organize code #12
Browse files Browse the repository at this point in the history
  • Loading branch information
201flaviosilva committed Sep 21, 2022
1 parent 96ff772 commit a86f4b2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/Objects/Snake/Player.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import GlobalConfigs from "../../Configs";
import EventSystem, { EVENTS_NAMES } from "./EventSystem";
import EventSystem, { EVENTS_NAMES } from "../Common/EventSystem";

const DIRECTIONS = {
UP: "up",
Expand Down
4 changes: 2 additions & 2 deletions src/Scenes/GamePlay/Gaming.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { range, randomInt } from "201flaviosilva-utils";
import GlobalConfigs from "../../Configs";
import DebugFPS from "../../Components/DebugFPS";
import Button from "../../Components/Button";
import UpdateScoreLabel from "../../Objects/Snake/UpdateScoreLabel";
import UpdateScoreLabel from "../../Objects/Common/UpdateScoreLabel";

import { TextStyle } from "../../Theme";

import Player from "../../Objects/Gaming/Player";
import EnemyGroup from "../../Objects/Gaming/Enemy";
import EventSystem, { EVENTS_NAMES } from "../../Objects/Snake/EventSystem";
import EventSystem, { EVENTS_NAMES } from "../../Objects/Common/EventSystem";

export default class Gaming extends Phaser.Scene {
constructor() {
Expand Down
4 changes: 2 additions & 2 deletions src/Scenes/GamePlay/SnakeAll.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { range, randomInt } from "201flaviosilva-utils";
import GlobalConfigs from "../../Configs";
import DebugFPS from "../../Components/DebugFPS";
import Button from "../../Components/Button";
import EventSystem, { EVENTS_NAMES } from "../../Objects/Snake/EventSystem";
import EventSystem, { EVENTS_NAMES } from "../../Objects/Common/EventSystem";

import { TextStyle } from "../../Theme";

import UpdateScoreLabel from "../../Objects/Snake/UpdateScoreLabel";
import UpdateScoreLabel from "../../Objects/Common/UpdateScoreLabel";
import Player from "../../Objects/Snake/Player";
import Apple from "../../Objects/Snake/Apple";

Expand Down

0 comments on commit a86f4b2

Please sign in to comment.