https://github.com/zchfvy/love2d-sockets-web
https://github.com/zchfvy/love2d-sockets-web
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zchfvy/love2d-sockets-web
- Owner: zchfvy
- Created: 2017-09-25T06:12:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-09T06:44:23.000Z (over 8 years ago)
- Last Synced: 2025-03-16T19:26:54.715Z (over 1 year ago)
- Language: Lua
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
An example of Networking in love.js
===================================
This is an example of how to use networking in [love.js](https://github.com/TannerRogalsky/love.js)
Usage
=====
First you must install [lua-websockets](https://github.com/lipp/lua-websockets) to run the server
To setup simply do the following:
```
git clone https://github.com/zchfvy/love2d-sockets-web.git
git clone https://github.com/TannerRogalsky/love.js.git
cd love2d-sockets-web
./build.py build
```
Next start the server:
```
lua ./websock.lua
```
And in a separate terminal start the client
```
./build.py run
```
Voila! A browser window should pop open with the example running.
Open more windows to test out he multiplayer aspect!