How to save a variable to a database in three.js

25 Views Asked by At

I have made a simple game in three.js and want to be able to save a high score to a database, but anytime I try to use a database module, more specifically, the replit database, all of the three.js code stops working.

I have tried to import the replit database module in the file, but it doesn't work, anytime I try and reference another file from the three.js script, all of it stops working.

this is how I have three.js imported

import * as THREE from "https://cdn.skypack.dev/[email protected]";

0

There are 0 best solutions below