madbence / spacegame Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://spacegame.danyi.me
Home Page: http://spacegame.danyi.me
Right now, the server does not store the application data.
Based on #12 implement user-management using Mongo and a REST API.
there should be a config.js
file, where all configuration variables are assigned.
Strength should be 0-1, scaled with a hardcoded value
i mean it took me 2 seconds to come up with spacegame
, but i guess we can do better ๐บ
Introduced by #72
it looks great ๐ซ
Obvious choice is Vagrant.
Eg. remove explosions from renderer after they disappear.
It should support multiple providers:
It seems that sync is not that simple
Some events happen as a result of some other action(s). Like a ship is destroyed, etc. Right now, in the handleCollisions
reducer, every event (projectile is destroyed, ship is destroyed) is appended to state.events
. There might be a better way to handle this.
@gerawba feel free to comment ๐
ADD_MESSAGE
SYNC_MESSAGES
CLIENT_JOIN
CLIENT_PART
todo
They are highly coupled, simulation (business logic) should be separated from websocket (transport mechanism).
istanbul
& isparta
players might drift away from each other quickly, but they should be able to find each other again
i think we should implement a simple review process before merging pull requests
for daily work, our team (@purposeindustries) developed a similar, very simple process:
review-needed
label on it (it should pass travis tests)review-needed
label, puts ready-to-merge
labelmaster
& fast-forwards master
feedback is welcomed ๐ @Thegaram
Create some mockups, etc...
../../../foo/bar
is ugly. there are several options to simplify this:
eg node_modules/server -> src/server
, so everything can be imported like server/x/y
or client/x/y
etc. this works on windows too afaik. setup is a bit fragile, since you need a postinstall
script that links stuff.
eg. move src/server
to node_modules/server
(and add them to git), etc. makes dep reinstall quite hard, since you usually just do $ rm -rf node_modules && npm i
.
$NODE_PATH
set $NODE_PATH
to src
. this might work on windows too, but i'm not sure that the syntax is supported (eg. $ NODE_PATH=./src babel-node src/server/app
)
modules can be installed from local directories, but then we have to maintain their own package.json
files, etc.
i have experience with the symlink approach, it definitely works. i have tried also local modules and simple submodules, but they are weird (but they do work). i was not aware about $NODE_PATH
until a few months, but it looks nice (if it works on windows).
Thrusters should behave like in real life, they apply both force and torque to the ship.
Maybe adjust some rules if needed
they might become relevant later (eg. they might deal constant damage to ships inside them), also rendering the scene becomes simpler with this.
see #142
it might be refactored into something more general:
type Ship = {
shield: Shield | null
}
type Shield = {
ttl: number,
}
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.