Thursday, December 6, 2007

3rd milestone today

ok today is the 3rd milestone.
so what have i done?
it might seem that our build this time round is not much different from the last milestone on the surface, but that's not the case. i did a major overhaul on the codes structure, taking apart gib's and then restructuring them.
the thing about both of us is, gib is good at figuring out new stuff, he's able to start quickly on a new platform and show u something on the screen. while i will do the garbage cleaning and give u a pretty structure. i probably won't have new things on the screen for u in the first few weeks.
anyway,
what happens is previously, everything was defined per location.
so we had location1_screwdriver, location1_newspaper something like that.. which meant that this screwdriver and newspaper, were just used in location1. and because that's the variable name of that item now, if i need a newspaper in chapter 5 say location x, i have to declare a new one. because the codes have to somehow be able to create a new string with the current location id to refer to this variable.

so xp changed that (because we also got the reminder that we prob need another script-writer which might not be a programmer). now the items are just id-ed with a unique number, and its name in the string table which the script will get thru the id. Then i have a script called Scene, which holds the id of everything i need, location, character, dialogues etc, and the codes will composite them. in this way, a non programmer can refer to our list of items, and just write new scripts for new scenes easily. better still, i can reuse my parts like lego bricks. ;)

No comments: