NIP
c90994574a
Add a coders exit to https://npeguin.github.io/coders-map/map.json
2020-05-28 11:56:47 +02:00
David Négrier
50e4a7013c
Merge pull request #133 from thecodingmachine/cleanup_namespace
...
Trying to trigger delete on correct branch
2020-05-27 23:20:30 +02:00
David Négrier
9dd5657148
Trying to trigger delete on correct branch
2020-05-27 23:20:12 +02:00
David Négrier
da1db983cd
Merge pull request #132 from thecodingmachine/cleanup_namespace
...
Fixing Docker again
2020-05-27 22:32:22 +02:00
David Négrier
04bd9ce9d5
Fixing Docker again
2020-05-27 22:30:53 +02:00
David Négrier
206ebc9669
Merge pull request #131 from thecodingmachine/cleanup_namespace
...
Fixing Docker reference to image
2020-05-27 22:28:35 +02:00
David Négrier
2b7a11dffc
Fixing Docker
2020-05-27 22:27:52 +02:00
David Négrier
f8a5769a38
Merge pull request #130 from thecodingmachine/cleanup_namespace
...
Adding cleanup action on delete
2020-05-27 22:25:58 +02:00
David Négrier
81024bbd5d
Adding cleanup action on delete
2020-05-27 22:20:08 +02:00
David Négrier
bab833760d
Merge pull request #129 from thecodingmachine/rework_login_scene
...
Adding a new SelectCharacterScene
2020-05-27 09:39:47 +02:00
David Négrier
f69f99f449
Adding localStorage for selected user
2020-05-26 22:26:50 +02:00
David Négrier
52e3b47cc1
Storing user name in local storage
2020-05-26 22:17:00 +02:00
David Négrier
f36bd240a7
Fix lint
2020-05-26 17:43:25 +02:00
David Négrier
0492dfdf3a
Fixing import
2020-05-26 17:37:26 +02:00
David Négrier
04a1f90ed5
Adding communication between LoginScene and SelectCharacterScene
2020-05-26 17:25:29 +02:00
David Négrier
5806e379c8
Fixing selection on keyboard after selection using mouse
2020-05-26 17:02:04 +02:00
David Négrier
da0d9fed87
Adding a new SelectCharacterScene
...
Taking what was done in the LoginScene regarding character selection and putting it in its own scene.
Also, making character selection possible via the keyboard.
2020-05-25 23:26:27 +02:00
David Négrier
a0ce57e582
Merge pull request #127 from thecodingmachine/remove_dead_code
...
Removing dead code from previous messaging system
2020-05-25 22:44:33 +02:00
David Négrier
21576946f0
Commenting out the notion of status in the GameManager
...
It seems to be useless
2020-05-25 22:37:07 +02:00
David Négrier
62cb8cca87
Also removing dead class
2020-05-25 22:36:44 +02:00
David Négrier
17e7f1b37a
Removing dead code from previous messaging system
...
Remvoing messages that were no more used in the new messaging system (the code used to handle the message that sent the position of all users on the front side)
2020-05-25 22:36:44 +02:00
David Négrier
0ade4daa99
Merge pull request #126 from thecodingmachine/typos
...
Fixing typos.
2020-05-24 23:29:05 +02:00
David Négrier
1fa39b0781
Fixing typos.
...
Replaced connexion with connection and LogincScene with LoginScene
2020-05-24 23:14:12 +02:00
David Négrier
b58eef6e7f
Merge pull request #124 from moufmouf/rename_maps_endpoint
...
Renaming /maps to /start-map
2020-05-24 22:58:06 +02:00
David Négrier
cd586a9e0c
Renaming /maps to /start-map
...
Closes #90
2020-05-24 22:53:10 +02:00
David Négrier
cd7763770e
Improving doc
2020-05-24 15:39:55 +02:00
David Négrier
7e6f34e780
Merge pull request #123 from thecodingmachine/map_instances
...
Adding a notion of instances per map
2020-05-23 21:48:10 +02:00
David Négrier
2448fef53a
Adding a notion of instances per mapAdding a notion of instances to room
...
The URL signature becomes:
https://workadventu.re/_/[instance]/[path_to_map.json]
This allows us to create many instances of the same map (and therefore to create several different worlds for different people)
An exit on a map can target another "instance" by passing the "exitInstance" property.
2020-05-23 17:45:49 +02:00
David Négrier
1f2b33baec
Merge pull request #120 from thecodingmachine/refactor_messages
...
Refactored and optimized messages
2020-05-23 17:25:18 +02:00
David Négrier
080e08eeef
Merge pull request #122 from thecodingmachine/reconnecting_scene
...
Adding a special scene to wait for server reconnection
2020-05-23 17:12:36 +02:00
David Négrier
948284ae5e
Merge pull request #121 from thecodingmachine/fix_mediatream_manage
...
Fix mediatream manage and connection server down
2020-05-23 17:12:10 +02:00
Gregoire Parant
f4ed2e52bf
Fix CI
2020-05-23 16:50:17 +02:00
Gregoire Parant
57e8c0261c
Fix test socket
2020-05-23 16:32:14 +02:00
David Négrier
e41eda9979
Prettifying lost connection screen
2020-05-23 16:13:37 +02:00
David Négrier
36858f8747
Adding a special scene to wait for server reconnection
2020-05-23 15:43:26 +02:00
Gregoire Parant
0c9cbca765
Use userId
generated by back end in all message
2020-05-23 15:04:25 +02:00
Gregoire Parant
ab32021fc0
Fix mediam stream manage and server back down
2020-05-23 14:00:36 +02:00
David Négrier
ab798b1c09
Changing the "Point" notion to add a notion of "moving" in addition to the notion of direction.
...
Also, refactoring JOIN_ROOM event to add complete position.
2020-05-22 23:04:45 +02:00
David Négrier
f44a44c109
Removing logs
2020-05-20 12:30:17 +02:00
David Négrier
fb8d7b5d59
Removing dead code
2020-05-19 19:53:26 +02:00
David Négrier
125a4d11af
Refactored and optimized messages
...
Now, when a user moves, only his/her position is sent back to the other users. The position of all users is not sent each time.
The messages sent to the browser are now:
- the list of all users as a return to the join_room event (you can send responses to events in socket.io)
- a "join_room" event sent when a new user joins the room
- a "user_moved" event when a user moved
- a "user_left" event when a user left the room
The GameScene tracks all these events and reacts accordingly.
Also, I made a number of refactoring in the classes and removed the GameSceneInterface that was useless (it was implemented by the LogincScene for no reason at all)
2020-05-19 19:11:12 +02:00
David Négrier
1e6f9bb8d9
Merge branch 'master' of github.com:thecodingmachine/workadventure into remove_userid
2020-05-18 18:40:10 +02:00
David Négrier
e934015d87
Refactoring searchClientById
...
searchClientById was scanning through all open sockets to find the right one (which is inefficient if we have many).
Instead, I created a new Map that directly maps ids to sockets.
Furthermore, this solves a long-standing issue (when a socket is disconnected, we cannot find it anymore in the sockets list but it is still available in the disconnect callback from the map)
As a result, we should not have any remaining circles any more.
2020-05-18 18:33:04 +02:00
David Négrier
ecd4c03b7c
Merge pull request #118 from thecodingmachine/remove_userid
...
Refactoring messages
2020-05-17 12:11:03 +02:00
David Négrier
2628373b56
Stricter compiler
2020-05-16 16:11:58 +02:00
David Négrier
1bbd0866cb
Code cleaning
2020-05-16 16:07:57 +02:00
David Négrier
57adc6b21c
Cleaning up tests
2020-05-16 15:58:20 +02:00
David Négrier
87707bc814
Removing broken import
2020-05-16 15:51:00 +02:00
David Négrier
b20357c1ee
Removing the Message class and merging it with MessageUserPosition (since it is only ever used it in MessageUserPosition)
...
Taking advantage of the TypeScript Constructor Assignment too to reduce the amount of code!
2020-05-16 15:44:45 +02:00
David Négrier
3b6ace03fa
Getting rid of roomId in Message class (this is not needed since all messages sent are for the room we are currently in)
2020-05-16 00:19:27 +02:00