Beispiel #1
0
        /// <summary>
        /// Конструктор, инициализирующий игру параметрами по умолчанию
        /// </summary>
        public Game(ITimer timer, IPhysics physics)
        {
            _gameLoop = timer;
            _gameLoop.AddEvent(Tick);

            World = new World(physics);
            WorldFile.FillWorld(World, "Resources/Worlds/test.world");

            Player = World.CreatePlayer(new HitBox(0, -10, 0.25, 0.5));

            Player.Texture      = "Resources/TextureAssets/player.texture";
            Player.DrawPriority = 10;
            UpdateState();
        }