mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
moved Box2D to Vendor
This commit is contained in:
parent
a6058ce3d3
commit
2c9658012f
9 changed files with 10880 additions and 5 deletions
|
|
@ -4,7 +4,7 @@ requirejs.config({
|
||||||
|
|
||||||
var inspector = {};
|
var inspector = {};
|
||||||
|
|
||||||
requirejs(["Client/Networker"], function(Networker) {
|
requirejs(["Client/Networker", "socket.io/socket.io.js"], function(Networker) {
|
||||||
var socket = io.connect(location.href);
|
var socket = io.connect(location.href);
|
||||||
var networker = new Networker(socket);
|
var networker = new Networker(socket);
|
||||||
|
|
||||||
|
|
|
||||||
1
lib/Chuck/Constants.js
Normal file
1
lib/Chuck/Constants.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Constants.js
|
||||||
BIN
lib/Vendor/.DS_Store
vendored
Normal file
BIN
lib/Vendor/.DS_Store
vendored
Normal file
Binary file not shown.
3
lib/Vendor/Box2D.js
vendored
Normal file
3
lib/Vendor/Box2D.js
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
define(["Vendor/Box2D/Box2D.js"], function() {
|
||||||
|
return Box2D;
|
||||||
|
})
|
||||||
10861
lib/Vendor/Box2D/Box2D.js
vendored
Normal file
10861
lib/Vendor/Box2D/Box2D.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
3
lib/Vendor/SocketIO.js
vendored
Normal file
3
lib/Vendor/SocketIO.js
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
define(["socket.io/socket.io.js"], function() {
|
||||||
|
return socket.io;
|
||||||
|
});
|
||||||
12
package.json
12
package.json
|
|
@ -1,12 +1,18 @@
|
||||||
{
|
{
|
||||||
"author": "logsol <fartman@gmx.de>",
|
|
||||||
"name": "chuck.js",
|
"name": "chuck.js",
|
||||||
|
"author": "logsol <fartman@gmx.de>",
|
||||||
|
"contributors": ["Jeena Paradies <spam@jeenaparadies.net> (http://jeena.net)"],
|
||||||
"description": "Multiplayer browser jump and run game",
|
"description": "Multiplayer browser jump and run game",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"homepage": "http://chuck.fuuuuu.de/",
|
"homepage": "http://chuck.fuuuuu.de/",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
"url": "https://github.com/logsol/chuck.js"
|
"url": "https://github.com/logsol/chuck.js"
|
||||||
},
|
},
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/logsol/chuck.js/issues",
|
||||||
|
"email": "fartman@gmx.de"
|
||||||
|
},
|
||||||
"main": "",
|
"main": "",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"socket.io": ">= 0.9.6",
|
"socket.io": ">= 0.9.6",
|
||||||
|
|
@ -17,5 +23,7 @@
|
||||||
"optionalDependencies": {},
|
"optionalDependencies": {},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "*"
|
"node": "*"
|
||||||
}
|
},
|
||||||
|
"config": { "port": "1234" },
|
||||||
|
"private": true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ var requirements = [
|
||||||
requirejs(requirements, function(HttpServer, Socket, Coordinator) {
|
requirejs(requirements, function(HttpServer, Socket, Coordinator) {
|
||||||
|
|
||||||
var options = {
|
var options = {
|
||||||
port: 1234,
|
port: process.env.npm_package_config_port,
|
||||||
rootDirectory: './',
|
rootDirectory: './',
|
||||||
caching: false
|
caching: false
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
<head>
|
<head>
|
||||||
<title>Chuck</title>
|
<title>Chuck</title>
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
|
||||||
<script src="/socket.io/socket.io.js"></script>
|
|
||||||
<script data-main="client" src="require.js"></script>
|
<script data-main="client" src="require.js"></script>
|
||||||
<style>
|
<style>
|
||||||
html, body {
|
html, body {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue