Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
breakout
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lou.davilapr
breakout
Commits
6ef9c245
Commit
6ef9c245
authored
1 year ago
by
jeremy.gobet
Browse files
Options
Downloads
Patches
Plain Diff
Updated deps and fixed compilation error
parent
1c19b79d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package.json
+15
-15
15 additions, 15 deletions
package.json
src/scripts/bricks.ts
+4
-4
4 additions, 4 deletions
src/scripts/bricks.ts
with
19 additions
and
19 deletions
package.json
+
15
−
15
View file @
6ef9c245
...
...
@@ -11,25 +11,25 @@
"author"
:
""
,
"license"
:
""
,
"dependencies"
:
{
"
firebase
"
:
"
^
9.0
.1
"
,
"
phaser
"
:
"
^3.
55.2
"
"
firebase
"
:
"
^
10.8
.1
"
,
"
phaser
"
:
"
^3.
80.1
"
},
"devDependencies"
:
{
"
@babel/core
"
:
"
^7.2
0.5
"
,
"
@babel/preset-env
"
:
"
^7.2
0.2
"
,
"
@babel/preset-typescript
"
:
"
^7.
18.6
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^5.
45.1
"
,
"
@typescript-eslint/parser
"
:
"
^5.
45.1
"
,
"
babel-jest
"
:
"
^29.
3.1
"
,
"
@babel/core
"
:
"
^7.2
4.0
"
,
"
@babel/preset-env
"
:
"
^7.2
4.0
"
,
"
@babel/preset-typescript
"
:
"
^7.
23.3
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^5.
62.0
"
,
"
@typescript-eslint/parser
"
:
"
^5.
62.0
"
,
"
babel-jest
"
:
"
^29.
7.0
"
,
"
clean-webpack-plugin
"
:
"
^3.0.0
"
,
"
copy-webpack-plugin
"
:
"
^6.
0.2
"
,
"
eslint
"
:
"
^8.
29
.0
"
,
"
jest
"
:
"
^29.
3.1
"
,
"
ts-loader
"
:
"
^
7.0.5
"
,
"
copy-webpack-plugin
"
:
"
^6.
4.1
"
,
"
eslint
"
:
"
^8.
57
.0
"
,
"
jest
"
:
"
^29.
7.0
"
,
"
ts-loader
"
:
"
^
9.5.1
"
,
"
typescript
"
:
"
^3.9.5
"
,
"
webpack
"
:
"
^5.
75.0
"
,
"
webpack-cli
"
:
"
^5.
0.1
"
,
"
webpack-dev-server
"
:
"
^4.1
1
.1
"
,
"
webpack
"
:
"
^5.
90.3
"
,
"
webpack-cli
"
:
"
^5.
1.4
"
,
"
webpack-dev-server
"
:
"
^4.1
5
.1
"
,
"
webpack-merge
"
:
"
^4.2.2
"
}
}
This diff is collapsed.
Click to expand it.
src/scripts/bricks.ts
+
4
−
4
View file @
6ef9c245
// https://photonstorm.github.io/phaser3-docs/Phaser.GameObjects.GameObject.html
import
GameObject
=
Phaser
.
GameObjects
.
GameObject
;
export
default
class
Bricks
extends
Phaser
.
GameObjects
.
GameObject
{
group
:
Phaser
.
Physics
.
Arcade
.
StaticGroup
;
...
...
@@ -19,14 +21,12 @@ export default class Bricks extends Phaser.GameObjects.GameObject {
}
reset
()
{
this
.
group
.
children
.
each
((
brick
:
Phaser
.
Physics
.
Arcade
.
Image
)
=>
{
https
:
//photonstorm.github.io/phaser3-docs/Phaser.Physics.Arcade.Sprite.html#enableBody__anchor
this
.
group
.
children
.
entries
.
forEach
((
brick
:
Phaser
.
Physics
.
Arcade
.
Image
)
=>
{
brick
.
enableBody
(
false
,
0
,
0
,
true
,
true
);
})
;
})
}
hitBrick
(
ball
:
Phaser
.
Physics
.
Arcade
.
Image
,
brick
:
Phaser
.
Physics
.
Arcade
.
Image
)
{
// https://photonstorm.github.io/phaser3-docs/Phaser.Physics.Arcade.Sprite.html#disableBody__anchor
brick
.
disableBody
(
true
,
true
);
if
(
this
.
group
.
countActive
()
===
0
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment