예제 #1
0
 function LevelFinished(&$con)
 {
     TRGUI::SetLevelImageVisible(false);
 }
예제 #2
0
 function KeyboardDisabled()
 {
     self::$KeysDowned = array();
 }
예제 #3
0
 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);
 }