Wednesday, November 28, 2007

luciola has updates!

oh yay,
luciola has code updates!

some of the 'highlights':
1) everything for a location is stored in assets/loc# where # is the location number.
2) the location bg is always called bg and it's stored inside assets/loc#/images. i tot that made sense cos i can't think of reasons y it shud have many different bgs.
3) the names are all stored in the strings.xml , what happens is if i have to switch location, based on the id, i combine to form a string,
"loc"+id+"name", and store it in my accLocs (accessible Locations) vector. then i create buttons using the same old method.

so now things are more automated now. u press a button u want to go, and i boot up the location with its bg image, and the places that it can go to.

note now that,
1) only the top most button is working. cos i'm sleepy and is KO soon. will add in tmr morn.
2) u see a blank bg first, click once on the screen to make the buttons pop up. will add in the move menu button to do this later.

however, it's not all rosy.
i've got a big problem. detected memory leaks.

1 comment:

gibtang said...

Memory leak fixed by calling the Destroy() on all your TTextGraphic. For TSprite, you need to call Reset() to release the memory for these guys.