Generally with v2 globals are discouraged, run all your code as modules with their own seperate scopes, hand anything you need to share around as parameters.
import { SomeFunction, SomeClass } from '$/myscript'; //Refers to those functions in myscript.mjsSomeFunction();var f = new SomeClass();
export function SomeFunction() { //Regular function code in here}export class SomeClass() { constructor() { //Do class stuff in here or whatever }}
Really? That's all there is to them? Huh, thought they'd be more complicated than that.And yeah, I've peeked into the Discord. Looks like you guys talk about stuff related to developing the engine that I can barely make sense of.
And yeah, I've peeked into the Discord. Looks like you guys talk about stuff related to developing the engine that I can barely make sense of.
Didn't want to make another thread to ask this, but does Sphere support looping audio by reading metadata? I've always wondered how do deal with the problem of looping music.