Exemple #1
0
 public function play_sound($name)
 {
     Game::add_event(["c" => self::$protocol["playSound"], "a" => $name]);
 }
Exemple #2
0
 public function draw_image()
 {
     $args = func_get_args();
     $path = array_splice($args, 0, 1);
     Game::add_event(["c" => Game::$protocol["drawImage"], "i" => $path[0], "a" => $args]);
 }