Example #1
0
 public Simulation(Game game, uint seed)
     : base(game)
 {
     m_fogVector = new Vector2(Chunk.SizeInBlocks * ChunkCache.ViewRange, Chunk.SizeInBlocks * (ChunkCache.ViewRange + 4));
     m_worldComponents = new List<Renderable>();
     m_chunkCache = new ChunkCache(game);
     m_worldComponents.Add(m_chunkCache);
     m_worldComponents.Add(new Sky(game, seed));
     m_player = new Player(ChunkCache.Blocks, ChunkCache.BlockIndexByWorldPosition);
     m_worldComponents.Add(m_player);
 }
Example #2
0
 public FlyCommand()
 {
     m_player = MainEngine.GetEngineInstance().Simulation.Player;
 }