Parallax fixes

This commit is contained in:
quotefox
2022-07-14 02:53:18 +01:00
parent 4651524067
commit be34f882d7
3 changed files with 5 additions and 6 deletions
+4 -3
View File
@@ -170,12 +170,13 @@
L.transform = newtransform
animate(L, transform = matrix(), time = T, loop = -1, flags = ANIMATION_END_NOW)
animate(L, transform = L.transform, time = 0, loop = -1, flags = ANIMATION_END_NOW)
animate(transform = matrix(), time = T)
/datum/hud/proc/update_parallax()
var/client/C = mymob.client
var/turf/posobj = get_turf(C.eye)
if(!posobj)
if(!posobj)
return
var/area/areaobj = posobj.loc
@@ -341,7 +342,7 @@
//Layenia parallaxes
/obj/screen/parallax_layer/layenia
icon_state = null
icon_state = null
blend_mode = BLEND_OVERLAY
absolute = TRUE
speed = 0.6
+1 -3
View File
@@ -121,7 +121,7 @@
gender = PLURAL
desc = "Clouds as far as the eye can see... Watch your step."
icon = 'icons/turf/space.dmi'
icon_state = "clouds"
icon_state = "cloud"
plane = PLANE_SPACE
tiled_dirt = FALSE
baseturfs = /turf/open/chasm/cloud
@@ -132,10 +132,8 @@
/turf/open/chasm/cloud/Initialize()
. = ..()
icon_state = SPACE_ICON_STATE
/turf/open/chasm/cloud/get_smooth_underlay_icon(mutable_appearance/underlay_appearance, turf/asking_turf, adjacency_dir)
underlay_appearance.icon = 'icons/turf/space.dmi'
underlay_appearance.icon_state = SPACE_ICON_STATE
underlay_appearance.plane = PLANE_SPACE
return TRUE
Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 KiB

After

Width:  |  Height:  |  Size: 125 KiB