Darkpouetman
sync with external data for use in web game
Hello guys, I'm currently working on a game using an ECS library called Miniplex and the 3d library ThreeJS and I think solid would be the perfect library to use to build the UI. The only problem I'm facing is how do I integrate solid with the data from my game engine without making everything a store. Or should I make everything a store? I already have a game loop going every frame and I'm not scared of resyncing the data every frame if necessary. After having a look at the primitives I figured I could create a wrapper for create store and send the update function with the original object to the game loop to be ran every frame, but I figured there might be a better solution. How would you approach this?
7 replies