Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scilla-kickball
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
wildfirecode13
scilla-kickball
Commits
64d70ef7
Commit
64d70ef7
authored
Apr 19, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a3945893
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1116 additions
and
520 deletions
+1116
-520
BallItem.pfb
assets/prefabs/BallItem.pfb
+8
-0
BallItem.ts
assets/scripts/scenes/BallItem.ts
+3
-3
bundle.js
debug/bundle.js
+1103
-514
bundle.js.map
debug/bundle.js.map
+1
-1
CameraController.ts
node_modules/scilla-components/src/other/CameraController.ts
+1
-1
registerAllComponents.ts
node_modules/scilla-components/src/registerAllComponents.ts
+0
-1
No files found.
assets/prefabs/BallItem.pfb
View file @
64d70ef7
...
...
@@ -18,6 +18,14 @@
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "./scripts/scenes/BallItem",
"properties": {}
},
{
"script": "./scripts/scenes/BallItem",
"properties": {}
}
],
"children": [
...
...
assets/scripts/scenes/BallItem.ts
View file @
64d70ef7
...
...
@@ -3,10 +3,10 @@ import ScillaComponent from 'components/base/ScillaComponent';
import
{
Transform
}
from
'scilla-components/src'
;
export
default
class
BallItem
extends
ScillaComponent
{
speed
=
0
;
private
_
speed
=
0
;
onUpdate
()
{
const
{
entity
}
=
this
;
this
.
speed
+=
1.5
;
entity
.
getComponent
(
Transform
).
position
.
y
+=
this
.
speed
;
this
.
_
speed
+=
1.5
;
entity
.
getComponent
(
Transform
).
position
.
y
+=
this
.
_
speed
;
}
}
\ No newline at end of file
debug/bundle.js
View file @
64d70ef7
This diff is collapsed.
Click to expand it.
debug/bundle.js.map
View file @
64d70ef7
This diff is collapsed.
Click to expand it.
node_modules/scilla-components/src/other/CameraController.ts
View file @
64d70ef7
...
...
@@ -77,6 +77,6 @@ export default class CameraController extends ScillaComponent {
this
.
followPosition
.
setXY
(
width
/
2
,
height
/
2
).
subtract
(
this
.
targetPosition
);
position
.
copyFrom
(
math
.
lerpObj
(
position
,
this
.
followPosition
,
0.1
,
Vector2D
,
[
'x'
,
'y'
]));
//
position.copyFrom(math.lerpObj(position, this.followPosition, 0.1, Vector2D, ['x', 'y']));
}
}
node_modules/scilla-components/src/registerAllComponents.ts
View file @
64d70ef7
...
...
@@ -10,7 +10,6 @@ import TouchZoom from './animation/TouchZoom';
import
Wave
from
'./animation/Wave'
;
import
ZoomLoop
from
'./animation/ZoomLoop'
;
import
InteractComponent
from
'./base/InteractComponent'
;
import
ScillaComponent
from
'./base/ScillaComponent'
;
import
TouchInterrupt
from
'./base/TouchInterrupt'
;
import
Transform
from
'./base/Transform'
;
import
AjaxElementComponent
from
'./net/api/hdtool/base/AjaxElementComponent'
;
...
...
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