logsol / chuck.js Goto Github PK
View Code? Open in Web Editor NEWA fantastic multiplayer action browser game
Home Page: http://chuck-game.tumblr.com
A fantastic multiplayer action browser game
Home Page: http://chuck-game.tumblr.com
Networker - remove spawning from onJoinSuccess. create initital World update flag -> spawn
do this in order to give the server player a input controller
rename channel.sendCommandToAllUsers to broadcastCommand(..,..,except) where except is a optional user
out of physics
Now, when the server already runs, and you start the game server, it just quits without any message whatsoever and its hard to realize what is going on.
name, max players, max kills (deciding on winner and restarting)
try to implement a loader module without using jquery.
Add Event Notification Center and Trigger Mechanism
http://addyosmani.com/resources/essentialjsdesignpatterns/book/#observerpatternjavascript
rewrite Items class to work within the new game structure
maybe a health bar that appears when you get hit for a second.
Change all visible objects to GameObject which will have a visual and a physical representation inside. They will also render them selves and will live in a game pool.
look for "for(var c in options) " and rename
Check, if it would be better to use this shim configuration from require.js than the way of wrapping external js scripts we use in the current implementation.
shim: Configure the dependencies and exports for older, traditional "browser globals" scripts that do not use define() to declare the dependencies and set a module value.
Write a Pixi Filter to let grass grow over soil tiles
Refactor Box2d body creation management and structure. rethink,
who is calling who and when in order to create bodies needed.
maybe use a callback function like createBodyCallback(bodyDef, fixtureDef)
name, max players, max kills (deciding on winner and restarting)
networker -> client user relationship should be similar to channel -> server user
check if this.body in doll is not a b2Fixture by any chance
It is not really necessary.
please remove it from Keyboard Input classes
split between local and server detection
xyinput should be renamed to inputcontroller and then there should only be the subclasses for Keyboard/Mouse Input, GamePad Input and Touch for Mobile Applications.
a player controller should not implement an update function. only actual user events should be processed.
e.g. move should not have to trigger all the time, only when it changes. the doll should know if a key has or has not already been released and process the movement in its own update method.
this also means, that keyboardInput.getKeyFrameFunction does not make sense anymore.
When the framerate drops to a lower value, animation frames should be skipped.
the movieclip should not just jump to the next frame each step, but check, how much time has passed since the last step.
create a space for constants.
things like 'myFeet' that are stored in userData of the box2d bodies.
Rethink Useres, Clients, Players on server and client side
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.