From b69516be229645b747f47df45d6baa5943746fcd Mon Sep 17 00:00:00 2001 From: dsc Date: Fri, 12 Nov 2010 03:30:53 -0800 Subject: [PATCH] checkpoint --- css/lttl.css | 19 +++++++--- index.php | 24 ++++++------- src/Y/y.js.php | 1 + src/portal/shape/line.js | 4 +- src/tanks/game/game.js | 15 +++++--- src/tanks/main-ui.js | 87 +++++++++++++++++++++++++++++---------------- src/tanks/main.js | 17 +-------- src/tanks/map/loc.js | 8 ++-- src/tanks/map/pathmap.js | 63 ++++++++++++-------------------- src/tanks/thing/bullet.js | 29 ++++++++++++--- src/tanks/thing/tank.js | 2 +- src/tanks/ui/player.js | 7 ++-- tanks.php | 6 ++- 13 files changed, 154 insertions(+), 128 deletions(-) diff --git a/css/lttl.css b/css/lttl.css index 5b26d43..087032c 100644 --- a/css/lttl.css +++ b/css/lttl.css @@ -2,18 +2,27 @@ html, body { width:100%; height:100%; font-family:Geogrotesque,Helvetica; color:#fff; background-color:#3F3F3F; } body { font-family:Geogrotesque, Helvetica; font-size:12pt; } h1 { position:fixed; top:0; right:0; margin:0; padding:0; font-size:3em; color:#000; opacity:0.25; z-index:100; } +h2, h3, h4, h5 { margin:0; margin-bottom:0.5em; } ul, ol, li { list-style: none ! important; margin:0; padding:0; } .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; } -#viewport { position:relative; top:1em; width:500px; height:500px; margin:0 auto; overflow:hidden; - /* outline:1px solid #aaa; */ } +#controls { position:fixed; top:1em; left:1em; width:250px; } + #controls > div { position:relative; } + #controls label { position:relative; width:30%; display:inline-block; } + #controls input { position:absolute; width:40%; top:0; right:0; text-align:center; + border:0; background-color:rgba(0,0,0, 0.1) ! important; color:#5c5c5c; } -#howto { position:fixed; top:3em; right:1em; color:#BFBFBF; } - -#info { position:fixed; bottom:10px; right:10px; padding:0.5em; background-color:rgba(0,0,0, 0.1); color:#787878; } +#viewport { position:relative; top:1em; width:500px; height:500px; margin:0 auto; overflow:hidden; } +#info { position:fixed; bottom:10px; right:1em; } #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; } + +#howto { position:fixed; top:3em; right:1em; color:#BFBFBF; } + diff --git a/index.php b/index.php index af12c2d..2476c6c 100644 --- a/index.php +++ b/index.php @@ -6,29 +6,27 @@ +

The Littlest Battletank

-
- -

The Littlest Battletank

- -
- +
+

config

+
-