Beispiel #1
0
        public World()
        {
            m_camera = new Camera();
            m_player = new Player();
            m_map = new Map(new Vector2i(512, 512));
            m_dayLight = new DayLight(m_map, 30, new TimeSpan(9, 0, 0));

            s_instance = this;
        }
Beispiel #2
0
 public void Init()
 {
     m_mouseLeftPressed = false;
     m_keyUpPressed = false;
     m_keyDownPressed = false;
     m_keyLeftPressed = false;
     m_keyRightPressed = false;
     m_mousePosition = Vector2.Zero;
     m_world = new World();
     m_world.Initialize();
     m_ui = new UIGame();
     Update(new TimeSpan());
 }