Nolway
8286cdd41d
Add WA.player.language in the API
2022-01-21 17:09:29 +01:00
Nolway
8a2767ef40
Implement Translator: i18n system
2022-01-21 17:09:29 +01:00
Hanusiak Piotr
9e5d8f5d9c
cr fixes
2022-01-19 10:37:56 +01:00
Hanusiak Piotr
1c4e803dd7
move to the nearest tile if possible
2022-01-18 12:33:46 +01:00
Hanusiak Piotr
67cd0dfb29
disable context menu. Move player only on left-click
2022-01-18 11:18:52 +01:00
Hanusiak Piotr
391fe7eed3
for pathfinding we are now taking into consideration all tiles, looking for 'collides' property
2022-01-18 10:26:40 +01:00
Hanusiak Piotr
7576cea7e0
removed obsolete comments. Pass path as reference
2022-01-17 16:11:08 +01:00
Hanusiak Piotr
3e81278e72
proper player movement on click
2022-01-17 16:04:59 +01:00
Hanusiak Piotr
e557e8ea72
player following the path wip
2022-01-17 14:36:00 +01:00
Hanusiak Piotr
77ee39110f
handle pointerup event
2022-01-17 11:52:02 +01:00
Hanusiak Piotr
28543be121
Player class is no longer dependent on UserInputManager
2022-01-17 11:37:28 +01:00
Hanusiak Piotr
173d10738d
created interface to implement for UserInputManager
2022-01-17 11:16:42 +01:00
Hanusiak Piotr
000b2cfe73
created PathfindingManager. WIP
2022-01-14 12:49:18 +01:00
David Négrier
82c2d21423
Merge pull request #1654 from thecodingmachine/feature-camera-management
...
Feature camera management
2022-01-14 11:57:05 +01:00
Hanusiak Piotr
7ee41bad30
change setViewport action to set for CameraAPI
2022-01-14 11:41:37 +01:00
Hanusiak Piotr
17e9c3c586
handle instant camera view change
2022-01-14 11:31:49 +01:00
Hanusiak Piotr
c2b2385e96
Camera now centers on focusable zone properly
2022-01-13 18:54:38 +01:00
Hanusiak Piotr
a164cedf3f
Camera FocusTarget width and height are now optional
2022-01-13 16:43:58 +01:00
Hanusiak Piotr
d99930a67e
save last zoom value if setting the camera viewport without locking it
2022-01-13 16:17:49 +01:00
Hanusiak Piotr
d62b116e5d
merge setPosition and focusOn into setViewport
2022-01-13 16:08:16 +01:00
David Négrier
57d2dec756
Merge pull request #1724 from thecodingmachine/master
...
Backport fix 2022-01-13
2022-01-13 15:59:54 +01:00
Hanusiak Piotr
a1c96b0524
merged develop
2022-01-13 10:44:06 +01:00
David Négrier
9425fd70c0
Adding a new property to prevent script from being loaded in "modules" mode
...
Scripts in module mode need to be abide by the Same Origin Policy (CORS headers are used to load them)
This can cause issues on some setups.
This commit adds a new "scriptDisableModuleSupport" that can be used to disable the "modules" mode.
Closes #1721
2022-01-12 17:36:31 +01:00
Hanusiak Piotr
905bd079ec
camera is now properly focusing on target when zooming, if any
2022-01-12 12:58:27 +01:00
Hanusiak Piotr
58af1f05f7
unlocking zooming with a delay when entering / leaving focusable zone
2022-01-12 12:08:11 +01:00
David Négrier
787cc508b8
Merge pull request #1708 from thecodingmachine/fix_firefox_private_browsing
...
Fixing WA crashing in Firefox private mode
2022-01-06 11:57:12 +01:00
David Négrier
d713c82568
Fixing WA crashing in Firefox private mode
...
Due to the way we now handle the browser cache, previously ignored errors in the Cache API were now explicitly thrown, preventing the loading of Firefox in private mode.
This commit fixes the issue and improves the stacktrace display of errors at the same time.
2022-01-06 11:55:43 +01:00
David Négrier
ab0f5e9837
Stopping sending literal errors
...
Errors now must be of "Error" type.
Rule added in eslint.
2022-01-06 10:52:06 +01:00
David Négrier
24baf5664c
All promises are now handled
2022-01-04 17:06:29 +01:00
David Négrier
bade2b41b6
Merge pull request #1693 from jonnytest1/patch-2
...
added columns type definition
2022-01-04 08:57:46 +01:00
David Négrier
4eb2ebd034
Merge pull request #1680 from workadventure-xce/fix/follow-via-keyboard
...
Fix follow requests via keyboard
2022-01-03 18:24:03 +01:00
David Négrier
fb69476b97
Merge pull request #1698 from thecodingmachine/ts-proto
...
Migrating front protobuf encode/decode to ts-proto lib
2022-01-03 18:07:19 +01:00
David Négrier
b0ee4fc633
Merge pull request #1696 from ngc4622/iframe-division-by-zero
...
ScaleManager: do not apply new size if width is zero
2022-01-03 16:01:01 +01:00
David Négrier
bf070c33b5
Migrating front protobuf encode/decode to ts-proto lib
...
The ts-proto lib has the huge advantage of producing code the "Typescript" way and not the "Java" way.
In particular, for "oneof" types in protobuf, it is generating "ADT" that can be used to check if we forgot or not to deal with a type.
2022-01-03 15:52:46 +01:00
Benedicte Quimbert
ac27ab7e3e
Revert "WIP enable/disable tutorial according to the map 'tutorial' property"
...
This reverts commit 47a6710b60e3856bf57c0700fe33bec95c6fc6dd.
2022-01-03 11:45:47 +01:00
Benedicte Quimbert
d9482d484b
WIP enable/disable tutorial according to the map 'tutorial' property
2022-01-03 11:45:47 +01:00
Benedicte Quimbert
3abc571e79
Corrects scale managing and camera event listening
2022-01-03 11:45:47 +01:00
Benedicte Quimbert
2a7c8f3786
Reverts adding scale to the camera updated event and uses it directly from the website manager
2022-01-03 11:45:47 +01:00
Benedicte Quimbert
1e073d8a0e
Refactoring and documentation update
2022-01-03 11:45:47 +01:00
Benedicte Quimbert
4356767739
Adds the camera to available APIs with retrieving of the worldView
2022-01-03 11:45:47 +01:00
Benedicte Quimbert
d672a2dead
WIP API updates for tutorial and more
2022-01-03 11:45:47 +01:00
Benedicte Quimbert
c53f0c6c8c
Fixes deleting SharedVariablesManager's close() function
2022-01-03 11:45:47 +01:00
Benedicte Quimbert
516d756db1
Uses the current player position rather than the starting one to position iframe
2022-01-03 11:45:47 +01:00
Benedicte Quimbert
3490daed6b
Creates player state and uses it to get and set values from local storage
2022-01-03 11:45:47 +01:00
Benedicte Quimbert
e025c1dc8e
Allows to read and write "Player properties" from LocalStorage
2022-01-03 11:45:47 +01:00
Tobias Tefke
0603d08572
ScaleManager: do not apply new size if width is zero
...
If the game width reaches zero (e.g by resizing a cowebsite manually),
a division by zero happens when calculating the new zoom.
This results in NaN, which causes phaser to reach an invalid state when rezooming.
2022-01-03 09:09:21 +01:00
jonnytest1
8cdbf382ad
added columns type definition
2021-12-31 15:55:17 +01:00
PizZaKatZe
5460bd49be
Fix follow requests via keyboard
2021-12-31 15:35:21 +01:00
David Négrier
36ce4f8f29
Merge pull request #1664 from Chasethechicken/layers
...
Add missing layer properties
2021-12-24 16:10:15 +01:00
David Négrier
d37165219c
Migrating followStates and followRoles from a const object to a type restricted to only the string values allowed.
...
This allows for more secure code (compilation checks) and simpler code too (we can pass strings instead of const values)
2021-12-24 15:49:25 +01:00