Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-libs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-libs
Commits
3189f01b
Commit
3189f01b
authored
Jul 14, 2021
by
rockyl
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
9c4140e5
e429ce50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
GameView.ts
src/custom/seabed-game/src/game/GameView.ts
+8
-2
No files found.
src/custom/seabed-game/src/game/GameView.ts
View file @
3189f01b
...
...
@@ -84,7 +84,10 @@ export default class GameView extends engine.Container {
// light.y = 44;
// gameNode.addChild(light);
let
basket_bottom
=
this
.
_basket_bottom
=
new
engine
.
Sprite
(
getTextureByName
(
'basket_bottom'
));
let
basket_bottom
=
this
.
_basket_bottom
=
new
engine
.
Sprite
(
engine
.
Texture
.
fromImage
(
resData
.
basketBottomImg
));
if
(
!
basket_bottom
||
!
this
.
_basket_bottom
){
basket_bottom
=
this
.
_basket_bottom
=
new
engine
.
Sprite
(
getTextureByName
(
'basket_bottom'
));
}
basket_bottom
.
x
=
286.5
;
basket_bottom
.
y
=
85
;
gameNode
.
addChild
(
basket_bottom
);
...
...
@@ -138,7 +141,10 @@ export default class GameView extends engine.Container {
// rect.addChild(toast);
this
.
startHandle
();
let
basket_top
=
this
.
_basket_top
=
new
engine
.
Sprite
(
getTextureByName
(
'basket_top'
));
let
basket_top
=
this
.
_basket_top
=
new
engine
.
Sprite
(
engine
.
Texture
.
fromImage
(
resData
.
basketTopImg
));
if
(
!
basket_top
||
!
this
.
_basket_top
){
basket_top
=
this
.
_basket_top
=
new
engine
.
Sprite
(
getTextureByName
(
'basket_top'
));
}
basket_top
.
x
=
287
;
basket_top
.
y
=
485
;
this
.
addChild
(
basket_top
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment