Skip to content

Commit

Permalink
fix util
Browse files Browse the repository at this point in the history
  • Loading branch information
wpowers42 committed Sep 15, 2023
1 parent 465864f commit 7bc4ee6
Show file tree
Hide file tree
Showing 28 changed files with 36 additions and 39 deletions.
2 changes: 1 addition & 1 deletion games/breakout/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion games/breakout/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Constants from './src/constants.js';
import Constants from './src/Constants.js';
import InputHandler from './src/InputHandler.js';
import StateMachine from './src/StateMachine.js';
import StartState from './src/states/StartState.js';
Expand Down
2 changes: 1 addition & 1 deletion games/breakout/src/Ball.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion games/breakout/src/Ball.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Mathf from "../../math/Mathf.js";
import Constants from "./constants.js";
import Constants from "./Constants.js";

export default class Ball {
width: number;
Expand Down
2 changes: 1 addition & 1 deletion games/breakout/src/Brick.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion games/breakout/src/Brick.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Constants from "./constants.js";
import Constants from "./Constants.js";
import ParticleSystem from "./ParticleSystem.js";

export default class Brick {
Expand Down
2 changes: 1 addition & 1 deletion games/breakout/src/Paddle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion games/breakout/src/Paddle.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Mathf from "../../math/Mathf.js";
import Constants from "./constants.js";
import Constants from "./Constants.js";
import InputHandler from "./InputHandler.js";

export default class Paddle {
Expand Down
4 changes: 2 additions & 2 deletions games/breakout/src/Util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions games/breakout/src/constants.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions games/breakout/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// constants.ts

import Util from "./util.js";
import Util from "./Util.js";

interface Sounds {
[key: string]: HTMLAudioElement;
Expand Down
2 changes: 1 addition & 1 deletion games/breakout/src/states/EnterHighScoreState.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion games/breakout/src/states/EnterHighScoreState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import BaseState from "./BaseState.js";

import InputHandler from "../InputHandler.js";
import StateMachine from "../StateMachine.js";
import Constants from "../constants.js";
import Constants from "../Constants.js";
import HighScores from "../HighScores.js";

import type { enterParams } from "../StateMachine";
Expand Down
2 changes: 1 addition & 1 deletion games/breakout/src/states/GameOverState.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion games/breakout/src/states/GameOverState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import BaseState from "./BaseState.js";

import InputHandler from "../InputHandler.js";
import StateMachine from "../StateMachine.js";
import Constants from "../constants.js";
import Constants from "../Constants.js";
import HighScores from "../HighScores.js";

import type { enterParams } from "../StateMachine";
Expand Down
2 changes: 1 addition & 1 deletion games/breakout/src/states/HighScoreState.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion games/breakout/src/states/HighScoreState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import BaseState from "./BaseState.js";

import InputHandler from "../InputHandler.js";
import StateMachine from "../StateMachine.js";
import Constants from "../constants.js";
import Constants from "../Constants.js";
import HighScores from "../HighScores.js";

export default class HighScoreState extends BaseState {
Expand Down
2 changes: 1 addition & 1 deletion games/breakout/src/states/PaddleSelectState.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion games/breakout/src/states/PaddleSelectState.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import BaseState from "./BaseState.js";
import InputHandler from "../InputHandler.js";
import Constants from '../constants.js';
import Constants from '../Constants.js';
import StateMachine from "../StateMachine.js";
import Paddle from "../Paddle.js";
import LevelMaker from "../LevelMaker.js";
Expand Down
4 changes: 2 additions & 2 deletions games/breakout/src/states/PlayState.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions games/breakout/src/states/PlayState.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import Ball from "../Ball.js";
import Constants from "../constants.js";
import Constants from "../Constants.js";
import InputHandler from "../InputHandler.js";
import Paddle from "../Paddle.js";
import BaseState from "./BaseState.js";

import Brick from "../Brick.js";
import StateMachine from "../StateMachine.js";
import * as Mathf from "../../../math/Mathf.js";
import Util from "../util.js";
import Util from "../Util.js";

import type { enterParams } from "../StateMachine";

Expand Down
4 changes: 2 additions & 2 deletions games/breakout/src/states/ServeState.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions games/breakout/src/states/ServeState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import StateMachine from "../StateMachine.js";
import Paddle from "../Paddle.js";
import Brick from "../Brick.js";
import Ball from "../Ball.js";
import Util from "../util.js";
import Constants from "../constants.js";
import Util from "../Util.js";
import Constants from "../Constants.js";

import type { enterParams } from "../StateMachine.js";

Expand Down
2 changes: 1 addition & 1 deletion games/breakout/src/states/StartState.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion games/breakout/src/states/StartState.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import BaseState from "./BaseState.js";
import InputHandler from "../InputHandler.js";
import Constants from '../constants.js';
import Constants from '../Constants.js';
import StateMachine from "../StateMachine.js";

export default class StartState extends BaseState {
Expand Down
4 changes: 2 additions & 2 deletions games/breakout/src/states/VictoryState.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions games/breakout/src/states/VictoryState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import Paddle from "../Paddle.js";
import StateMachine from "../StateMachine.js";
import BaseState from "./BaseState.js";
import LevelMaker from "../LevelMaker.js";
import Util from "../util.js";
import Constants from "../constants.js";
import Util from "../Util.js";
import Constants from "../Constants.js";

import type { enterParams } from "../StateMachine.js";

Expand Down
2 changes: 1 addition & 1 deletion games/breakout/src/util.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Constants from "./constants.js";
import Constants from "./Constants.js";

namespace Util {

Expand Down

0 comments on commit 7bc4ee6

Please sign in to comment.