Twiddling tanks figures

This commit is contained in:
Neale Pickett 2024-12-05 11:49:54 -07:00
parent 14202511ec
commit f476b65c6f
3 changed files with 7 additions and 7 deletions

View File

@ -127,12 +127,15 @@ dd {
max-width: inherit; max-width: inherit;
} }
.figure { figure {
margin: 0.5em 1em; margin: 0.5em 1em;
float: right; float: right;
font-size: small; font-size: small;
text-align: center; text-align: center;
} }
figcaption {
fount-style: italic;
}
.scoreboard { .scoreboard {
background: #222; background: #222;

View File

@ -239,8 +239,6 @@ function start(id, game) {
for (i in turn) { for (i in turn) {
tanks[i].draw_tank() tanks[i].draw_tank()
} }
document.getElementById('frameid').innerHTML = idx;
} }
function update() { function update() {

View File

@ -7,8 +7,8 @@ scripts:
# Tanks Introduction # Tanks Introduction
<figure> <figure>
<figcaption>"ChashTank" dominates this short round.</figcaption>
<canvas id="shortround"></canvas> <canvas id="shortround"></canvas>
<figcaption>"ChashTank" dominates this short round.</figcaption>
<script type="text/javascript"> <script type="text/javascript">
start("shortround", shortround); start("shortround", shortround);
</script> </script>
@ -34,9 +34,8 @@ description of Tanks extensions.
## Quick Start for the Impatient ## Quick Start for the Impatient
<figure> <figure>
<figcaption>"Crashmaster" pwns the lame default tank provided in this
section.</figcaption>
<canvas id="default"></canvas> <canvas id="default"></canvas>
<figcaption>"Crashmaster" pwns the lame default tank provided in this section.</figcaption>
<script type="text/javascript"> <script type="text/javascript">
start("default", default_); start("default", default_);
</script> </script>
@ -63,8 +62,8 @@ Don't forget the [Forf manual](forf.md) and the
## Tank Specifications ## Tank Specifications
<figure> <figure>
<figcaption>"Ant Lion" nails "Rabbit With Gun".</figcaption>
<canvas id="antlion"></canvas> <canvas id="antlion"></canvas>
<figcaption>"Ant Lion" nails "Rabbit With Gun".</figcaption>
<script type="text/javascript"> <script type="text/javascript">
start("antlion", antlion); start("antlion", antlion);
</script> </script>