function game_snakes_showdice($snakes, $board) { $pos = game_snakes_computeplayerposition($snakes, $board); ?> <DIV ID="player1" STYLE="position:relative; left:<?php p($pos->x); ?> px;top:<?php p($pos->y - $board->height - 50); ?> px; width:0px; height:23px;"><br> <center><img src="snakes/1/player1.gif"></img></center> </DIV> <DIV ID="dice" STYLE="position:relative; left:<?php p($board->width + round($board->width / 3)); ?> px;top:<?php p(-2 * round($board->height / 3)); ?> px; width:0px; height:0px;"><br> <img src="snakes/1/dice<?php p($snakes->dice); ?> .gif"></img> </DIV> <?php }
function game_snakes_showdice($snakes, $board) { $pos = game_snakes_computeplayerposition($snakes, $board); ?> <div ID="player1" STYLE="position:relative; left:<?php p($pos->x); ?> px; top:<?php p($pos->y); ?> px;" > <img src="snakes/1/player1.png" alt="<?php print_string('snakes_player', 'game', $snakes->position + 1); /*Accessibility. */ ?> " width="<?php echo $pos->width; ?> " height="<?php echo $pos->height; ?> "/> </div> <div ID="dice" STYLE="position:relative; left:<?php p($board->width + round($board->width / 3)); ?> px;top:<?php p(-2 * round($board->height / 3)); ?> px; "> <img src="snakes/1/dice<?php p($snakes->dice); ?> .png" alt="<?php print_string('snakes_dice', 'game', $snakes->dice); ?> " /> </div> <?php }
function game_snakes_showdice($snakes, $board) { $pos = game_snakes_computeplayerposition($snakes, $board); ?> <DIV ID="player1" STYLE="float:left;position:relative; left:<?php p($pos->x); ?> px;top:<?php p($pos->y - $board->height); ?> px; width:0px; height:23px;"><br> <img src="snakes/1/player1.gif"></img> </DIV> </td> </tr> </table> <DIV ID="dice" STYLE="position:absolute; right:80px; top:80px; width:auto; height:0px;"><br><?php echo get_string('lastmovewas', 'game'); ?> <br><br/> <img src="snakes/1/dice<?php p($snakes->dice); ?> .gif"></img> </DIV> <?php }