Skip to content

Commit

Permalink
setup plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Mar 24, 2018
0 parents commit 36549cd
Show file tree
Hide file tree
Showing 15 changed files with 7,691 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
node_modules
21 changes: 21 additions & 0 deletions LICENSE
@@ -0,0 +1,21 @@
Copyright (c) 2018 Endel Dreyer

MIT License:

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
13 changes: 13 additions & 0 deletions README.md
@@ -0,0 +1,13 @@
# colyseus-construct3

Colyseus Multiplayer Client Plugin for Construct3.

## Development

- Install the dependencies. (`npm install`)
- Run Chrome without "same origin policy" (`npm run chrome`)
- Start the development server (`npm start`)

## License

MIT
11 changes: 11 additions & 0 deletions development-server.py
@@ -0,0 +1,11 @@
#!/usr/bin/env python2
from SimpleHTTPServer import SimpleHTTPRequestHandler
import BaseHTTPServer

class CORSRequestHandler (SimpleHTTPRequestHandler):
def end_headers (self):
self.send_header('Access-Control-Allow-Origin', '*')
SimpleHTTPRequestHandler.end_headers(self)

if __name__ == '__main__':
BaseHTTPServer.test(CORSRequestHandler, BaseHTTPServer.HTTPServer)
188 changes: 188 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions package.json
@@ -0,0 +1,16 @@
{
"name": "colyseus-construct3",
"version": "0.0.0",
"description": "Colyseus Multiplayer Client Plugin for Construct3.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "http-server -p 49152 --cors",
"chrome": "open -a Google\ Chrome --args --disable-web-security --user-data-dir"
},
"author": "Endel Dreyer",
"license": "MIT",
"devDependencies": {
"http-server": "^0.11.1"
}
}
39 changes: 39 additions & 0 deletions plugin/aces.json
@@ -0,0 +1,39 @@
{
"custom": {
"conditions": [
{
"id": "is-large-number",
"scriptName": "IsLargeNumber",
"highlight": true,
"params": [
{
"id": "number",
"type": "number"
}
]
}
],
"actions": [
{
"id": "do-alert",
"scriptName": "Alert",
"highlight": true
}
],
"expressions": [
{
"id": "double",
"expressionName": "Double",
"scriptName": "Double",
"highlight": true,
"returnType": "number",
"params": [
{
"id": "number",
"type": "number"
}
]
}
]
}
}
27 changes: 27 additions & 0 deletions plugin/addon.json
@@ -0,0 +1,27 @@
{
"is-c3-addon": true,
"type": "plugin",
"name": "Colyseus Multiplayer Client",
"id": "Colyseus",
"version": "0.7.4.0",
"author": "Endel Dreyer",
"website": "http://gamestd.io/colyseus/",
"documentation": "http://github.com/gamestdio/colyseus/wiki",
"description": "Colyseus Multiplayer Game Client",
"editor-scripts": [
"plugin.js",
"type.js",
"instance.js"
],
"file-list": [
"c2runtime/runtime.js",
"lang/en-US.json",
"aces.json",
"addon.json",
"icon.png",
"instance.js",
"plugin.js",
"type.js",
"build/colyseus.js"
]
}

0 comments on commit 36549cd

Please sign in to comment.