I would add keywords that would trigger an action or delegate, but once inside it would use switch statements on an array filled with the string split at certain characters, it would either read numbers or strings at certain positions.
I was very proud of it but is definatley no real interpreter or virtual machine, is that what your is. Yours seems extremely badass like a real interpreter.
The Scripts do get parsed and tokens are created. It doesn't use reflection though. It uses string comparison to determine the actual function calls. So the map object calls "CreateMultiStateObject" based on a Function token which holds the function name as a string. So its about half and half.
although the way i was parsing the string to get a number was basically me reinventing the wheel, i just found out today that int had a method call int.parse(string) that does all the work, i created a method that broke down strings into an array a characters getting their digits place getting their numeric representation doing a bunch of crap than finally spitting out the correct representation. I felt dumb when i found out that int.parse() does everything haha
That music is absolutely amazing.
HeatedPhoenix 11 months ago
Comment removed
Mirosta1504 1 year ago
God that engine looks sleek. I would love to see a more polished map, though. Keep up the good work! :]
fatso784 2 years ago
can you please make a tutorial on it
gamemak0r 2 years ago
Can't wait for a new video myself.
BrioCyrain 2 years ago
Keep up the good work !
Cant wait for new vid !
diedy5 2 years ago
That is fuckin slick. Im an artist dont know much about pixel art but Id like to see if i could possibly help.
trexdegenerate 2 years ago
Really nice job
I did a similar input box system
except mine was a cheap version
I would add keywords that would trigger an action or delegate, but once inside it would use switch statements on an array filled with the string split at certain characters, it would either read numbers or strings at certain positions.
I was very proud of it but is definatley no real interpreter or virtual machine, is that what your is. Yours seems extremely badass like a real interpreter.
TledgEs 2 years ago
The Scripts do get parsed and tokens are created. It doesn't use reflection though. It uses string comparison to determine the actual function calls. So the map object calls "CreateMultiStateObject" based on a Function token which holds the function name as a string. So its about half and half.
Spinja12 2 years ago
Yup i was going the same route,
although the way i was parsing the string to get a number was basically me reinventing the wheel, i just found out today that int had a method call int.parse(string) that does all the work, i created a method that broke down strings into an array a characters getting their digits place getting their numeric representation doing a bunch of crap than finally spitting out the correct representation. I felt dumb when i found out that int.parse() does everything haha
TledgEs 2 years ago
nice
H3llkn0wz 2 years ago