Tuesday, June 15, 2010
SFPC - June Update
So here it is, the next big update. So much has changed since April, here's a list of some of the big stuff:
- Audio: music and sounds now work. Currently using the Audiere sound library, but that could change down the road.
- Events: In the previous demo, I explained that I couldn't handle events that contained multiple commands yet. That limitation has been dealt with by implementing...
- Scripting Engine: Way back in the day, while I was just a comp sci undergrad, I worked with Nathan Yam creating levels and scripts for our RPG clones, Dream Quest 2000, Dream Saga, and DWPC. The scripting system I have put together for SFPC is based on my experience working with the DreamVision scripting language Nathan created. Other than a very similar scripting syntax, however, it is entirely my own code.
Many game aspects are assembled via scripts: NPCs, party members, events, game startup, map startup. Eventually even more systems will be handled via scripting, like items and spells, but for now those systems are hard coded. I'll be writing some separate posts about the scripting system and showing off some examples.
- Flag System: a backbone of the scripting system is the Flag system. A script can set and check for the presence or absence of flags and then run or not run commands accordingly. This opens up a ton of potential.
Keep an eye out for some scripting examples to be posted soon!