mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
checked paths for inheritance in client
This commit is contained in:
parent
d8933dc9d3
commit
907ef49a53
8 changed files with 33 additions and 12 deletions
|
|
@ -1,9 +1,9 @@
|
|||
define([
|
||||
"Lib/Vendor/Box2D",
|
||||
"Game/Core/Collision/Detector"
|
||||
"Game/Core/Collision/Detector",
|
||||
"Lib/Vendor/Box2D"
|
||||
],
|
||||
|
||||
function (Box2D, Parent) {
|
||||
function (Parent, Box2D) {
|
||||
|
||||
function Detector (player) {
|
||||
Parent.call(this, player);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
define(["Game/Client/Control/Key"], function (Key) {
|
||||
define([
|
||||
"Game/Client/Control/Key"
|
||||
],
|
||||
|
||||
function (Key) {
|
||||
|
||||
function KeyboardInput (playerController) {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
define([
|
||||
"Lib/Vendor/Box2D",
|
||||
"Game/Core/GameController",
|
||||
"Lib/Vendor/Box2D",
|
||||
"Game/Client/Physics/Engine",
|
||||
"Game/Client/View/ViewController",
|
||||
"Game/Client/Control/PlayerController",
|
||||
|
|
@ -10,7 +10,7 @@ define([
|
|||
"Lib/Vendor/Stats"
|
||||
],
|
||||
|
||||
function (Box2D, Parent, PhysicsEngine, ViewController, PlayerController, NotificationCenter, requestAnimFrame, Settings, Stats) {
|
||||
function (Parent, Box2D, PhysicsEngine, ViewController, PlayerController, NotificationCenter, requestAnimFrame, Settings, Stats) {
|
||||
|
||||
function GameController () {
|
||||
this.viewController = new ViewController();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
define([
|
||||
"Game/Core/Protocol/Helper",
|
||||
"Game/Client/GameController",
|
||||
"Game/Core/User",
|
||||
"Game/Client/User",
|
||||
"Game/Core/NotificationCenter"
|
||||
],
|
||||
|
||||
|
|
|
|||
9
app/Game/Client/User.js
Normal file
9
app/Game/Client/User.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
define([
|
||||
"Game/Core/User"
|
||||
],
|
||||
|
||||
function(Parent) {
|
||||
|
||||
return Parent;
|
||||
|
||||
});
|
||||
|
|
@ -1,4 +1,9 @@
|
|||
define(['Lib/Vendor/Three', 'Game/Config/Settings'], function (Three, Settings) {
|
||||
define([
|
||||
'Lib/Vendor/Three',
|
||||
'Game/Config/Settings'
|
||||
],
|
||||
|
||||
function (Three, Settings) {
|
||||
|
||||
function CameraController () {
|
||||
this.zoom = 1;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
define(['Game/Config/Settings'], function (Settings) {
|
||||
define([
|
||||
'Game/Config/Settings'
|
||||
],
|
||||
|
||||
function (Settings) {
|
||||
|
||||
var DomController = {
|
||||
canvas: null,
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
define([
|
||||
"Lib/Vendor/Box2D",
|
||||
"Game/Core/Collision/Detector"
|
||||
"Lib/Vendor/Box2D"
|
||||
],
|
||||
|
||||
function (Box2D, Parent) {
|
||||
function (Box2D) {
|
||||
|
||||
function Detector () { // FIXME evtl.bind(this) ?
|
||||
this.listener = new Box2D.Dynamics.b2ContactListener();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue