Godot Version
4.3
Question
I’m still fairly new to Godot, but I think I have a decent handle of the bare basics. I’ve been working on a 2D, turn-based, grid-based puzzle game, in which the goal is to move the player character to the level exit while avoiding the enemy.
Levels are grid-based, and consist of the player, enemy, walls, exit, and empty squares. I think I’m probably going to use a dictionary to store the levels, and a couple for loops to instantiate everything.
What I want to know is, is it possible to have some sort of alphanumeric hash to represent the levels? Like, the idea would be that I can store the levels in the code as a hash, and make a function that will parse the hash and populate the dictionary, which then gets put into the level instantiate function when the level loads.
This could also open the ability for users to input a hash in-game to generate levels. As well as creating a level editing tool for users, or collaborators, to create levels and generate a level hash, which could then be coded in the game (in the case of collaborators), or shared by other users.
This idea seems more than a few degrees above my skill level to be able to figure out myself. So I thought I’d ask here to see if anyone has ideas of how to go about doing it.