Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roque
erp5
Commits
4a5688e9
Commit
4a5688e9
authored
Sep 28, 2022
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WEB-WORKER] [WIP] move all game logic into one file (WIP)
parent
27591e7d
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
364 additions
and
33 deletions
+364
-33
erp5_drone_simulator/PathTemplateItem/web_page_module/drone_web_worker_logic_js.js
...TemplateItem/web_page_module/drone_web_worker_logic_js.js
+354
-22
erp5_drone_simulator/PathTemplateItem/web_page_module/drone_web_worker_logic_js.xml
...emplateItem/web_page_module/drone_web_worker_logic_js.xml
+2
-2
erp5_drone_simulator/PathTemplateItem/web_page_module/drone_web_worker_map_manager_js.js
...teItem/web_page_module/drone_web_worker_map_manager_js.js
+4
-4
erp5_drone_simulator/PathTemplateItem/web_page_module/drone_web_worker_map_manager_js.xml
...eItem/web_page_module/drone_web_worker_map_manager_js.xml
+2
-2
erp5_drone_simulator/PathTemplateItem/web_page_module/drone_web_worker_web_worker_js.js
...ateItem/web_page_module/drone_web_worker_web_worker_js.js
+0
-1
erp5_drone_simulator/PathTemplateItem/web_page_module/drone_web_worker_web_worker_js.xml
...teItem/web_page_module/drone_web_worker_web_worker_js.xml
+2
-2
No files found.
erp5_drone_simulator/PathTemplateItem/web_page_module/drone_web_worker_logic_js.js
View file @
4a5688e9
This diff is collapsed.
Click to expand it.
erp5_drone_simulator/PathTemplateItem/web_page_module/drone_web_worker_logic_js.xml
View file @
4a5688e9
...
...
@@ -244,7 +244,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
1003.1
6062.13191.49442
</string>
</value>
<value>
<string>
1003.1
7389.58791.46523
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -262,7 +262,7 @@
</tuple>
<state>
<tuple>
<float>
16643
05860.06
</float>
<float>
16643
85697.54
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
erp5_drone_simulator/PathTemplateItem/web_page_module/drone_web_worker_map_manager_js.js
View file @
4a5688e9
...
...
@@ -59,7 +59,7 @@ var MapManager = /** @class */ (function () {
this
.
_lGoal
.
material
=
lGoalMat
;
this
.
_lGoal
.
computeWorldMatrix
(
true
);
//base is now a boat (special object)
ObstacleManager
.
Prefab
.
rotation
=
new
BABYLON
.
Vector3
(
20.4
,
0
,
0
);
/*
ObstacleManager.Prefab.rotation = new BABYLON.Vector3(20.4, 0, 0);
ObstacleManager.Prefab.scaling = new BABYLON.Vector3(15, 15, 15);
goalPart1 = new ObstacleManager("goal_1", scene);
goalPart1.setStartingPosition(goal_x, goal_y, goal_z);
...
...
@@ -74,7 +74,7 @@ var MapManager = /** @class */ (function () {
}, scene);
goalPart3.position = new BABYLON.Vector3(goal_x + 2.5, goal_y + 1.5, goal_z + 1.5);
goalPart3.rotation = new BABYLON.Vector3(0, 0, 0);
goalPart3
.
scaling
=
new
BABYLON
.
Vector3
(
1.5
,
3.5
,
1.5
);
goalPart3.scaling = new BABYLON.Vector3(1.5, 3.5, 1.5);
*/
// Obstacles
var
count
=
0
;
...
...
@@ -99,12 +99,12 @@ var MapManager = /** @class */ (function () {
'
diameterZ
'
:
obs
.
scale
.
z
},
scene
);
break
;
case
"
boat
"
:
/*
case "boat":
ObstacleManager.Prefab.rotation = new BABYLON.Vector3(obs.rotation.x, obs.rotation.y, obs.rotation.z);
ObstacleManager.Prefab.scaling = new BABYLON.Vector3(obs.scale.x * 2, obs.scale.y * 2, obs.scale.z * 2);
newObj = new ObstacleManager("obs_" + count, scene);
newObj.setStartingPosition(obs.position.x, obs.position.y, obs.position.z);
break
;
break;
*/
default
:
return
;
}
...
...
erp5_drone_simulator/PathTemplateItem/web_page_module/drone_web_worker_map_manager_js.xml
View file @
4a5688e9
...
...
@@ -244,7 +244,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
1002.5
4126.42371.36932
</string>
</value>
<value>
<string>
1002.5
9720.6150.16674
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -262,7 +262,7 @@
</tuple>
<state>
<tuple>
<float>
166
2993125
.49
</float>
<float>
166
4385627
.49
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
erp5_drone_simulator/PathTemplateItem/web_page_module/drone_web_worker_web_worker_js.js
View file @
4a5688e9
...
...
@@ -25,7 +25,6 @@ self.document = {
importScripts
(
'
babylon.js
'
,
'
babylon.gui.js
'
);
importScripts
(
'
rsvp.js
'
,
'
DroneManager.js
'
,
'
MapManager.js
'
,
'
ObstacleManager.js
'
,
'
gadget_erp5_page_game_logic.js
'
);
...
...
erp5_drone_simulator/PathTemplateItem/web_page_module/drone_web_worker_web_worker_js.xml
View file @
4a5688e9
...
...
@@ -244,7 +244,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
1003.160
39.18174.58350
</string>
</value>
<value>
<string>
1003.160
63.16360.1689
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -262,7 +262,7 @@
</tuple>
<state>
<tuple>
<float>
166430
5874.93
</float>
<float>
166430
6211.61
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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