Polish arena effects, audio and diagnostics
This commit is contained in:
1 parent
2774e625c1
commit
16a359d4af
28 files changed
+512
-257
No files matched your search
@@ -0,0 +1,10 @@
|
||||
--!strict
|
||||
local Config = require(script.Parent.EffectsConfig)
|
||||
local Budget = {}
|
||||
function Budget.profile(touch: boolean, keyboard: boolean)
|
||||
return if touch and not keyboard then Config.Mobile else Config.Desktop
|
||||
end
|
||||
function Budget.particles(requested: number, scale: number): number
|
||||
return if requested <= 0 then 0 else math.max(1, math.floor(requested * scale))
|
||||
end
|
||||
return table.freeze(Budget)
|
||||
Reference in new issue
Block a user