Skip to content
Browse files

Fix roaming area

  • Loading branch information...
1 parent d47d5f2 commit 15cb0d8af5896091ef8710db41016c90fc6bba58 @Seldaek committed Nov 21, 2012
Showing with 6 additions and 2 deletions.
  1. +4 −0 README.md
  2. +2 −2 js/node.js
View
4 README.md
@@ -10,6 +10,10 @@ The Game Off's only restriction was the use of one of those words in the game co
I set out to imagine a game where your only way of moving is to fork/branch out, and this is what came out of it.
+![](https://dl.dropbox.com/u/1634226/split/screenshot0.png)
+![](https://dl.dropbox.com/u/1634226/split/screenshot1.png)
+![](https://dl.dropbox.com/u/1634226/split/screenshot2.png)
+
# Tools
No external libs are used for the core of the game. The game is simple enough that it does not require (and also does not really fit) the use of a game engine to render elements or track the game logic. I figured one can handle this with the browser APIs alone these days, plus it was a good learning exercise.
View
4 js/node.js
@@ -42,13 +42,13 @@ Node.prototype.tick = function (multiplier) {
if ((this.x > this.matrix.w - 3) || (this.x < 3)) {
this.bounce();
}
- } else if (this.mappedY > this.matrix.h - 20) {
+ } else if (this.mappedY > this.matrix.h - 40) {
// speed up nodes if their vector is normalized and they fly too low
this.speed = this.baseSpeed * (1.1 + Math.random() * 0.2);
}
// slow down nodes if they are too high
- if (this.mappedY < this.matrix.h - 100) {
+ if (this.mappedY < this.matrix.h - 140) {
this.speed = this.baseSpeed * (1 - Math.random() * 0.2);
}

0 comments on commit 15cb0d8

Please sign in to comment.
Something went wrong with that request. Please try again.