Esempio n. 1
0
 /// <summary>
 /// Physics Body to stream the world around
 /// </summary>
 public void StreamForBody(Body physicsBody, object blockLock)
 {
     m_renderKernel = new BodyRenderKernel(physicsBody, TilesPerBlockWidth, WorldWidth, WorldHeight, m_font);
     m_renderKernel.Update();
     LoadBlock(blockLock);
 }
Esempio n. 2
0
        /// <summary>
        /// Updates the level
        /// </summary>
        /// <param name="blocklock"></param>
        public void Update(object blocklock)
        {
            m_renderKernel.Update();

            LoadBlock(blocklock);
        }
 /// <summary>
 /// Physics Body to stream the world around
 /// </summary>
 public void StreamForBody(Body physicsBody, object blockLock)
 {
     m_renderKernel = new BodyRenderKernel(physicsBody, TilesPerBlockWidth, WorldWidth, WorldHeight, m_font);
     m_renderKernel.Update();
     LoadBlock(blockLock);
 }