parsing *usable* code from a txt or xml file
in
Programming Questions
•
2 years ago
is it possible to pull string elements from a txt or xml to use as code in the sketch running the txt/xml parsing?
for example, imagine a game with multiple levels and each level's code for it's attributes and enemies and items and map, etc. are put in a txt or xml file. Then i would take the txt/xml file parse out each line or node and use the code in a running sketch.
for example, imagine a game with multiple levels and each level's code for it's attributes and enemies and items and map, etc. are put in a txt or xml file. Then i would take the txt/xml file parse out each line or node and use the code in a running sketch.
1