Skip to content

Commit

Permalink
adjust shifts for pyanoport
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Dec 10, 2023
1 parent 4861288 commit f3abe97
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions prototypes/biofluid/bioport.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ ENTITY {
priority = 'extra-high',
width = 175,
height = 182,
shift = util.by_pixel(16.75, -38.75),
shift = util.by_pixel(16.75, -38.75 - 32),
hr_version = {
filename = '__pyalienlifegraphics2__/graphics/entity/bots/roboport/hr-raw.png',
priority = 'extra-high',
width = 351,
height = 365,
shift = util.by_pixel(16.75, -38.75),
shift = util.by_pixel(16.75, -38.75 - 32),
scale = 0.5,
frame_count = 1
},
Expand All @@ -125,14 +125,14 @@ ENTITY {
draw_as_shadow = true,
width = 176,
height = 116,
shift = {1, 2},
shift = {1.5, 1.5},
hr_version = {
filename = '__pyalienlifegraphics2__/graphics/entity/bots/roboport/hr-sh.png',
priority = 'extra-high',
draw_as_shadow = true,
width = 352,
height = 232,
shift = {1, 2},
shift = {1.5, 1.5},
scale = 0.5,
frame_count = 1
},
Expand Down Expand Up @@ -162,7 +162,7 @@ local function add_creature_animations(animations, animation_order, name)
local layers = {}
for j = 1, i do
local layer_data = animation_order[j]
local shift = util.by_pixel(layer_data[1] / 2 - 62, layer_data[2] / 2 - 113.75)
local shift = util.by_pixel(layer_data[1] / 2 - 62, layer_data[2] / 2 - 113.75 - 32)
if name == 'chorkok' then shift[2] = shift[2] + 0.16 end
layers[#layers+1] = table.deepcopy(animations[layer_data[3]])
layers[#layers].shift = shift
Expand Down

0 comments on commit f3abe97

Please sign in to comment.