Skip to content

Commit

Permalink
first changes
Browse files Browse the repository at this point in the history
  • Loading branch information
digitsensitive committed Apr 21, 2023
1 parent dc85894 commit 3db42f7
Show file tree
Hide file tree
Showing 12 changed files with 220 additions and 175 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

---

## [1.2.7] - 2023-04-21

### Changed

- Update most dependencies in `./` and `./example`
- Update Copyright to 2013 in different locations
- Small optimization in `grid.ts`

---

## [1.2.6] - 2023-01-31

### Changed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ More informations about the format options can be found [here](https://prettier.

[MIT License](https://opensource.org/licenses/mit-license.php)

Copyright (c) 2017 - 2020 digitsensitive <[email protected]>
Copyright (c) 2017 - 2023 digitsensitive <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions example/game.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @description Main Game Class
* @author Digitsensitive <[email protected]>
* @copyright 2019 - 2020 Digitsensitive
* @copyright 2019 - 2023 Digitsensitive
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/

Expand Down Expand Up @@ -32,5 +32,5 @@ export class Game extends Phaser.Game {

// when the page is loaded, create our game instance
window.addEventListener('load', () => {
var game = new Game(config);
const game = new Game(config);
});
2 changes: 1 addition & 1 deletion example/objects/gameobject.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @description Gameobject class
* @author Digitsensitive <[email protected]>
* @copyright 2020 Digitsensitive
* @copyright 2019 - 2023 Digitsensitive
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/

Expand Down
8 changes: 4 additions & 4 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
},
"devDependencies": {
"@types/dat.gui": "0.7.7",
"expose-loader": "4.0.0",
"expose-loader": "4.1.0",
"ts-loader": "9.4.2",
"typescript": "4.9.5",
"webpack": "5.75.0",
"typescript": "5.0.4",
"webpack": "5.80.0",
"webpack-cli": "5.0.1",
"webpack-dev-server": "4.11.1"
"webpack-dev-server": "4.13.3"
},
"dependencies": {
"phaser": "3.55.2",
Expand Down
2 changes: 1 addition & 1 deletion example/scenes/boot-scene.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @description Boot Scene
* @author Digitsensitive <[email protected]>
* @copyright 2020 Digitsensitive
* @copyright 2019 - 2023 Digitsensitive
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/

Expand Down
2 changes: 1 addition & 1 deletion example/scenes/main-scene.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @description Main Scene
* @author Digitsensitive <[email protected]>
* @copyright 2019 - 2020 Digitsensitive
* @copyright 2019 - 2023 Digitsensitive
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/

Expand Down
2 changes: 1 addition & 1 deletion example/services/dat-gui.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @author Digitsensitive <[email protected]>
* @copyright 2020 digitsensitive
* @copyright 2019 - 2023 digitsensitive
* @description Dat.Gui Service
* dat.gui is a lightweight controller library for JavaScript.
* https://github.com/dataarts/dat.gui
Expand Down
347 changes: 193 additions & 154 deletions example/yarn.lock

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions lib/core/grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,7 @@ export class Grid {
*/
for (let y = 0; y < height; y++) {
for (let x = 0; x < width; x++) {
if (matrix[y][x]) {
newGrid[y][x].setIsWalkable(false);
} else {
newGrid[y][x].setIsWalkable(true);
}
newGrid[y][x].setIsWalkable(matrix[y][x] ? false : true);
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"lodash": "4.17.21"
},
"devDependencies": {
"typescript": "4.9.5"
"typescript": "5.0.4"
},
"repository": {
"type": "git",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ [email protected]:
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==

typescript@4.9.5:
version "4.9.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
typescript@5.0.4:
version "5.0.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b"
integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==

0 comments on commit 3db42f7

Please sign in to comment.