I started with the Reversi Tutorial, but already at step 4, I'm stuck. I did follow the documentation, but the Board won't show up:
Here is my reversiturorial_reversiturorial.tpl:
{OVERALL_GAME_HEADER}
This is your game interface. You can edit this HTML in your ".tpl" file.
<div id="board">
<!-- BEGIN square -->
<div id="square_{X}_{Y}" class="square" style="left: {LEFT}px; top: {TOP}px;"></div>
<!-- END square -->
</div>
<script type="text/javascript">
// Javascript HTML templates
/*
// Example:
var jstpl_some_game_item='<div class="my_game_item" id="my_game_item_${MY_ITEM_ID}"></div>';
*/
</script>
{OVERALL_GAME_FOOTER}
And my sass;
#board {
// Setup Image
width: 536px;
height: 528px;
background-image: url('img/board.jpg');
// Center the board
margin: auto;
left: 0; top: 0; right: 0; bottom: 0;
// Tokens and squares are absolutely placed relative to the board
position: relative;
}
.square {
// Size of a square
width: 62px;
height: 62px;
// Position relative to the board, not affected by other elements.
position: absolute;
// Placeholder for validating the positions.
background-color: red;
}
I also did a hard refresh. Why is the board not showing?
Here is my reversiturorial_reversiturorial.tpl:
{OVERALL_GAME_HEADER}
This is your game interface. You can edit this HTML in your ".tpl" file.
<div id="board">
<!-- BEGIN square -->
<div id="square_{X}_{Y}" class="square" style="left: {LEFT}px; top: {TOP}px;"></div>
<!-- END square -->
</div>
<script type="text/javascript">
// Javascript HTML templates
/*
// Example:
var jstpl_some_game_item='<div class="my_game_item" id="my_game_item_${MY_ITEM_ID}"></div>';
*/
</script>
{OVERALL_GAME_FOOTER}
And my sass;
#board {
// Setup Image
width: 536px;
height: 528px;
background-image: url('img/board.jpg');
// Center the board
margin: auto;
left: 0; top: 0; right: 0; bottom: 0;
// Tokens and squares are absolutely placed relative to the board
position: relative;
}
.square {
// Size of a square
width: 62px;
height: 62px;
// Position relative to the board, not affected by other elements.
position: absolute;
// Placeholder for validating the positions.
background-color: red;
}
I also did a hard refresh. Why is the board not showing?