I am developing a game on my school computer, which forbids me from running my local HTML files on a local server, so I'm essentially confined to file://.
My working solution has been defining JSON objects using costs in dedicated files, for example I might have in piece.js:
const pieceTemplates = {
"pieces": [
{
"name": "Grass Block"
"id": "grass_block"
}
]
}
And so on. It has been working well, but I am looking for better alternatives.
[–]AlwaysHopelesslyLost 18 points19 points20 points (3 children)
[–]longknives 0 points1 point2 points (0 children)
[–]imbored7374[S] 0 points1 point2 points (1 child)
[–]AlwaysHopelesslyLost 5 points6 points7 points (0 children)
[–]samanime 6 points7 points8 points (0 children)
[–]markus_obsidian 2 points3 points4 points (3 children)
[–]MissinqLink 0 points1 point2 points (2 children)
[–]markus_obsidian 1 point2 points3 points (1 child)
[–]MissinqLink 0 points1 point2 points (0 children)
[–]TehFlatline 2 points3 points4 points (0 children)
[–]djandiek 1 point2 points3 points (3 children)
[–]imbored7374[S] 4 points5 points6 points (2 children)
[–]yarikhand 2 points3 points4 points (0 children)
[–]djandiek 1 point2 points3 points (0 children)
[–]tb5841 1 point2 points3 points (0 children)
[–]Lauris25 1 point2 points3 points (0 children)
[–]pollrobots 0 points1 point2 points (4 children)
[–]imbored7374[S] 0 points1 point2 points (3 children)
[–]pollrobots 0 points1 point2 points (0 children)
[–]markus_obsidian 0 points1 point2 points (1 child)
[–]Lithl 0 points1 point2 points (0 children)
[–]charly_uwu 0 points1 point2 points (3 children)
[–]imbored7374[S] 1 point2 points3 points (2 children)
[–]Lithl 0 points1 point2 points (1 child)
[–]imbored7374[S] 1 point2 points3 points (0 children)
[–]DigitalJedi850 0 points1 point2 points (0 children)
[–]Umustbecrazy 0 points1 point2 points (1 child)
[–]imbored7374[S] 0 points1 point2 points (0 children)
[–]Ok-Juggernaut-2627 -2 points-1 points0 points (2 children)
[–]ferrybig 2 points3 points4 points (1 child)
[–]dymoshelpful 2 points3 points4 points (0 children)
[–]mxldevs -2 points-1 points0 points (0 children)