Reduce UI clutter

- Don't create perk icons
- Reduce health
- Adjust capture grid size
This commit is contained in:
David Vogel 2019-10-23 03:25:38 +02:00
parent 607b16e5d2
commit 117054bdf5
2 changed files with 4 additions and 4 deletions

View File

@ -4,9 +4,9 @@
-- https://opensource.org/licenses/MIT -- https://opensource.org/licenses/MIT
local CAPTURE_PIXEL_SIZE = 2 -- in FullHD a ingame pixel is expected to be 2 real pixels local CAPTURE_PIXEL_SIZE = 2 -- in FullHD a ingame pixel is expected to be 2 real pixels
local CAPTURE_GRID_SIZE = 128 -- in ingame pixels local CAPTURE_GRID_SIZE = 1080 / 4 -- in ingame pixels
local CAPTURE_DELAY = 15 -- in frames local CAPTURE_DELAY = 15 -- in frames
local CAPTURE_FORCE_HP = 40 -- * 25HP local CAPTURE_FORCE_HP = 4 -- * 25HP
local function preparePlayer() local function preparePlayer()
local playerEntity = getPlayer() local playerEntity = getPlayer()

View File

@ -72,7 +72,7 @@ function addPerkToPlayer(perkID)
addEffectToEntity(playerEntity, perkData.game_effect) addEffectToEntity(playerEntity, perkData.game_effect)
-- Add ui icon etc -- Add ui icon etc
local perkIcon = EntityCreateNew("") --[[local perkIcon = EntityCreateNew("")
EntityAddComponent( EntityAddComponent(
perkIcon, perkIcon,
"UIIconComponent", "UIIconComponent",
@ -82,7 +82,7 @@ function addPerkToPlayer(perkID)
icon_sprite_file = perkData.ui_icon icon_sprite_file = perkData.ui_icon
} }
) )
EntityAddChild(playerEntity, perkIcon) EntityAddChild(playerEntity, perkIcon)]]
--local effect = EntityLoad("data/entities/misc/effect_protection_all.xml", x, y) --local effect = EntityLoad("data/entities/misc/effect_protection_all.xml", x, y)
--EntityAddChild(playerEntity, effect) --EntityAddChild(playerEntity, effect)