Commit Graph

2304 Commits

Author SHA1 Message Date
kevin
c809c91c25 first landingpage release 2020-06-01 13:09:23 +02:00
grégoire parant
9c3151a077
Merge pull request #138 from thecodingmachine/caching-bundle-webpack
Update strategy caching bundle front js files with webpack
2020-06-01 12:10:19 +02:00
Gregoire Parant
244f87196e Update strategy caching bundle front js files with webpack
- Add HtmlWebpackPlugin to use template index html
2020-06-01 11:53:12 +02:00
David Négrier
f2d7a9a732
Merge pull request #135 from thecodingmachine/track_server_load
Tracking nb users connected and server load
2020-05-28 22:09:52 +02:00
David Négrier
66ec11176b Tracking nb users connected and server load
When a user connects or disconnects on the server, we log this (along the current server load).
This is only temporary, in order to assess the number of users a server can safely handle before crashing.
2020-05-28 22:00:56 +02:00
David Négrier
763d988848
Merge pull request #134 from thecodingmachine/map-coders
Add a coders exit to https://npeguin.github.io/coders-map/map.json
2020-05-28 12:32:44 +02:00
NIP
5066e5ad4c Fix issue on start point 2020-05-28 12:19:46 +02:00
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