I'm a game that has text file levels.
You can require
JSON files, I'd like to do the same with text.
const levels = [
require("./levels/1.txt"),
require("./levels/2.txt"),
require("./levels/3.txt")
];
I'm a game that has text file levels.
You can require
JSON files, I'd like to do the same with text.
const levels = [
require("./levels/1.txt"),
require("./levels/2.txt"),
require("./levels/3.txt")
];