Exemplo n.º 1
0
 public override void OnLoad()
 {
     _texture        = _assetManager.GetTexture2D("assets/Textures/awesomeface.png");
     _tilemapTexture = _assetManager.GetTexture2D("assets/Textures/rpg_tilemap.png");
     _renderer2D.Init();
     _renderer2D.SetFramebuffer(new FramebufferSpecs
     {
         Width = 1920, Height = 1080
     });
 }
Exemplo n.º 2
0
        public override void OnLoad()
        {
            _renderer2D.Init();

            _scene = new Scene(_renderer2D, new OrthographicCameraController(16.0f / 9.0f));
            _scene.AddComponentType <TransformComponent>();
            _scene.AddComponentType <SpriteRendererComponent>();

            _player = new Player(_assetManager);
            _scene.AddSprite(_player.Transform, _player.SpriteRenderer);
        }