includes/arcade/games/nom du jeu :
- nom du jeu.gif (l'icone du jeu)
- nom du jeu.swf (le jeu en lui même)
- nom du jeu.php (fichier d'installation du jeu)
- index.html (vierge)
Prenons l'exemple d'un jeu, 2dmemory que vous pouvez télécharger ICI.
Le fichier php se décompose ainsi :
array (
* '0' => 'arcade/gamedata/snake/scores.swf',
* '1' => 'arcade/games/snake/scores.swf',
* '2' => 'arcade/gamedata/games/snake/scores.swf',
* )
*
* If there are no extra files the item should be set to false:
*
* 'game_files' => false,
*/
if (!defined('IN_PHPBB'))
{
exit;
}
$game_file = basename(__FILE__, '.' . $phpEx);
$game_data = array(
'game_name' => '2dmemory',
'game_desc' => 'Find the matching cards to elliminate them. The fewer moves the better the score',
'game_image' => $game_file.'.gif',
'game_swf' => $game_file.'.swf',
'game_scorevar' => $game_file,
'game_type' => IBPRO_GAME,
'game_width' => '600',
'game_height' => '450',
'game_scoretype' => SCORETYPE_HIGH,
'game_files' => false,
);
?>








