From: dsc Date: Tue, 7 Dec 2010 13:38:52 +0000 (-0800) Subject: Restructures webroot files. X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=7fbef3c2c5d0ef7a6c77cc989ec9cd27be7de11f;p=tanks.git Restructures webroot files. --- diff --git a/doc/notes.md b/doc/notes.md index 38cd78e..2c03c50 100644 --- a/doc/notes.md +++ b/doc/notes.md @@ -1,24 +1,19 @@ # Bugs -- Tanks seem to get stuck on some corners # TODOs -- change @require to @ensure -- AI: Don't shoot if it'll kill you or your friends - AI: Lead shots on moving targets - Config-driven unit-types (name, stats, properties; pointers to behavior scripts, assets) -- DSL for AI scripts -- Countdown to start -- User system (so I know whose scripts are whose) - Game scoring -- Move game objects into namespace `tanks` -- Move portal into namespace (ideas: `portal`, canvas tools... `easel`, or `ezl`) - Support touch events (for iPad?) - Migrate A* code into PathMap -# Notes +# Code Notes - Replace *2 and /2 with shifts at compile-time - Clipping will suck (masking is easy -- overflow:hidden) - Classes should have generalize()-ed version of instance methods on them. + +# Other Notes +- GA for littlestbattletanks.com: UA-20115336-1 diff --git a/index.php b/index.php deleted file mode 100644 index 6fe8590..0000000 --- a/index.php +++ /dev/null @@ -1,78 +0,0 @@ - - - -The Littlest Battletank - - - - - - -
- -
-
-

The Littlest Battletank

- -

How To Play

- -
    -
  • Move your tank with wasd or the arrow keys.
  • -
  • Use the mouse to aim; click to shoot (or press spacebar).
  • -
  • Press enter to pause.
  • -
- -

Click anywhere to start!

-
-
- - - -
- - - -
-&1"); - echo "\n-->\n"; - - include "tags.html"; -?> -
- - - \ No newline at end of file diff --git a/src/tanks/thing/tank.cjs b/src/tanks/thing/tank.cjs index e029781..c166ff5 100644 --- a/src/tanks/thing/tank.cjs +++ b/src/tanks/thing/tank.cjs @@ -86,7 +86,7 @@ Thing.subclass('Tank', function(Tank){ var ai = this.ai; // Check to see if we should obey our last decision, and not recalc - if ( this.forceCurrentMove && this.forceCurrentMove() && this.currentMoveLimit > NOW ) { + if (this.forceCurrentMove && this.forceCurrentMove() && this.currentMoveLimit > NOW) { this.continueMove(); return this; } else @@ -94,7 +94,7 @@ Thing.subclass('Tank', function(Tank){ // Try to shoot down nearby bullets - if ( ai.shootIncoming.ready && this.ableToShoot() ) { + if (ai.shootIncoming.ready && this.ableToShoot()) { var bs = this.willCollide( this.findNearLike(25, isBullet) ); // console.log('['+TICKS+':'+this.id, this, '] Shoot down bullets?', bs.size() && bs); if ( bs.size() ) { diff --git a/www/build b/www/build new file mode 120000 index 0000000..ab18017 --- /dev/null +++ b/www/build @@ -0,0 +1 @@ +../build \ No newline at end of file diff --git a/css/log.css b/www/css/log.css similarity index 100% rename from css/log.css rename to www/css/log.css diff --git a/css/lttl.css b/www/css/lttl.css similarity index 100% rename from css/lttl.css rename to www/css/lttl.css diff --git a/css/reset-old.css b/www/css/reset-old.css similarity index 100% rename from css/reset-old.css rename to www/css/reset-old.css diff --git a/css/reset.css b/www/css/reset.css similarity index 100% rename from css/reset.css rename to www/css/reset.css diff --git a/css/reset.min.css b/www/css/reset.min.css similarity index 100% rename from css/reset.min.css rename to www/css/reset.min.css diff --git a/css/test.css b/www/css/test.css similarity index 100% rename from css/test.css rename to www/css/test.css diff --git a/index.html b/www/debug.html similarity index 67% rename from index.html rename to www/debug.html index fcf29d6..49c699b 100644 --- a/index.html +++ b/www/debug.html @@ -1,31 +1,3 @@ - - - -The Littlest Battletank - - - - - - -
- -
-
-

The Littlest Battletank

- -

How To Play

- -
    -
  • Move your tank with wasd or the arrow keys.
  • -
  • Use the mouse to aim; click to shoot (or press spacebar).
  • -
  • Press enter to pause.
  • -
- -

Click anywhere to start!

-
-
- -
-