Hanusiak Piotr
29e44d3023
Player move API wip
2022-01-19 09:34:06 +01:00
Hanusiak Piotr
7ee41bad30
change setViewport action to set for CameraAPI
2022-01-14 11:41:37 +01:00
Hanusiak Piotr
d62b116e5d
merge setPosition and focusOn into setViewport
2022-01-13 16:08:16 +01:00
Hanusiak Piotr
a1c96b0524
merged develop
2022-01-13 10:44:06 +01:00
Benedicte Quimbert
99f9d56c5c
Updates room documentation for embeddedWebsite properties
2022-01-03 11:45:47 +01:00
Bénédicte Q
a69f232a06
Update front/src/Api/Events/IframeEvent.ts
...
Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
2022-01-03 11:45:47 +01:00
Bénédicte Q
adc71b5695
Update front/src/Api/Events/IframeEvent.ts
...
Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
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
516d756db1
Uses the current player position rather than the starting one to position iframe
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
David Négrier
90f7287860
Adding the ability to set the player's color outline via the scripting API
...
(currently not shared with the other players yet)
2021-12-21 17:02:53 +01:00
Hanusiak Piotr
5f26a39a5d
added basic WA.camera commands
2021-12-16 13:41:28 +01:00
Hanusiak Piotr
99ffb7b450
merged develop
2021-12-15 15:23:21 +01:00
Hanusiak Piotr
4d473480cf
enter and leave zone events
2021-12-08 13:18:06 +01:00
Bénédicte Q
e60ed68cd0
Update front/src/Api/Events/IframeEvent.ts
...
Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
2021-12-08 10:14:31 +01:00
Bénédicte Q
8a6ad40d6b
Update front/src/Api/Events/IframeEvent.ts
...
Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
2021-12-08 10:06:34 +01:00
Benedicte Quimbert
7eda8a45a7
Reverts adding scale to the camera updated event and uses it directly from the website manager
2021-11-26 14:46:02 +01:00
Benedicte Quimbert
f761858328
Refactoring and documentation update
2021-11-25 10:56:43 +01:00
Benedicte Quimbert
5b6a8ca4d7
Adds the camera to available APIs with retrieving of the worldView
2021-11-25 10:56:42 +01:00
Benedicte Quimbert
99dfd77600
WIP API updates for tutorial and more
2021-11-25 10:55:54 +01:00
Benedicte Quimbert
a22c2a09b8
Uses the current player position rather than the starting one to position iframe
2021-11-25 10:55:54 +01:00
Benedicte Quimbert
bf69b55e99
Creates player state and uses it to get and set values from local storage
2021-11-25 10:55:54 +01:00
Benedicte Quimbert
89cd292527
Allows to read and write "Player properties" from LocalStorage
2021-11-25 10:55:54 +01:00
David Négrier
2cbf5b56af
Fixing linting
2021-11-24 15:29:12 +01:00
Alexis Faizeau
934e24f837
Implement on enter/leave layer events
2021-10-29 19:44:58 +02:00
Alexis Faizeau
f84c4b3276
Refacto insert cowebsite
2021-10-25 19:00:26 +02:00
Alexis Faizeau
b81b1ff68b
Implement new cowbesite system on API
2021-10-25 19:00:26 +02:00
GRL
cf7bfe79ca
Refactor to only have one function registerMenuCommand
...
When selected custom menu is removed, go to settings menu
Allow iframe in custom menu to use Scripting API
Return menu object when it is registered, can call remove function on it
2021-08-27 10:34:03 +02:00
GRL
f3c4d344b3
Add iframe submenu by scripting API
...
Delete menu by scripting API
2021-08-24 17:35:06 +02:00
David Négrier
6b9b999996
Making embedded iframes scriptable using the WA.room.website namespace.
2021-08-05 12:37:05 +02:00
David Négrier
d1e5d57459
Changing the method name from "triggerMessage" to "displayActionMessage".
...
Generally speaking, I like to call the message at the bottom an "action message".
And things can "trigger" it, but in the case of a method that actually proactively displays the message, I find "displayActionMessage" to be a better name.
Also, removing package-lock files and improving code style
2021-08-05 09:17:33 +02:00
David Négrier
4713010929
Merge branch 'develop' of github.com:thecodingmachine/workadventure into trigger-message-refv3
2021-08-03 19:01:16 +02:00
GRL
73d589ad11
Load a json file that describe a tileset in Tile format.
...
Then add it to the tilemap of the GameScene
Then add if to the GameMap
2021-07-28 18:03:19 +02:00
David Négrier
cdd61bdb2c
Merging with develop
2021-07-23 16:41:38 +02:00
David Négrier
3d5c222957
Reverting changes regarding single quotes
2021-07-23 14:59:56 +02:00
David Négrier
86fa869b20
Actually using Type Guards in queries received by WA.
2021-07-06 10:26:44 +02:00
David Négrier
bf17ad4567
Switching setVariable to a query and fixing error hangling in query mechanism
2021-07-05 18:29:34 +02:00
David Négrier
c30de8c6db
Adding support for default variables values
2021-07-05 17:25:23 +02:00
David Négrier
62a4814961
Migrating WA.player.getCurrentUser and WA.room.getCurrentRoom to direct property access and WA.room.getMap
2021-07-05 11:53:33 +02:00
jonny
310e131a6e
eslint restart
2021-07-02 19:03:34 +02:00
jonny
369d453455
Merge remote-tracking branch 'remotes/upstream/develop' into trigger-message-refv3
2021-07-02 18:49:22 +02:00
David Négrier
ea1460abaf
Adding variables (on the front side for now)
2021-07-02 17:36:43 +02:00
David Négrier
5b4a72ea1f
Add new "query/answer" utility functions for the scripting API
...
So far, the scripting API was using events to communicate between WA and the iFrame.
But often, the scripting API might actually want to "ask" WA a question and wait for an answer.
We dealt with this by using 2 unrelated events (in a mostly painful way).
This commit adds a "queryWorkadventure" utility function in the iFrame API that allows us
to send a query, and to wait for an answer. The query and answer events have a unique ID to be
sure the answer matches the correct query.
On the WA side, a new `IframeListener.registerAnswerer` method can be used to register a possible answer.
2021-07-02 16:49:22 +02:00
GRL
e1611969ce
Merge branch 'develop' of github.com:thecodingmachine/workadventure into jonnytest1-tiles-start-positions
2021-07-02 14:35:28 +02:00
David Négrier
1e57028e6e
Renaming changeTile
to setTiles
2021-06-28 14:58:49 +02:00
jonny
7f61e9addd
Merge remote-tracking branch 'remotes/upstream/develop' into tiles-start-positions
2021-06-25 18:14:40 +02:00
jonny
5472d220ba
added trigger message code
2021-06-23 17:32:32 +02:00
GRL
24cc340cb9
Merge branch 'metadataScriptingApi' of github.com:thecodingmachine/workadventure into metadataScriptAPIV2
2021-06-23 12:02:29 +02:00