QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: Craz1000 on May 02, 2020, 09:05:46 pm
-
I would really love to be able to have txt files with code than an exe can run without compiling it. For sprite based games with enemies that have specific behaviors, one could make a generic engine that can do anything really. Or mod existing games without having to give the source out.
-
Sounds like you want an interpreter.
-
If you use Windows... find a Windows 98 and use the built-in QBASIC interpreter.
Pete
-
Sounds like you want an interpreter.
Yeah, that's what I was thinking.
@Craz1000 For situations like yours I've created what I call "behavior" files (basically config files). By changing values in the files it changes the look/feel of the game.
-
You have me wondering if you could build a game interpreter (exe) that could run script files fast enough?
Is that what a game engine is?
-
I'd think so.
-
I use a script for my animation routines and parsing strings with INSTR$ for data a few thousand times per frame had no noticeable effect on actual performance, so that shouldn't be a big issue. The only thing getting in the way of using existing script languages would be the time to create an interpreter or port an existing library, I'm guessing.