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
ebe1877a
Commit
ebe1877a
authored
Jun 16, 2020
by
任建锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--
parent
bc556643
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
16 additions
and
20 deletions
+16
-20
.DS_Store
dist/.DS_Store
+0
-0
dragon-boat-race.json
dist/customs/dragon-boat-race.json
+3
-3
food-fell2.json
dist/customs/food-fell2.json
+1
-1
main.js
src/custom/dragon-boat-race/debug/main.js
+4
-4
main.js.map
src/custom/dragon-boat-race/debug/main.js.map
+1
-1
utils.ts
src/custom/dragon-boat-race/src/game/utils.ts
+4
-4
main.js
src/custom/food-fell2/debug/main.js
+1
-6
main.js.map
src/custom/food-fell2/debug/main.js.map
+1
-1
GameView.ts
src/custom/food-fell2/src/game/GameView.ts
+1
-0
No files found.
dist/.DS_Store
View file @
ebe1877a
No preview for this file type
dist/customs/dragon-boat-race.json
View file @
ebe1877a
This diff is collapsed.
Click to expand it.
dist/customs/food-fell2.json
View file @
ebe1877a
This diff is collapsed.
Click to expand it.
src/custom/dragon-boat-race/debug/main.js
View file @
ebe1877a
...
...
@@ -15,17 +15,16 @@
//# sourceMappingURL=props.js.map
function
getTexture
(
uuid
)
{
return
engine
.
Texture
.
from
(
engine
.
getAssetByUUID
(
uuid
).
uuid
);
return
engine
.
Texture
.
from
(
getAssetByUUID
(
uuid
).
uuid
);
}
function
getTextureByName
(
name
)
{
return
getTexture
(
engine
.
getAssetByName
(
name
).
uuid
);
return
getTexture
(
getAssetByName
(
name
).
uuid
);
}
function
createSvga
(
name
,
anchorName
)
{
var
inst
=
new
svga
.
Svga
();
inst
.
source
=
'asset://'
+
engine
.
getAssetByName
(
name
).
uuid
;
inst
.
source
=
'asset://'
+
getAssetByName
(
name
).
uuid
;
return
inst
;
}
//# sourceMappingURL=utils.js.map
var
Goods
=
(
function
(
_super
)
{
tslib
.
__extends
(
Goods
,
_super
);
...
...
@@ -446,6 +445,7 @@
};
return
GameView
;
}(
engine
.
Container
));
//# sourceMappingURL=GameView.js.map
var
GameWrapper
=
(
function
(
_super
)
{
tslib
.
__extends
(
GameWrapper
,
_super
);
...
...
src/custom/dragon-boat-race/debug/main.js.map
View file @
ebe1877a
This diff is collapsed.
Click to expand it.
src/custom/dragon-boat-race/src/game/utils.ts
View file @
ebe1877a
...
...
@@ -3,18 +3,18 @@
*/
export
function
getTexture
(
uuid
)
{
return
engine
.
Texture
.
from
(
engine
.
getAssetByUUID
(
uuid
).
uuid
);
return
engine
.
Texture
.
from
(
getAssetByUUID
(
uuid
).
uuid
);
}
export
function
getTextureByName
(
name
)
{
return
getTexture
(
engine
.
getAssetByName
(
name
).
uuid
);
return
getTexture
(
getAssetByName
(
name
).
uuid
);
}
export
function
playSound
(
name
)
{
engine
.
playSound
(
engine
.
getAssetByName
(
name
).
uuid
,
{
keep
:
true
});
engine
.
playSound
(
getAssetByName
(
name
).
uuid
,
{
keep
:
true
});
}
export
function
createSvga
(
name
,
anchorName
?)
{
let
inst
=
new
svga
.
Svga
();
inst
.
source
=
'asset://'
+
engine
.
getAssetByName
(
name
).
uuid
;
inst
.
source
=
'asset://'
+
getAssetByName
(
name
).
uuid
;
return
inst
;
}
\ No newline at end of file
src/custom/food-fell2/debug/main.js
View file @
ebe1877a
...
...
@@ -12,7 +12,6 @@
function
injectProps
(
p
)
{
engine
.
injectProp
(
props
,
p
);
}
//# sourceMappingURL=props.js.map
function
getTexture
(
uuid
)
{
return
engine
.
Texture
.
from
(
getAssetByUUID
(
uuid
).
uuid
);
...
...
@@ -106,7 +105,6 @@
});
return
Goods
;
}(
engine
.
Container
));
//# sourceMappingURL=Goods.js.map
var
ObjectPool
=
engine
.
ObjectPool
;
var
PoolName
=
'goods'
;
...
...
@@ -115,7 +113,6 @@
},
function
(
item
,
data
)
{
item
.
reset
();
});
//# sourceMappingURL=object-pool-init.js.map
var
ObjectPool$1
=
engine
.
ObjectPool
;
var
GameView
=
(
function
(
_super
)
{
...
...
@@ -200,6 +197,7 @@
};
GameView
.
prototype
.
reset
=
function
()
{
this
.
recycleGoods
();
this
.
player
.
x
=
375
-
this
.
player
.
width
/
2
;
};
GameView
.
prototype
.
start
=
function
()
{
var
_this
=
this
;
...
...
@@ -350,7 +348,6 @@
};
return
GameView
;
}(
engine
.
Container
));
//# sourceMappingURL=GameView.js.map
var
GameWrapper
=
(
function
(
_super
)
{
tslib
.
__extends
(
GameWrapper
,
_super
);
...
...
@@ -393,7 +390,6 @@
};
return
GameWrapper
;
}(
engine
.
Container
));
//# sourceMappingURL=GameWrapper.js.map
function
index
(
props
)
{
prepareProps
();
...
...
@@ -401,7 +397,6 @@
var
instance
=
new
GameWrapper
();
return
instance
;
}
//# sourceMappingURL=index.js.map
return
index
;
...
...
src/custom/food-fell2/debug/main.js.map
View file @
ebe1877a
This diff is collapsed.
Click to expand it.
src/custom/food-fell2/src/game/GameView.ts
View file @
ebe1877a
...
...
@@ -141,6 +141,7 @@ export default class GameView extends engine.Container {
*/
reset
()
{
this
.
recycleGoods
()
this
.
player
.
x
=
375
-
this
.
player
.
width
/
2
;
}
/**
...
...
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