You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
637 B
18 lines
637 B
if instance_exists(oWater)
|
|
y = (global.waterlevel + oWater.yoffset)
|
|
else if instance_exists(oLavaSurface)
|
|
y = global.waterlevel
|
|
y_top = (y - view_yview[0])
|
|
y_top = clamp(y_top, 0, view_hview[0])
|
|
y_bottom = view_hview[0]
|
|
THETA += SPEED
|
|
if ((view_yview[0] + view_hview[0]) >= y)
|
|
{
|
|
if (!surface_exists(mysurf))
|
|
mysurf = surface_create((320 + (oControl.widescreen * oControl.widescreen_space)), 240)
|
|
if surface_exists(oControl.widescreen_surface)
|
|
surface_copy(mysurf, 0, 0, oControl.widescreen_surface)
|
|
else if surface_exists(application_surface)
|
|
surface_copy(mysurf, 0, 0, application_surface)
|
|
}
|