Beispiel #1
0
        public void Render(IGameRenderService gameService)
        {
            var currentPos = _drawPosition + _playerPosition;

            gameService.DrawImage(currentPos, _imageName);
            Inventory.GetActiveItem()?.Draw(gameService, _topLeft);
        }
 public void Draw(IGameRenderService gameService, Position pos)
 {
     gameService.DrawImage(pos, IconPath);
     gameService.DrawToScreen(pos.Add(0.9, 0.9), 12, Enums.Colors.White, _stackSize.ToString(), true);
 }
Beispiel #3
0
 protected void DrawImage(IGameRenderService gameService, string imageName)
 {
     gameService.DrawImage(_positionOnScreen, imageName);
     DrawHealth(gameService);
 }