<?php
session_start ();
require_once ('global/inc.main.php');
$hero = new owarrior ('char2.gif', array ('attaque' => 10, 'defense' => 2, 'pv' => 20, 'init' => 1000));
$_SESSION['hero'] = serialize ($hero);
header ('Location: map.php');
?>