repo stringclasses 350
values | file_path stringlengths 29 200 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 2 1.01M | tokens int64 2 598k |
|---|---|---|---|---|---|
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Internal/Actor.luau | luau | .luau | local runService = game:GetService("RunService")
local lib = script.Parent.Parent.Parent.Lib
local player = game:GetService("Players").LocalPlayer
local actorLoader = lib:WaitForChild("ActorLoader")
local util = require(lib.Util)
local copyTable = util.CopyTable
local isEqual = util.IsEqual
local isClient = runServi... | 385 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Internal/Actrees.luau | luau | .luau | local actrees = {}
actrees.__index = actrees
function actrees.new()
return setmetatable({
__actors = {},
}, actrees)
end
function actrees:AddActor(actor)
table.insert(self.__actors, actor)
end
function actrees:SetVariable(name, value)
for _, actor in self do
actor.instance:SendMessage("setVariable", name, va... | 105 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Internal/BaseClass.luau | luau | .luau | local upsideEngine = script.Parent.Parent.Parent
local appData = upsideEngine.AppData
local copyTable = require(upsideEngine.Lib.Util.Internal.CopyTable)
local properties = require(appData.Properties)
local data = require(appData.Data)
local environments = {
"SoundEnvironment",
"LightingEnvironment",
"ParticleEnvi... | 504 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Internal/BaseObject.luau | luau | .luau | local eventEmitter = require(script.Parent.EventEmitter)
local classEnvironments = {
Sound = "SoundEnvironment",
Light = "LightingEnvironment",
Particle = "ParticleEnvironment",
}
local baseObject = {}
baseObject.__index = baseObject
--[[={
@link BaseObject.md
}=]]
function baseObject.new(instanceType: string?): ... | 410 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Internal/Camera.luau | luau | .luau | local upsideEngine = script.Parent.Parent.Parent
local setSmoothPosition = require(script.Parent.Parent.Parent.Lib.Util.Math.SetSmoothPosition)
local character = require(script.Parent.Parent.Public.Character)
local eventEmitter = require(upsideEngine.Classes.Internal.EventEmitter)
local camera = {}
camera.__index = ca... | 776 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Internal/Connection.luau | luau | .luau | local baseClass = require(script.Parent.BaseClass)
local connection = {}
connection.__index = connection
local function removeThread(event, running)
for index, thread in event.Threads do
if thread == running then
table.remove(event.Threads, index)
break
end
end
return running
end
local function resumeTh... | 381 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Internal/EventEmitter.luau | luau | .luau | local baseClass = require(script.Parent.BaseClass)
local connection = require(script.Parent.Connection)
local eventEmitter = {}
eventEmitter.__index = eventEmitter
local function getEvent(events, name)
if not events[name] then
events[name] = {
Functions = {},
Threads = {},
}
end
return events[name]
end
... | 600 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Internal/LightingEnvironment.luau | luau | .luau | local upsideEngine = script.Parent.Parent.Parent
local lightingSystem = upsideEngine.Systems.Lighting
local actor = require(script.Parent.Actor)
local actrees = require(script.Parent.Actrees)
local environment = require(upsideEngine.Classes.Public.Environment)
local lightingEnvironment = {}
lightingEnvironment.__inde... | 1,134 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Internal/ObjectEnvironment.luau | luau | .luau | local upsideEngine = script.Parent.Parent.Parent
local environment = require(upsideEngine.Classes.Public.Environment)
local objectEnvironment = {}
objectEnvironment.__index = objectEnvironment
objectEnvironment.__iter = environment.__iter
function objectEnvironment.new(): ObjectEnvironment
local self = environment.n... | 80 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Internal/ParticleEnvironment.luau | luau | .luau | local upsideEngine = script.Parent.Parent.Parent
local environment = require(upsideEngine.Classes.Public.Environment)
local particleEnvironment = {}
particleEnvironment.__index = particleEnvironment
function particleEnvironment.new(): ParticleEnvironment
local self = environment.new()
self:SetClassName(script.Name)... | 73 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Internal/Request.luau | luau | .luau | local upsideEngine = script.Parent.Parent.Parent
local runService = game:GetService("RunService")
local players = game:GetService("Players")
local replicatedStorage = game:GetService("ReplicatedStorage")
local copyTable = require(script.Parent.Parent.Parent.Lib.Util.Internal.CopyTable)
local ReplicationHandlers = req... | 941 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Internal/ShaderEnvironment.luau | luau | .luau | local upsideEngine = script.Parent.Parent.Parent
local shadingSystem = script.Parent.Parent.Parent.Systems.Shading
local runService = game:GetService("RunService")
local actor = require(script.Parent.Actor)
local environment = require(upsideEngine.Classes.Public.Environment)
local shaderEnvironment = {}
shaderEnvironm... | 181 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Internal/SoundEnvironment.luau | luau | .luau | local upsideEngine = script.Parent.Parent.Parent
local environment = require(upsideEngine.Classes.Public.Environment)
local soundEnvironment = {}
soundEnvironment.__index = soundEnvironment
--[[={
@link SoundEnvironment.md
}=]]
function soundEnvironment.new(): SoundEnvironment
local self = environment.new("SoundGro... | 93 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Public/Character.luau | luau | .luau | local upsideEngine = script.Parent.Parent.Parent
local sprite = require(upsideEngine.Classes.Public.Sprite)
local character = {}
character.__index = character
local function check(greater, axePos, targetAxe)
return if greater then axePos >= targetAxe else axePos <= targetAxe
end
local function getAxeData(self, targe... | 873 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Public/Environment.luau | luau | .luau | local upsideEngine = script.Parent.Parent.Parent
local baseObject = require(upsideEngine.Classes.Internal.BaseObject)
local function setProperty(obj, p, v)
obj[p] = v
end
local environment = {}
environment.__index = environment
function environment.new(instanceType: string?): Environment
local self = baseObject.ne... | 1,161 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Public/Fluid.luau | luau | .luau | local physicalObject = require(script.Parent.PhysicalObject)
local fluid = {}
fluid.__index = fluid
function fluid.new()
local self = physicalObject.new()
self:SetClassName(script.Name)
self.Density = 2
self.Viscosity = 5
self.WavesAmplitude = 1
self.WavesSpeed = 0.1
return setmetatable(self, fluid)
end
--[[... | 218 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Public/Light.luau | luau | .luau | local staticObject = require(script.Parent.StaticObject)
local light = {}
light.__index = light
--[[={
@link Light.md
}=]]
function light.new(): Light
local self = staticObject.new()
self:SetClassName(script.Name)
self.Shape = "PointLight"
self.Rotation = 0
self.Angle = 90
self.Color = Color3.fromRGB(255, 255,... | 431 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Public/Parallax.luau | luau | .luau | local baseObject = require(script.Parent.Parent.Internal.BaseObject)
local toUDim2 = require(script.Parent.Parent.Parent.Lib.Util.DataType.ToUDim2)
local parallax = {}
parallax.__index = parallax
function parallax.new()
local self = baseObject.new("Frame")
self:SetClassName(script.Name)
self.CanvasSize = Vector2.ne... | 650 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Public/Particle.luau | luau | .luau | local tweenService = game:GetService("TweenService")
local upsideEngine = script.Parent.Parent.Parent
local sceneManager = require(upsideEngine.Services).SceneManager
local baseObject = require(upsideEngine.Classes.Internal.BaseObject)
local character = require(script.Parent.Character)
local staticObject = require(scr... | 1,481 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Public/ProximityPrompt.spec2D.luau | luau | .luau | local ProximityPrompt2D = require(script.Parent.ProximityPrompt2D)
local Scene = require(script.Parent.Scene)
return function()
describe("ProximityPrompt2D.new", function()
it("should create an instance with default properties", function()
local prompt = ProximityPrompt2D.new()
expect(prompt.Range).to.equal(1... | 277 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Public/ProximityPrompt2D.luau | luau | .luau | local UserInputService = game:GetService("UserInputService")
local upsideEngine = script.Parent.Parent.Parent
local CrossPlatformService = require(script.Parent.Parent.Parent.Services.CrossPlatformService)
local SceneManager = require(upsideEngine.Services.SceneManager)
local Sprite = require(upsideEngine.Classes.Publi... | 1,230 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Public/ReactiveLabel.luau | luau | .luau | local SoundService = game:GetService("SoundService")
local upsideEngine = script.Parent.Parent.Parent
local TextTagService = require(upsideEngine.Services.TextTagService)
local TextTag = require(script.Parent.TextTag)
local baseObject = require(upsideEngine.Classes.Internal.BaseObject)
local reactiveLabel = {}
reactiv... | 3,026 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Public/Scene.luau | luau | .luau | local upsideEngine = script.Parent.Parent.Parent
local objectEnvironment = require(upsideEngine.Classes.Internal.ObjectEnvironment)
local shaderEnvironment = require(upsideEngine.Classes.Internal.ShaderEnvironment)
local camera = require(upsideEngine.Classes.Internal.Camera)
local baseObject = require(upsideEngine.Cla... | 1,749 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Public/Shader.luau | luau | .luau | local baseClass = require(script.Parent.Parent.Internal.BaseObject)
local path = require(script.Parent.Parent.Parent.Lib.Util.Internal.Path)
local source = nil
local shader = {}
shader.__index = shader
function shader.new(): Shader
local self = baseClass.new("Folder")
self:SetClassName(script.Name)
self.Enabled = ... | 553 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Public/Sound.luau | luau | .luau | local upsideEngine = script.Parent.Parent.Parent
local objects = require(upsideEngine.AppData.Data).objects
local character = require(script.Parent.Character)
local baseObject = require(upsideEngine.Classes.Internal.BaseObject)
local sound = {}
sound.__index = sound
local function getSoundEnvironment(scene: string): ... | 529 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Public/Sprite.luau | luau | .luau | local contentProvider = game:GetService("ContentProvider")
local physicalObject = require(script.Parent.PhysicalObject)
local sprite = {}
sprite.__index = sprite
--[[={
@desc The second parameter is the size of a cell of every frame of an sprite sheet, this can be changed using the .ImageRectSize property of the obj... | 625 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Public/StaticObject.luau | luau | .luau | local upsideEngine = script.Parent.Parent.Parent
local contentProvider = game:GetService("ContentProvider")
local colorProperties = { "ImageColor3", "TextColor3", "TextStrokeColor3" }
local sceneManager = require(script.Parent.Parent.Parent.Services.SceneManager)
local shader = require(script.Parent.Shader)
local base... | 1,457 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Classes/Public/TextTag.luau | luau | .luau | local upsideEngine = script.Parent.Parent.Parent
local BaseClass = require(upsideEngine.Classes.Internal.BaseClass)
local TextTagService = require(upsideEngine.Services.TextTagService)
local TextTag = {}
TextTag.__index = TextTag
function TextTag.new()
local self = BaseClass.new()
self:SetClassName(script.Name)
sel... | 540 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/ActorLoader.client.luau | luau | .luau | local RunService = game:GetService("RunService")
local actor = script:GetActor()
if not RunService:IsRunning() or not actor then
return
end
local data = {}
local running = {}
local tasks = {}
local module = nil
local runMode = "Default"
local ready = script:WaitForChild("ready")
local function addTask(f)
return f... | 372 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/DataType/ToUDim2.luau | luau | .luau | return function(v2)
return UDim2.fromOffset(v2.X, v2.Y)
end
| 21 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/DataType/ToVector2.luau | luau | .luau | return function(u2, v)
return Vector2.new(u2.X[v], u2.Y[v])
end
| 23 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Generic/Merge.luau | luau | .luau | return function(t1, t2)
local result = t1
for index, value in t2 do
result[index] = value
end
return result
end
| 37 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Generic/Wrap.luau | luau | .luau | return function(f, ...)
local args = { ... }
return function(...)
f(unpack(args), ...)
end
end
| 25 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Geometry/CheckCollision/GetCorrectionVector.luau | luau | .luau | --!native
--!optimize 2
local supportFn = require(script.Parent.Support)
local function getEdge(simplex)
local minDistSq = math.huge
local edgeNormal = Vector3.zero
local index = -1
local n = #simplex
if n == 0 then
return index, edgeNormal
end
for i = 1, n do
local j = (i % n) + 1
local edge = simplex... | 470 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Geometry/CheckCollision/Handlers.luau | luau | .luau | --!native
--!optimize 2
local handlers = {}
local function tripleProduct(a, b, c)
return b * a:Dot(c) - a * b:Dot(c)
end
function handlers.point(direction, simplex)
return -direction
end
@native
function handlers.line(direction, simplex)
local b = simplex[2]
local c = simplex[1]
local cb = b - c
local c0 = -c... | 256 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Geometry/CheckCollision/Support.luau | luau | .luau | --!native
--!optimize 2
return function(object, direction)
if object.shape == "circle" then
if direction.X == 0 and direction.Y == 0 then
return object.centre
end
local unitDirection = direction.Unit
if unitDirection.X == 0 and unitDirection.Y == 0 then
return object.centre
end
return object.centre... | 203 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Geometry/CheckCollision/init.luau | luau | .luau | --!native
--!optimize 2
local getCorrectionVector = require(script.GetCorrectionVector)
local support = require(script.Support)
local handlers = require(script.Handlers)
local handlersByLen = {
handlers.point,
handlers.line,
handlers.triangle,
}
local EvolveResult = {
NoIntersection = 1,
Intersection = 2,
Evolv... | 609 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Geometry/GetCollidingObjects.luau | luau | .luau | --!native
--!optimize 2
local checkCollision = require(script.Parent.CheckCollision)
local function isFar(objectA, objectB)
local a = objectA.Instance
local b = objectB.Instance
local scaleA = objectA.HitboxScale
local scaleB = objectB.HitboxScale
local aw, ah = a.AbsoluteSize.X * scaleA, a.AbsoluteSize.Y * scal... | 854 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Geometry/GetCorners.luau | luau | .luau | return function(object)
local instance = object.Instance
local size = instance.AbsoluteSize
local position = instance.AbsolutePosition
size = Vector3.new(size.X, size.Y, 0)
position = Vector3.new(position.X, position.Y, 0)
local hitboxSize = size * object.HitboxScale
local alignment = size * (1 - math.clamp(ob... | 290 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Geometry/SpatialGrid.luau | luau | .luau | --!native
--!optimize 2
local SpatialGrid = {}
SpatialGrid.__index = SpatialGrid
function SpatialGrid.new(cellSize: number)
return setmetatable({
_cellSize = cellSize,
_cells = {},
}, SpatialGrid)
end
function SpatialGrid:clear()
for _, row in self._cells do
for _, cell in row do
table.clear(cell)
end
... | 521 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Graphics/Canvas2d.luau | luau | .luau | local ContentManager = require(script.Parent.ContentManager)
local cache = {}
local exports = {}
exports.__index = exports
local function createCacheableImage(url)
local editableImage = ContentManager.createSafeEditableImage(url) :: EditableImage
local imageData = {
image = editableImage,
isFree = false,
}
ca... | 562 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Graphics/ContentManager.luau | luau | .luau | local AssetService = game:GetService("AssetService")
local classes = script.Parent.Parent.Parent.Parent.Classes
local EventEmitter = require(classes.Internal.EventEmitter)
local cache = {}
local loading = {}
local events = EventEmitter.new()
local exports = {
cache = cache,
events = events,
loading = loading,
}
fu... | 440 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Internal/CopyTable.luau | luau | .luau | function copyTable(__table, copyIn)
local copy = copyIn or {}
for key, value in __table do
local valueType = typeof(value)
if valueType ~= "table" then
copy[key] = value
else
copy[key] = copyTable(value, copy[key])
end
end
return copy
end
return copyTable
| 77 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Internal/Delete.luau | luau | .luau | local appData = script.Parent.Parent.Parent.Parent.AppData
local data = require(appData.Data)
local default = {}
function delete(obj)
for key, val in (obj or default) do
local valueType = typeof(val)
if valueType ~= "table" and valueType ~= "Instance" then
obj[key] = nil
elseif valueType == "Instance" or val... | 119 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Internal/Diff.luau | luau | .luau | local function diff(newObj, oldObj)
local changes = {}
for key, newVal in newObj do
local oldVal = oldObj[key]
if type(newVal) == "table" and type(oldVal) == "table" then
local subChanges = diff(newVal, oldVal)
if next(subChanges) then
changes[key] = subChanges
end
elseif newVal ~= oldVal then
... | 112 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Internal/Encoder.luau | luau | .luau | --!nonstrict
local httpService = game:GetService("HttpService")
local encoder = {}
local encoders = {
UDim2 = function(data)
return {
X = {
Scale = data.X.Scale,
Offset = data.X.Offset,
},
Y = {
Scale = data.Y.Scale,
Offset = data.Y.Offset,
},
}
end,
Vector2 = function(data)
return... | 515 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Internal/IsEqual.luau | luau | .luau | function isEqual(first, second)
if first == second then
return true
elseif
first == nil
or second == nil
or typeof(first) ~= typeof(second)
or typeof(first) ~= "table" and typeof(second) ~= "table"
then
return false
end
local firstCount, secondCount = 0, 0
for key, value in first do
firstCount += 1... | 139 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Internal/Path.luau | luau | .luau | local path = {}
function path.getRoute(object: Instance): string
local route = {}
local baseRoute = {}
local parent = object
while parent ~= game do
table.insert(baseRoute, parent.Name)
parent = parent.Parent
end
for i = #baseRoute, 1, -1 do
table.insert(route, baseRoute[i])
end
return table.concat(rou... | 135 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Math/GetDistance.luau | luau | .luau | return function(v1, v2)
local direction = v1 - v2
return direction:Dot(direction)
end
| 25 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Math/IsOutScreen.luau | luau | .luau | return function(position, size)
local resolution = workspace.CurrentCamera.ViewportSize
local fakeRes = resolution + size
-- stylua: ignore start
return position.X < -size.X
or position.Y < -size.Y
or position.X > fakeRes.X
or position.Y > fakeRes.Y
-- stylua: ignore end
end
| 77 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Math/Normalize.luau | luau | .luau | return function(val, min, max)
return (val - min) / (max - min)
end
| 22 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Math/SetSmoothPosition.luau | luau | .luau | return function(object: PhysicalObject, smoothness: number, target: UDim2)
local alpha = 1 - math.clamp(smoothness, 0, 0.95)
local instance = object.Instance :: ImageLabel
local currentPosition = instance.Position
instance.Position = currentPosition:Lerp(target, alpha)
end
| 66 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/Replication/Handlers.luau | luau | .luau | local data = require(script.Parent.Parent.Parent.Parent.AppData.Data)
local SceneManager = require(script.Parent.Parent.Parent.Parent.Services.SceneManager)
local handlers = {}
local function getObjectScene(object)
local sceneId = object and object.Scene or ""
return SceneManager:Get(sceneId)
end
local function sub... | 369 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Lib/Util/init.luau | luau | .luau | local modules = {}
for _, val in script:GetDescendants() do
if not val.Name:match(".spec") and val.Parent:IsA("Folder") then
modules[val.Name] = require(val)
end
end
return modules
| 51 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Runtime/BaseTextTags.luau | luau | .luau | local RunService = game:GetService("RunService")
local TextTag = require(script.Parent.Parent.Classes.Public.TextTag)
local frameRate = 60
local function createRandomDecayRenderFunction(defaultIntensity)
return function(label, i, args)
local intensity = args.intensity or defaultIntensity
local duration = args.dur... | 853 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Runtime/CrossPlatformTracker.luau | luau | .luau | local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local uis = game:GetService("UserInputService")
local runService = game:GetService("RunService")
local upsideEngine = script.Parent.Parent
local crossPlatformService = require(upsideEngine.Services).CrossPlatformService
local ... | 1,467 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Runtime/EveryStep/CameraTracker.luau | luau | .luau | local ToUDim2 = require(script.Parent.Parent.Parent.Lib.Util).ToUDim2
local function isOutsideLimits(target, limits, margin)
return target.X < limits.X - margin
or target.X > 1 - limits.X + margin
or target.Y < limits.Y - margin
or target.Y > 1 - limits.Y + margin
end
return function(scene, deltaTime)
local c... | 237 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Runtime/EveryStep/ParallaxTracker.luau | luau | .luau | local setSmoothPosition = require(script.Parent.Parent.Parent.Lib.Util.Math.SetSmoothPosition)
return function(scene: Scene)
local camera = scene.Camera
local subject = camera.Subject and camera.Subject.Instance
if not subject then
return
end
for _, parallax in scene.Objects.Content do
if not parallax:IsA("Pa... | 136 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Runtime/EveryStep/ParticleTracker.luau | luau | .luau | return function(scene, deltaTime)
local cl = os.clock()
for _, particle in scene.ParticleEnvironment.Content do
if cl - particle.Clock < particle.LifeTime/particle.Rate then
continue
end
particle.Clock = cl
particle:Emit(particle.Rate * deltaTime)
end
end | 69 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Runtime/EveryStep/Physics.luau | luau | .luau | --!native
--!optimize 2
local upsideEngine = script.Parent.Parent.Parent
local ToUDim2 = require(script.Parent.Parent.Parent.Lib.Util.DataType.ToUDim2)
local getCollidingObjects = require(script.Parent.Parent.Parent.Lib.Util.Geometry.GetCollidingObjects)
local SpatialGrid = require(script.Parent.Parent.Parent.Lib.Util.... | 1,604 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Runtime/EveryStep/ProximityPromptTracker.luau | luau | .luau | local TweenService = game:GetService("TweenService")
local getDistance = require(script.Parent.Parent.Parent.Lib.Util.Math.GetDistance)
local proximityPrompts = {}
local proximityInRange = {}
local function setProximityPromptVisible(proximityPrompt, visible)
local targetTransparency = if visible then 0 else 1
local ... | 581 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Runtime/EveryStep/SoundTracker.luau | luau | .luau | local util = require(script.Parent.Parent.Parent.Lib.Util)
local getDistance = require(script.Parent.Parent.Parent.Lib.Util.Math.GetDistance)
local normalize = util.Normalize
return function(scene)
if not scene.Camera.Subject or not scene.Camera.Subject.Instance then
return
end
for _, sound in scene.SoundEnviron... | 200 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Runtime/EveryStep/SpritePlayer.luau | luau | .luau | local IsOutScreen = require(script.Parent.Parent.Parent.Lib.Util).IsOutScreen
local function axeStep(active, axe, max)
local index = active.CurrentFrame[axe]
local value = index <= max - 1 and index + 1 or 0
active.CurrentFrame =
Vector2.new(axe == "X" and value or active.CurrentFrame["X"], axe == "Y" and value o... | 511 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Runtime/EveryStep/parallel.luau | luau | .luau | return function(scene)
local lighting = scene.LightingEnvironment
local shaders = scene.ShaderEnvironment
lighting.__actrees:SetVariable("lights", lighting.Content)
shaders.__actor:SetVariable("shadable", shaders.Content)
end
| 49 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Runtime/Networking.luau | luau | .luau | local upsideEngine = script.Parent.Parent
local runService = game:GetService("RunService")
local players = game:GetService("Players")
local request = require(script.Parent.Parent.Classes.Internal.Request)
local ToVector2 = require(script.Parent.Parent.Lib.Util.DataType.ToVector2)
local merge = require(script.Parent.Pa... | 1,523 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Runtime/ProximityPromptInput.luau | luau | .luau | local CrossPlatformService = require(script.Parent.Parent.Services.CrossPlatformService)
local SceneManager = require(script.Parent.Parent.Services.SceneManager)
local function emitTriggerEvent(input, eventName)
for _, scene in SceneManager.ActiveScenes do
for _, object in scene.Objects do
if not object:IsA("Pro... | 157 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Runtime/Runner.luau | luau | .luau | --!native
local upsideEngine = script.Parent.Parent
local stepFolder = script:FindFirstAncestorOfClass("Folder").EveryStep
local runService = game:GetService("RunService")
local sceneManager = require(upsideEngine.Services.SceneManager)
local childs = stepFolder:GetChildren()
local trackers = {}
for _, tracker in ch... | 380 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Services/AuthorityService.luau | luau | .luau | local upsideEngine = script.Parent.Parent
local eventEmitter = require(upsideEngine.Classes.Internal.EventEmitter)
local authorityService = {}
authorityService.__index = authorityService
function authorityService.new()
local self = eventEmitter.new()
self:SetClassName(script.Name)
self.AuthorityAssignments = {}
... | 374 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Services/CrossPlatformService.luau | luau | .luau | local UserInputService = game:GetService("UserInputService")
local upsideEngine = script.Parent.Parent
local classes = upsideEngine.Classes
local character = require(script.Parent.Parent.Classes.Public.Character)
local eventEmitter = require(classes.Internal.EventEmitter)
local crossPlatformService = {}
crossPlatformS... | 1,437 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Services/NetworkingService.luau | luau | .luau | local upsideEngine = script.Parent.Parent
local copyTable = require(script.Parent.Parent.Lib.Util.Internal.CopyTable)
local diff = require(script.Parent.Parent.Lib.Util.Internal.Diff)
local eventEmitter = require(upsideEngine.Classes.Internal.EventEmitter)
local request = require(upsideEngine.Classes.Internal.Request)
... | 904 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Services/PluginSupportService.luau | luau | .luau | local ue = script.Parent.Parent
local classes = ue.Classes
local objects = require(ue.AppData.Data).objects
local properties = require(ue.AppData.Properties)
local eventEmitter = require(classes.Internal.EventEmitter)
local encoder = require(ue.Lib.Util).Encoder
local runService = game:GetService("RunService")
local ... | 1,105 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Services/SceneManager.luau | luau | .luau | local upsideEngine = script.Parent.Parent
local eventEmitter = require(upsideEngine.Classes.Internal.EventEmitter)
local sceneManager = {}
sceneManager.__index = sceneManager
function sceneManager.new()
local self = eventEmitter.new()
self.Scenes = {}
self.ActiveScenes = {}
return setmetatable(self, sceneManager... | 277 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Services/TextTagService.luau | luau | .luau | local BaseClass = require(script.Parent.Parent.Classes.Internal.BaseClass)
local TextTagService = {}
TextTagService.__index = TextTagService
function TextTagService.new()
local self = BaseClass.new()
self:SetClassName(script.Name)
self.TextTags = {}
return setmetatable(self, TextTagService)
end
function TextTagS... | 124 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Services/init.luau | luau | .luau | local module = {}
for _, Service in script:GetChildren() do
if not Service.Name:match(".spec") then
module[Service.Name] = require(Service)
end
end
return module
| 42 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Systems/Lighting.luau | luau | .luau | local AssetService = game:GetService("AssetService")
local Canvas2d = require(script.Parent.Parent.Lib.Util.Graphics.Canvas2d)
local getDistance = require(script.Parent.Parent.Lib.Util.Math.GetDistance)
local normalize = require(script.Parent.Parent.Lib.Util.Math.Normalize)
local IsOutScreen = require(script.Parent.Par... | 2,945 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/Systems/Shading.luau | luau | .luau | local path = require(script.Parent.Parent.Lib.Util.Internal.Path)
local isOutScreen = require(script.Parent.Parent.Lib.Util.Math.IsOutScreen)
local Canvas2d = require(script.Parent.Parent.Lib.Util.Graphics.Canvas2d)
local ContentManager = require(script.Parent.Parent.Lib.Util.Graphics.ContentManager)
local shadingSyst... | 2,491 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/UpsideEngine.luau | luau | .luau | local parent = script.Parent
local classes = {}
local services = require(parent.Services)
local upsideWorkspace = require(parent.AppData.Data).workSpace
local upsideEngine = {}
upsideEngine.Version = "v3.3.1"
upsideEngine.Workspace = upsideWorkspace
function upsideEngine.new(name: string)
return classes[name].new()... | 139 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/src/init.luau | luau | .luau | local types = require(script["init.d"])
local upsideEngine = require(script.UpsideEngine)
local runService = game:GetService("RunService")
local isServer = runService:IsServer()
local function destroy()
if isServer or not script.Lib:FindFirstChild("Data") then
return
end
script.AppData.Data:Destroy()
script.Lib... | 158 |
notreux/UpsideEngine | notreux-UpsideEngine-6d8c04d/testez.d.luau | luau | .luau | declare function afterAll(callback: () -> ()): ()
declare function afterEach(callback: () -> ()): ()
declare function beforeAll(callback: () -> ()): ()
declare function beforeEach(callback: () -> ()): ()
declare function describe(phrase: string, callback: () -> ()): ()
declare function describeFOCUS(phrase: string, c... | 246 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/Guard.lua | luau | .lua | local REQUIRED_MODULE = require(script.Parent._Index["red-blox_guard@1.0.1"]["guard"])
export type Check<T> = REQUIRED_MODULE.Check<T>
return REQUIRED_MODULE
| 38 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/accordion.luau | luau | .luau | local vide = require(script.Parent.Parent.Parent.Parent.vide)
local theme = require(script.Parent.Parent.Parent.util.theme)
local container = require(script.Parent.Parent.util.container)
local padding = require(script.Parent.Parent.util.padding)
local typography = require(script.Parent.typography)
local create = vide.... | 805 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/background.luau | luau | .luau | local vide = require(script.Parent.Parent.Parent.Parent.vide)
local theme = require(script.Parent.Parent.Parent.util.theme)
local create = vide.create
local read = vide.read
type can<T> = (() -> T) | T
type Background = {
position: can<UDim2>?,
size: can<UDim2>?,
anchorpoint: can<UDim2>?,
automaticsi... | 261 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/checkbox.luau | luau | .luau | local vide = require(script.Parent.Parent.Parent.Parent.vide)
local anim = require(script.Parent.Parent.Parent.util.anim)
local theme = require(script.Parent.Parent.Parent.util.theme)
local create = vide.create
local read = vide.read
type can<T> = (() -> T) | T
type Background = {
position: can<UDim2>?,
size... | 394 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/divider.luau | luau | .luau | local vide = require(script.Parent.Parent.Parent.Parent.vide)
local theme = require(script.Parent.Parent.Parent.util.theme)
local create = vide.create
local read = vide.read
type can<T> = T | () -> T
type props = {
thickness: can<number>?,
position: can<UDim2>?,
}
return function(props: props)
return create "Fr... | 140 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/pages.luau | luau | .luau | local vide = require(script.Parent.Parent.Parent.Parent.vide)
local anim = require(script.Parent.Parent.Parent.util.anim)
local theme = require(script.Parent.Parent.Parent.util.theme)
local button = require(script.Parent.Parent.interactable.button)
local container = require(script.Parent.Parent.util.container)
local li... | 702 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/pane.luau | luau | .luau | local vide = require(script.Parent.Parent.Parent.Parent.vide)
local theme = require(script.Parent.Parent.Parent.util.theme)
local list = require(script.Parent.Parent.util.list)
local padding = require(script.Parent.Parent.util.padding)
local background = require(script.Parent.background)
local typography = require(scri... | 429 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/resizeable_bar.luau | luau | .luau | local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local vide = require(script.Parent.Parent.Parent.Parent.vide)
local theme = require(script.Parent.Parent.Parent.util.theme)
local padding = require(script.Parent.Parent.util.padding)
local rounded_frame = requi... | 1,375 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/scroll_frame.luau | luau | .luau | local vide = require(script.Parent.Parent.Parent.Parent.vide)
local theme = require(script.Parent.Parent.Parent.util.theme)
local create = vide.create
type props = vide.vScrollingFrame
return function(props: props)
return create "ScrollingFrame" {
AutoLocalize = false,
ScrollBarThickness = 6,
ScrollBarImageC... | 111 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/snapping.luau | luau | .luau | local UserInputService = game:GetService("UserInputService")
local vide = require(script.Parent.Parent.Parent.Parent.vide)
local create = vide.create
local source = vide.source
local cleanup = vide.cleanup
local effect = vide.effect
local action = vide.action
local changed = vide.changed
local untrack = vide.untrack
... | 775 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/tablesheet.luau | luau | .luau | local vide = require(script.Parent.Parent.Parent.Parent.vide)
local theme = require(script.Parent.Parent.Parent.util.theme)
local button = require(script.Parent.Parent.interactable.button)
local rounded_frame = require(script.Parent.Parent.util.rounded_frame)
local virtualscroller = require(script.Parent.Parent.util.vi... | 1,089 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/typography.luau | luau | .luau | local vide = require(script.Parent.Parent.Parent.Parent.vide)
local anim = require(script.Parent.Parent.Parent.util.anim)
local theme = require(script.Parent.Parent.Parent.util.theme)
local create = vide.create
local read = vide.read
type can<T> = T | () -> T
type props = {
size: can<UDim2>?,
position: can<UDim2>?... | 492 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/widget/borders.luau | luau | .luau | local GuiService = game:GetService("GuiService")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide)
local theme = require(script.Parent.Parent.Parent.Parent.util.theme)
local container = requ... | 1,673 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/widget/init.luau | luau | .luau | local GuiService = game:GetService("GuiService")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local vide = require(script.Parent.Parent.Parent.Parent.vide)
local theme = require(script.Parent.Parent.Parent.util.... | 2,025 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/display/widget/topbar.luau | luau | .luau |
local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide)
local theme = require(script.Parent.Parent.Parent.Parent.util.theme)
local list = require(script.Parent.Parent.Parent.util.list)
local padding = require(script.Parent.Parent.Parent.util.padding)
local rounded_frame = require(script.Parent.Parent.Pare... | 906 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/graph/bargraph.luau | luau | .luau | local vide = require(script.Parent.Parent.Parent.Parent.vide)
local theme = require(script.Parent.Parent.Parent.util.theme)
local container = require(script.Parent.Parent.util.container)
local create = vide.create
local indexes = vide.indexes
local read = vide.read
type can<T> = T | () -> T
type props = {
position:... | 358 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/graph/graph.luau | luau | .luau | local vide = require(script.Parent.Parent.Parent.Parent.vide)
local theme = require(script.Parent.Parent.Parent.util.theme)
local container = require(script.Parent.Parent.util.container)
local create = vide.create
local source = vide.source
local action = vide.action
local effect = vide.effect
type can<T> = T | () ->... | 236 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/graph/linegraph.luau | luau | .luau | local vide = require(script.Parent.Parent.Parent.Parent.vide)
local theme = require(script.Parent.Parent.Parent.util.theme)
local container = require(script.Parent.Parent.util.container)
local create = vide.create
local source = vide.source
local action = vide.action
local effect = vide.effect
local read = vide.read
... | 381 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/interactable/button.luau | luau | .luau | local vide = require(script.Parent.Parent.Parent.Parent.vide)
local anim = require(script.Parent.Parent.Parent.util.anim)
local theme = require(script.Parent.Parent.Parent.util.theme)
local typography = require(script.Parent.Parent.display.typography)
local padding = require(script.Parent.Parent.util.padding)
local cr... | 982 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/interactable/select.luau | luau | .luau | local vide = require(script.Parent.Parent.Parent.Parent.vide)
local theme = require(script.Parent.Parent.Parent.util.theme)
local scroll_frame = require(script.Parent.Parent.display.scroll_frame)
local container = require(script.Parent.Parent.util.container)
local list = require(script.Parent.Parent.util.list)
local pa... | 1,028 |
imezx/Grow-A-Desert | imezx-Grow-A-Desert-7941f01adcbf3f21125864c071f282c7c29476ed/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/interactable/textfield.luau | luau | .luau | local vide = require(script.Parent.Parent.Parent.Parent.vide)
local anim = require(script.Parent.Parent.Parent.util.anim)
local theme = require(script.Parent.Parent.Parent.util.theme)
local typography = require(script.Parent.Parent.display.typography)
local padding = require(script.Parent.Parent.util.padding)
local cr... | 1,022 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.