Skip to content

Globalizes local random functions from HUD into random library and experimentally moves HUD non-drawing functions to hud library.

Skydusk requested to merge Acelite/SRB2:freevideolibtohud into next

Random lib:

	random.localFixed
	random.localByte
	random.localKey
	random.localRange
	random.localSignedRandom
	random.localChance

(just take description from current HUD random functions)

However, I still think this should be in its own MR.

HUD lib:

	hud.patchExists
	hud.cachePatch
	hud.getSpritePatch
	hud.getSprite2Patch
	hud.width
	hud.height
	hud.scale
	hud.renderer

(Same thing here)

NOTE: regarding hud.scale, v.dupx and v.dupy are pretty much the same alias function at this point. So I just unify the name.

As another experiment. All HUDONLY guardrails of these functions were removed. While my testing was issue-less, it should warrant some testing.

boldtest.lua

Edited by Skydusk

Merge request reports

Loading