diff --git a/common/game_basic.js b/common/game_basic.js
new file mode 100644
index 0000000..d7c1e6e
--- /dev/null
+++ b/common/game_basic.js
@@ -0,0 +1,24 @@
+class GameBasic {
+ constructor() {
+ let player = new Player(true);
+ let entities = [player];
+
+ for (let i = 0; i < 50; i++) {
+ entities.push(new Player())
+ }
+
+ this.player = player;
+ this.entities = entities;
+ }
+ main() {
+ let { entities } = this;
+
+ for (let ent of entities) {
+ ent.handleTick(this);
+ }
+ }
+ init() {
+ let that = this;
+ setInterval(function () { that.main() }, 1000 / 60);
+ }
+}
\ No newline at end of file
diff --git a/static/js/player.js b/common/player.js
similarity index 100%
rename from static/js/player.js
rename to common/player.js
diff --git a/index.js b/index.js
index 1d1fbf0..f2342b2 100644
--- a/index.js
+++ b/index.js
@@ -4,6 +4,8 @@ import expressW from "express-ws";
var app = express();
expressW(app);
+
+app.use('/js',express.static('./common'));
app.use(express.static('./static'));
app.ws('/', function (ws, req) {
diff --git a/static/index.html b/static/index.html
index 5688d67..099e061 100644
--- a/static/index.html
+++ b/static/index.html
@@ -21,6 +21,7 @@
+