JoyfulReaper / TextEngine

C# Text Adventure Engine
MIT License
2 stars 0 forks source link

why not write a simple custom language for scripting? #1

Open furesoft opened 4 years ago

furesoft commented 4 years ago

i can help you if you want. i really enjoy parsing. im currently working on my own programming language

JoyfulReaper commented 4 years ago

Hello, thanks for the comments. I have realized I need a better programming base before attempting this project if I want to do it right. I have also switched to Java.

That said if you have the patience to deal with working with me I would be open to continuing or restarting this project using either java or c#.

One of my concerns with your suggestion is that ability to add methods to items such as onUse() where arbitrary code can be executed when items are used. How would this be implemented per your suggestion?

furesoft commented 4 years ago

i want to work with you but only in c#. your onUse method could be easily implemented via a callback function in the script engine

furesoft commented 4 years ago

we could make the language to define all things like rooms and players and a simple slot memory system to make savestates easy this would be really really cool

JoyfulReaper commented 4 years ago

I added you on discord and signed up for gitter.

I agree and would like to use the language to define most if not all in game entities such as rooms, players and items. Could you help me with the design of the engine as well?

furesoft commented 4 years ago

yes i can. i think we should compile the definitions to il code and combine the engine with that assembly or we could make a custom virtual machine