Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-engine
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-engine
Commits
ce8909d2
Commit
ce8909d2
authored
May 26, 2020
by
任建锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--
parent
f76f34d4
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
491 additions
and
588 deletions
+491
-588
engine.js
debug/engine.js
+473
-584
engine.js.map
debug/engine.js.map
+1
-1
Loader.ts
src/2d/loader/Loader.ts
+2
-0
ObservablePoint.ts
src/2d/math/ObservablePoint.ts
+11
-2
EditorStage.ts
src/zeroing/game-warpper/EditorStage.ts
+1
-1
Image.ts
src/zeroing/game-warpper/nodes/Image.ts
+3
-0
No files found.
debug/engine.js
View file @
ce8909d2
This diff is collapsed.
Click to expand it.
debug/engine.js.map
View file @
ce8909d2
This diff is collapsed.
Click to expand it.
src/2d/loader/Loader.ts
View file @
ce8909d2
...
...
@@ -117,9 +117,11 @@ export class Loader extends EventDispatcher {
//console.log("覆盖原先数据:" + name);
}
this
.
caches
[
name
]
=
data
;
console
.
log
(
this
.
caches
)
}
get
(
name
:
string
)
{
console
.
log
(
this
.
caches
)
return
this
.
caches
[
name
];
}
}
...
...
src/2d/math/ObservablePoint.ts
View file @
ce8909d2
...
...
@@ -63,7 +63,12 @@ export class ObservablePoint extends HashObject {
set
x
(
value
)
{
if
(
this
.
_x
!==
value
)
{
this
.
_x
=
value
;
if
(
value
){
this
.
_x
=
value
;
}
else
{
this
.
_x
=
0
;
}
this
.
cb
.
call
(
this
.
scope
);
}
}
...
...
@@ -74,7 +79,11 @@ export class ObservablePoint extends HashObject {
set
y
(
value
)
{
if
(
this
.
_y
!==
value
)
{
this
.
_y
=
value
;
if
(
value
){
this
.
_y
=
value
;
}
else
{
this
.
_y
=
0
;
}
this
.
cb
.
call
(
this
.
scope
);
}
}
...
...
src/zeroing/game-warpper/EditorStage.ts
View file @
ce8909d2
...
...
@@ -141,7 +141,7 @@ export class EditorStage extends Node {
let
node
=
this
.
hitTestPoint
(
globalPos
,
true
);
//
console.log(globalPos.x, globalPos.y, node ? node.name : '');
console
.
log
(
globalPos
.
x
,
globalPos
.
y
,
node
?
node
.
name
:
''
);
return
node
;
}
...
...
src/zeroing/game-warpper/nodes/Image.ts
View file @
ce8909d2
...
...
@@ -36,6 +36,7 @@ export class Image extends Sprite implements IUIComponent {
private
updateSource
()
{
let
url
=
this
.
_source
;
if
(
url
)
{
if
(
url
.
indexOf
(
'://'
)
>=
0
)
{
//如果是有协议的地址
if
(
url
.
indexOf
(
assetScheme
)
===
0
)
{
...
...
@@ -47,6 +48,7 @@ export class Image extends Sprite implements IUIComponent {
}*/
if
(
editorMode
)
{
console
.
log
(
"assetResolver(url)"
,
assetResolver
(
url
))
url
=
assetResolver
(
url
);
}
}
...
...
@@ -63,6 +65,7 @@ export class Image extends Sprite implements IUIComponent {
}
private
_setSourceDirect
(
value
)
{
this
.
_source
=
value
;
this
.
updateSource
();
...
...
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