From 7fbef3c2c5d0ef7a6c77cc989ec9cd27be7de11f Mon Sep 17 00:00:00 2001 From: dsc Date: Tue, 7 Dec 2010 05:38:52 -0800 Subject: [PATCH] Restructures webroot files. --- css/log.css | 12 ------- css/lttl.css | 77 --------------------------------------------- css/reset-old.css | 2 - css/reset.css | 47 --------------------------- css/reset.min.css | 1 - css/test.css | 4 -- doc/notes.md | 13 ++----- img/pathmap-bg.png | Bin 2856 -> 0 bytes index.html | 69 ---------------------------------------- index.php | 78 ---------------------------------------------- src/tanks/thing/tank.cjs | 4 +- www/build | 1 + www/css/log.css | 12 +++++++ www/css/lttl.css | 77 +++++++++++++++++++++++++++++++++++++++++++++ www/css/reset-old.css | 2 + www/css/reset.css | 47 +++++++++++++++++++++++++++ www/css/reset.min.css | 1 + www/css/test.css | 4 ++ www/debug.html | 32 +++++++++++++++++++ www/deps.html | 65 ++++++++++++++++++++++++++++++++++++++ www/footer.html | 3 ++ www/ga.html | 15 +++++++++ www/game.html | 1 + www/header.html | 11 ++++++ www/img/pathmap-bg.png | Bin 0 -> 2856 bytes www/index.html | 6 +++ www/index.php | 23 +++++++++++++ www/scripts.html | 4 ++ www/test | 1 + www/welcome.html | 15 +++++++++ 30 files changed, 326 insertions(+), 301 deletions(-) delete mode 100644 css/log.css delete mode 100644 css/lttl.css delete mode 100644 css/reset-old.css delete mode 100644 css/reset.css delete mode 100644 css/reset.min.css delete mode 100644 css/test.css delete mode 100644 img/pathmap-bg.png delete mode 100644 index.html delete mode 100644 index.php create mode 120000 www/build create mode 100644 www/css/log.css create mode 100644 www/css/lttl.css create mode 100644 www/css/reset-old.css create mode 100644 www/css/reset.css create mode 100644 www/css/reset.min.css create mode 100644 www/css/test.css create mode 100644 www/debug.html create mode 100644 www/deps.html create mode 100644 www/footer.html create mode 100644 www/ga.html create mode 100644 www/game.html create mode 100644 www/header.html create mode 100644 www/img/pathmap-bg.png create mode 100644 www/index.html create mode 100644 www/index.php create mode 100644 www/scripts.html create mode 120000 www/test create mode 100644 www/welcome.html diff --git a/css/log.css b/css/log.css deleted file mode 100644 index 897fee1..0000000 --- a/css/log.css +++ /dev/null @@ -1,12 +0,0 @@ -#log { - position:fixed; top:0; right:0; width:50%; height:100%; overflow:hidden; - border-left:1px solid #bbb; background-color: #fff; color:#333; } -#log h5 { font-size:1.25em; font-weight:normal; text-transform:uppercase; letter-spacing:0.16667em; } - -.log_meta { position:absolute; top:0; left:0; width:100%; z-index:2; background-color:#fff; } -.log_meta > * { padding:0.3em; } - .log_menu { color:#fff; background-color:#bbb; } - .log_menu a { color:#fff; cursor:pointer; } -.log_container { position:relative; width:100%; height:100%; overflow:auto; z-index:1; } - .log_item { padding:0.5em; font:normal normal 10pt/1 Menlo, Monospace; text-decoration:none; } - diff --git a/css/lttl.css b/css/lttl.css deleted file mode 100644 index b3d805f..0000000 --- a/css/lttl.css +++ /dev/null @@ -1,77 +0,0 @@ -html { width:100%; height:100%; top:0; left:0; margin:0; padding:0; background-color:#3F3F3F; } -body { position:absolute; width:100%; top:0; left:0; margin:0; padding:0; - font-family:Geogrotesque,Helvetica; font-size:12pt; color:#fff; } -h1, h2, h3, h4, h5 { margin:0.75em 0; font-weight:normal; } -ul, ol, li { list-style: none ! important; margin:0; padding:0; } - -.clearer { clear:both !important; float:none !important; - margin:0 !important; padding:0 !important; } -.rounded { border-radius:1em; -moz-border-radius:1em; -webkit-border-radius:1em; } -.box { - padding:0.5em; background-color:rgba(0,0,0, 0.1); color:#787878; - border-radius:1em; -moz-border-radius:1em; -webkit-border-radius:1em; } - -body > h1 { position:fixed; top:0; right:0; margin:0; padding:0; font-size:3em; color:#000; opacity:0.25; z-index:100; } - -table { border-spacing:0; } -td { text-align:center; vertical-align:middle; } - -table.grid { position:absolute; top:0; left:0; z-index:10; } -table.grid, -table.grid td { /* outline:1px solid rgba(255,255,255,0.1); */ - color:transparent; font: 18pt monospace; - margin:0; padding:0; white-space:nowrap; overflow:hidden; } -.showGridCoords table.grid td:hover { color:rgba(255,255,255,0.1); } - -.bigblue { position:fixed; width:100%; top:50%; margin-top:-200px; z-index:101; } - .bigblue .box { width:400px; margin:0 auto; padding:1em; color:#000; background-color:#2992C5; - box-shadow:7.5px 7.5px 15px #000; -moz-box-shadow:7.5px 7.5px 15px #000; -webkit-box-shadow:7.5px 7.5px 15px #000; } - .bigblue h1 { text-align:center; font-size:2em; letter-spacing:2px; } - .bigblue h2 { font-size:1.1em; letter-spacing:2px; } - .bigblue .start { margin:1.5em 0 0.5em; text-align:center; border:0; } - -.pinkbutton { width:50%; margin:0 auto; cursor:pointer; - font-size:1.5em; padding:0.5em; background-color:#E73075; color:#fff; text-align:center; text-transform:uppercase; - border:5px solid #fff; } - -.countdown { position:fixed; overflow:hidden; z-index:1000; text-align:center; border:10px solid #fff; color:#fff; } - -#ai { position:absolute; z-index:1002; width:80%; left:10%; } - #ai h2 { font-size:1.3em; } - #ai .box { width:100%; } - #ai .ready { width:5%; float:left; margin-right:1em; } - #ai textarea { width:90%; height:100px; } - -#viewport { position:relative; width:500px; height:500px; margin:1em auto; cursor:crosshair; } - -#overlay { position:fixed; top:0; left:0; width:100%; height:100%; background-color:#000; opacity:0.5; z-index:100; } - -#welcome .box { cursor:pointer; } -#notes { /* position:fixed; top:4em; right:1em; color:#BFBFBF;*/ } - #notes ul, #notes ol, #notes li { list-style:circle ! important; } - #notes li { margin-left:1em; } - - -/* -#welcome fieldset { border:1px solid #182B53; padding:1em; } -#welcome legend { padding:0.5em; text-transform:uppercase; } -*/ - -#debug { position:relative; top:1em; right:1em; z-index:500; } - #debug .inner { position:absolute; top:0; right:0; padding:1em; } - #debug .inner > * { float:right; margin-right:1em; } - -#config { position:relative; width:250px; } - #config > div { position:relative; line-height:1.5em; } - #config label { position:relative; width:69%; display:inline-block; } - #config input { position:absolute; width:30%; top:0; right:0; text-align:center; - border:0; background-color:rgba(0,0,0, 0.1) ! important; color:#5c5c5c; } - #config input[type=checkbox] { top:0.33em; } - -#info { position:relative; width:250px; } - #info #state { font-weight:bold; } - #info label { display:block; float:left; width:3em; margin-right:0.5em; color:#787878; } - #info input { border:0; background-color:transparent; min-width:5em; width:5em; color:#5c5c5c; } - #info .sep { opacity:0.1; background-color:#999; margin:5px 0; height:1px; } - #info .fps-sparkline { width:100%; height:1.5em; margin-top:0.5em; } - diff --git a/css/reset-old.css b/css/reset-old.css deleted file mode 100644 index dd5886b..0000000 --- a/css/reset-old.css +++ /dev/null @@ -1,2 +0,0 @@ -html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym {border:0;font-variant:normal;}sup {vertical-align:text-top;}sub {vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;} -h1{font-size:138.5%;}h2{font-size:123.1%;}h3{font-size:108%;}h1,h2,h3{margin:1em 0;}h1,h2,h3,h4,h5,h6,strong{font-weight:bold;}abbr,acronym{border-bottom:1px dotted #000;cursor:help;} em{font-style:italic;}blockquote,ul,ol,dl{margin:1em;}ol,ul,dl{margin-left:2em;}ol li{list-style:decimal outside;}ul li{list-style:disc outside;}dl dd{margin-left:1em;}th,td{padding:.5em;}th{font-weight:bold;text-align:center;}caption{margin-bottom:.5em;text-align:center;}p,fieldset,table,pre{margin-bottom:1em;}input[type=text],input[type=password],textarea{width:12.25em;*width:11.9em;} \ No newline at end of file diff --git a/css/reset.css b/css/reset.css deleted file mode 100644 index 0fbb22a..0000000 --- a/css/reset.css +++ /dev/null @@ -1,47 +0,0 @@ -html { color:#000; background:#fff; width:100%; height:100%; } -body { position:absolute; width:100%; top:0; left:0; } -html,body,div, - dl,dt,dd,ul,ol,li, - h1,h2,h3,h4,h5,h6, - pre,code, - form,fieldset,legend,input,button,textarea, - p,blockquote, - th,td { margin:0; padding:0; } - -address,caption,cite,code,dfn,em,strong,th,var,optgroup { font-style:inherit; font-weight:inherit; } -fieldset,img { border:0; } -caption,th { text-align:left; } -caption { margin-bottom:.5em; text-align:center; } - -h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:normal; } -h1,h2,h3,h4,h5,h6,strong { font-weight:bold; } -h1 { font-size:138.5%; } -h2 { font-size:123.1%; } -h3 { font-size:108%; } -h1,h2,h3 { margin:0.5em 0 1em; } - -q:before,q:after { content:''; } -del,ins { text-decoration:none; } -abbr,acronym { border:0; font-variant:normal; border-bottom:1px dotted #000; cursor:help; } -sup, sub { vertical-align:baseline; } -em { font-style:italic; } - -input,button,textarea,select,optgroup,option { font-family:inherit; font-size:inherit; font-style:inherit; font-weight:inherit; } -input,button,textarea,select { *font-size:100%; } -input[type=text],input[type=password],textarea { width:12.25em; *width:11.9em; } -legend { color:#000; } - -ul,ol,dl,blockquote { margin:1em; } -ol,ul,dl { margin-left:2em; } -li { list-style:none; } -ol li { list-style:decimal outside; } -ul li { list-style:disc outside; } -dl dd { margin-left:1em; } - -table { border-collapse:collapse; border-spacing:0; } -th,td { padding:.5em; } -th { font-weight:bold; text-align:center; } -p,fieldset,table,pre { margin-bottom:1em; } - -.clearer { clear:both !important; float:none !important; margin:0 !important; padding:0 !important; } -.rounded { border-radius:1em; -moz-border-radius:1em; -webkit-border-radius:1em; } \ No newline at end of file diff --git a/css/reset.min.css b/css/reset.min.css deleted file mode 100644 index 3c93c02..0000000 --- a/css/reset.min.css +++ /dev/null @@ -1 +0,0 @@ -html{color:#000;background:#fff;width:100%;height:100%;}body{position:absolute;width:100%;top:0;left:0;}html,body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}fieldset,img{border:0;}caption,th{text-align:left;}caption{margin-bottom:.5em;text-align:center;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}h1,h2,h3,h4,h5,h6,strong{font-weight:bold;}h1{font-size:138.5%;}h2{font-size:123.1%;}h3{font-size:108%;}h1,h2,h3{margin:.5em 0 1em;}q:before,q:after{content:'';}del,ins{text-decoration:none;}abbr,acronym{border:0;font-variant:normal;border-bottom:1px dotted #000;cursor:help;}sup,sub{vertical-align:baseline;}em{font-style:italic;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;}input[type=text],input[type=password],textarea{width:12.25em;*width:11.9em;}legend{color:#000;}ul,ol,dl,blockquote{margin:1em;}ol,ul,dl{margin-left:2em;}li{list-style:none;}ol li{list-style:decimal outside;}ul li{list-style:disc outside;}dl dd{margin-left:1em;}table{border-collapse:collapse;border-spacing:0;}th,td{padding:.5em;}th{font-weight:bold;text-align:center;}p,fieldset,table,pre{margin-bottom:1em;}.clearer{clear:both!important;float:none!important;margin:0!important;padding:0!important;}.rounded{border-radius:1em;-moz-border-radius:1em;-webkit-border-radius:1em;} \ No newline at end of file diff --git a/css/test.css b/css/test.css deleted file mode 100644 index 1c2d3e4..0000000 --- a/css/test.css +++ /dev/null @@ -1,4 +0,0 @@ -html, body { width:100%; height:100%; - font-family:Geogrotesque,Helvetica; color:#fff; background-color:#3F3F3F; } -h1:not([id]) { position:fixed; top:-0.25em; right:-0.25em; margin:0; padding:0; - font-size:3em; color:#000; opacity:0.25; z-index:100; } 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/img/pathmap-bg.png b/img/pathmap-bg.png deleted file mode 100644 index b20a3d581378485401e1382a589c6b63e4dd13bd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2856 zcmV+@3)l3CP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}g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Ij+;v;ZGdF1K$3E%e~4LaI(jC-u%2h$&R z9cLXcYC@Xwnns&bn)_Q~Te?roKGD|d-g^8;+aC{{G(1^(O7m37Y1-+6)01cN&y1aw zoqc{T`P^XJqPBbIW6s}d4{z_f5Om?vMgNQEJG?v2T=KYd^0M3I6IZxbny)%vZR&LD zJpPl@Psh8QyPB@KTx+@RdcC!KX7}kEo;S|j^u2lU7XQ}Oo;f|;z4Ll+_r>@1-xl3| zawq-H%e&ckC+@AhPrP6BKT#_XdT7&;F71j}Joy zkC~6lh7E@6o;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z0000}Nkl6FjpayT*4o2VTZr4 z!W4XA8fH9#CmzF%C0G?^?CM;FIoYN=cNGG_0ssL2{{sM+84? - - -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!

-
-
- - - -
- - - -
- -
- - - \ No newline at end of file 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/www/css/log.css b/www/css/log.css new file mode 100644 index 0000000..897fee1 --- /dev/null +++ b/www/css/log.css @@ -0,0 +1,12 @@ +#log { + position:fixed; top:0; right:0; width:50%; height:100%; overflow:hidden; + border-left:1px solid #bbb; background-color: #fff; color:#333; } +#log h5 { font-size:1.25em; font-weight:normal; text-transform:uppercase; letter-spacing:0.16667em; } + +.log_meta { position:absolute; top:0; left:0; width:100%; z-index:2; background-color:#fff; } +.log_meta > * { padding:0.3em; } + .log_menu { color:#fff; background-color:#bbb; } + .log_menu a { color:#fff; cursor:pointer; } +.log_container { position:relative; width:100%; height:100%; overflow:auto; z-index:1; } + .log_item { padding:0.5em; font:normal normal 10pt/1 Menlo, Monospace; text-decoration:none; } + diff --git a/www/css/lttl.css b/www/css/lttl.css new file mode 100644 index 0000000..b3d805f --- /dev/null +++ b/www/css/lttl.css @@ -0,0 +1,77 @@ +html { width:100%; height:100%; top:0; left:0; margin:0; padding:0; background-color:#3F3F3F; } +body { position:absolute; width:100%; top:0; left:0; margin:0; padding:0; + font-family:Geogrotesque,Helvetica; font-size:12pt; color:#fff; } +h1, h2, h3, h4, h5 { margin:0.75em 0; font-weight:normal; } +ul, ol, li { list-style: none ! important; margin:0; padding:0; } + +.clearer { clear:both !important; float:none !important; + margin:0 !important; padding:0 !important; } +.rounded { border-radius:1em; -moz-border-radius:1em; -webkit-border-radius:1em; } +.box { + padding:0.5em; background-color:rgba(0,0,0, 0.1); color:#787878; + border-radius:1em; -moz-border-radius:1em; -webkit-border-radius:1em; } + +body > h1 { position:fixed; top:0; right:0; margin:0; padding:0; font-size:3em; color:#000; opacity:0.25; z-index:100; } + +table { border-spacing:0; } +td { text-align:center; vertical-align:middle; } + +table.grid { position:absolute; top:0; left:0; z-index:10; } +table.grid, +table.grid td { /* outline:1px solid rgba(255,255,255,0.1); */ + color:transparent; font: 18pt monospace; + margin:0; padding:0; white-space:nowrap; overflow:hidden; } +.showGridCoords table.grid td:hover { color:rgba(255,255,255,0.1); } + +.bigblue { position:fixed; width:100%; top:50%; margin-top:-200px; z-index:101; } + .bigblue .box { width:400px; margin:0 auto; padding:1em; color:#000; background-color:#2992C5; + box-shadow:7.5px 7.5px 15px #000; -moz-box-shadow:7.5px 7.5px 15px #000; -webkit-box-shadow:7.5px 7.5px 15px #000; } + .bigblue h1 { text-align:center; font-size:2em; letter-spacing:2px; } + .bigblue h2 { font-size:1.1em; letter-spacing:2px; } + .bigblue .start { margin:1.5em 0 0.5em; text-align:center; border:0; } + +.pinkbutton { width:50%; margin:0 auto; cursor:pointer; + font-size:1.5em; padding:0.5em; background-color:#E73075; color:#fff; text-align:center; text-transform:uppercase; + border:5px solid #fff; } + +.countdown { position:fixed; overflow:hidden; z-index:1000; text-align:center; border:10px solid #fff; color:#fff; } + +#ai { position:absolute; z-index:1002; width:80%; left:10%; } + #ai h2 { font-size:1.3em; } + #ai .box { width:100%; } + #ai .ready { width:5%; float:left; margin-right:1em; } + #ai textarea { width:90%; height:100px; } + +#viewport { position:relative; width:500px; height:500px; margin:1em auto; cursor:crosshair; } + +#overlay { position:fixed; top:0; left:0; width:100%; height:100%; background-color:#000; opacity:0.5; z-index:100; } + +#welcome .box { cursor:pointer; } +#notes { /* position:fixed; top:4em; right:1em; color:#BFBFBF;*/ } + #notes ul, #notes ol, #notes li { list-style:circle ! important; } + #notes li { margin-left:1em; } + + +/* +#welcome fieldset { border:1px solid #182B53; padding:1em; } +#welcome legend { padding:0.5em; text-transform:uppercase; } +*/ + +#debug { position:relative; top:1em; right:1em; z-index:500; } + #debug .inner { position:absolute; top:0; right:0; padding:1em; } + #debug .inner > * { float:right; margin-right:1em; } + +#config { position:relative; width:250px; } + #config > div { position:relative; line-height:1.5em; } + #config label { position:relative; width:69%; display:inline-block; } + #config input { position:absolute; width:30%; top:0; right:0; text-align:center; + border:0; background-color:rgba(0,0,0, 0.1) ! important; color:#5c5c5c; } + #config input[type=checkbox] { top:0.33em; } + +#info { position:relative; width:250px; } + #info #state { font-weight:bold; } + #info label { display:block; float:left; width:3em; margin-right:0.5em; color:#787878; } + #info input { border:0; background-color:transparent; min-width:5em; width:5em; color:#5c5c5c; } + #info .sep { opacity:0.1; background-color:#999; margin:5px 0; height:1px; } + #info .fps-sparkline { width:100%; height:1.5em; margin-top:0.5em; } + diff --git a/www/css/reset-old.css b/www/css/reset-old.css new file mode 100644 index 0000000..dd5886b --- /dev/null +++ b/www/css/reset-old.css @@ -0,0 +1,2 @@ +html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym {border:0;font-variant:normal;}sup {vertical-align:text-top;}sub {vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;} +h1{font-size:138.5%;}h2{font-size:123.1%;}h3{font-size:108%;}h1,h2,h3{margin:1em 0;}h1,h2,h3,h4,h5,h6,strong{font-weight:bold;}abbr,acronym{border-bottom:1px dotted #000;cursor:help;} em{font-style:italic;}blockquote,ul,ol,dl{margin:1em;}ol,ul,dl{margin-left:2em;}ol li{list-style:decimal outside;}ul li{list-style:disc outside;}dl dd{margin-left:1em;}th,td{padding:.5em;}th{font-weight:bold;text-align:center;}caption{margin-bottom:.5em;text-align:center;}p,fieldset,table,pre{margin-bottom:1em;}input[type=text],input[type=password],textarea{width:12.25em;*width:11.9em;} \ No newline at end of file diff --git a/www/css/reset.css b/www/css/reset.css new file mode 100644 index 0000000..0fbb22a --- /dev/null +++ b/www/css/reset.css @@ -0,0 +1,47 @@ +html { color:#000; background:#fff; width:100%; height:100%; } +body { position:absolute; width:100%; top:0; left:0; } +html,body,div, + dl,dt,dd,ul,ol,li, + h1,h2,h3,h4,h5,h6, + pre,code, + form,fieldset,legend,input,button,textarea, + p,blockquote, + th,td { margin:0; padding:0; } + +address,caption,cite,code,dfn,em,strong,th,var,optgroup { font-style:inherit; font-weight:inherit; } +fieldset,img { border:0; } +caption,th { text-align:left; } +caption { margin-bottom:.5em; text-align:center; } + +h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:normal; } +h1,h2,h3,h4,h5,h6,strong { font-weight:bold; } +h1 { font-size:138.5%; } +h2 { font-size:123.1%; } +h3 { font-size:108%; } +h1,h2,h3 { margin:0.5em 0 1em; } + +q:before,q:after { content:''; } +del,ins { text-decoration:none; } +abbr,acronym { border:0; font-variant:normal; border-bottom:1px dotted #000; cursor:help; } +sup, sub { vertical-align:baseline; } +em { font-style:italic; } + +input,button,textarea,select,optgroup,option { font-family:inherit; font-size:inherit; font-style:inherit; font-weight:inherit; } +input,button,textarea,select { *font-size:100%; } +input[type=text],input[type=password],textarea { width:12.25em; *width:11.9em; } +legend { color:#000; } + +ul,ol,dl,blockquote { margin:1em; } +ol,ul,dl { margin-left:2em; } +li { list-style:none; } +ol li { list-style:decimal outside; } +ul li { list-style:disc outside; } +dl dd { margin-left:1em; } + +table { border-collapse:collapse; border-spacing:0; } +th,td { padding:.5em; } +th { font-weight:bold; text-align:center; } +p,fieldset,table,pre { margin-bottom:1em; } + +.clearer { clear:both !important; float:none !important; margin:0 !important; padding:0 !important; } +.rounded { border-radius:1em; -moz-border-radius:1em; -webkit-border-radius:1em; } \ No newline at end of file diff --git a/www/css/reset.min.css b/www/css/reset.min.css new file mode 100644 index 0000000..3c93c02 --- /dev/null +++ b/www/css/reset.min.css @@ -0,0 +1 @@ +html{color:#000;background:#fff;width:100%;height:100%;}body{position:absolute;width:100%;top:0;left:0;}html,body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}fieldset,img{border:0;}caption,th{text-align:left;}caption{margin-bottom:.5em;text-align:center;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}h1,h2,h3,h4,h5,h6,strong{font-weight:bold;}h1{font-size:138.5%;}h2{font-size:123.1%;}h3{font-size:108%;}h1,h2,h3{margin:.5em 0 1em;}q:before,q:after{content:'';}del,ins{text-decoration:none;}abbr,acronym{border:0;font-variant:normal;border-bottom:1px dotted #000;cursor:help;}sup,sub{vertical-align:baseline;}em{font-style:italic;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;}input[type=text],input[type=password],textarea{width:12.25em;*width:11.9em;}legend{color:#000;}ul,ol,dl,blockquote{margin:1em;}ol,ul,dl{margin-left:2em;}li{list-style:none;}ol li{list-style:decimal outside;}ul li{list-style:disc outside;}dl dd{margin-left:1em;}table{border-collapse:collapse;border-spacing:0;}th,td{padding:.5em;}th{font-weight:bold;text-align:center;}p,fieldset,table,pre{margin-bottom:1em;}.clearer{clear:both!important;float:none!important;margin:0!important;padding:0!important;}.rounded{border-radius:1em;-moz-border-radius:1em;-webkit-border-radius:1em;} \ No newline at end of file diff --git a/www/css/test.css b/www/css/test.css new file mode 100644 index 0000000..1c2d3e4 --- /dev/null +++ b/www/css/test.css @@ -0,0 +1,4 @@ +html, body { width:100%; height:100%; + font-family:Geogrotesque,Helvetica; color:#fff; background-color:#3F3F3F; } +h1:not([id]) { position:fixed; top:-0.25em; right:-0.25em; margin:0; padding:0; + font-size:3em; color:#000; opacity:0.25; z-index:100; } diff --git a/www/debug.html b/www/debug.html new file mode 100644 index 0000000..49c699b --- /dev/null +++ b/www/debug.html @@ -0,0 +1,32 @@ + + + diff --git a/www/deps.html b/www/deps.html new file mode 100644 index 0000000..6a71653 --- /dev/null +++ b/www/deps.html @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/www/footer.html b/www/footer.html new file mode 100644 index 0000000..11a09ca --- /dev/null +++ b/www/footer.html @@ -0,0 +1,3 @@ + + + diff --git a/www/ga.html b/www/ga.html new file mode 100644 index 0000000..14ac0c1 --- /dev/null +++ b/www/ga.html @@ -0,0 +1,15 @@ +
+ +
\ No newline at end of file diff --git a/www/game.html b/www/game.html new file mode 100644 index 0000000..30ac013 --- /dev/null +++ b/www/game.html @@ -0,0 +1 @@ +
diff --git a/www/header.html b/www/header.html new file mode 100644 index 0000000..5170b15 --- /dev/null +++ b/www/header.html @@ -0,0 +1,11 @@ + + + +The Littlest Battletank + + + + + + +
diff --git a/www/img/pathmap-bg.png b/www/img/pathmap-bg.png new file mode 100644 index 0000000000000000000000000000000000000000..b20a3d581378485401e1382a589c6b63e4dd13bd GIT binary patch literal 2856 zcmV+@3)l3CP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00es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+ + + + diff --git a/www/index.php b/www/index.php new file mode 100644 index 0000000..1c125f0 --- /dev/null +++ b/www/index.php @@ -0,0 +1,23 @@ + + +
+&1"); + echo "\n-->\n"; + + include "deps.html"; +?> +
+ + diff --git a/www/scripts.html b/www/scripts.html new file mode 100644 index 0000000..9eafdff --- /dev/null +++ b/www/scripts.html @@ -0,0 +1,4 @@ +
+ + +
diff --git a/www/test b/www/test new file mode 120000 index 0000000..419df4f --- /dev/null +++ b/www/test @@ -0,0 +1 @@ +../test \ No newline at end of file diff --git a/www/welcome.html b/www/welcome.html new file mode 100644 index 0000000..7c07c34 --- /dev/null +++ b/www/welcome.html @@ -0,0 +1,15 @@ +
+
+

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.7.0.4