Beispiel #1
0
 function LevelFinished(&$con)
 {
     TRGUI::SetLevelImageVisible(false);
 }
Beispiel #2
0
 function KeyboardDisabled()
 {
     self::$KeysDowned = array();
 }
 function frame()
 {
     if (!isset($this->ft)) {
         $this->ft = microtime(true);
     }
     do {
         $dt = is_null($DeltaTime) ? microtime(true) - $this->ft : $DeltaTime;
         // реальный DeltaTime
         $gt = $dt * $this->ts;
         // игровой DeltaTime
         $this->ft = microtime(true);
         $this->procConnection();
         $this->RGWorld->processingWorld($dt, $gt, $this->fn);
         $this->windowProcessing($dt, $gt);
         $this->GServer->process();
         //END FRAME
         $this->RChatTool->endFrameActions();
         TRGUI::process();
         // интерфейс тоже хочет
         ++$this->fn;
     } while ($this->play);
 }