Hello everyone,
I am making a physics based puzzle game and have designed the levels using XML the structure of the Level Design is as follows …
BaseObjectClass -> This class makes the objects for the game.
LevelClass -> This class extends the BaseObjectClass reads from the XML and makes the object by calling functions defined inside the BaseObjectClass
My problem is that … If suppose sometimes I don’t wanna use the Default Image that i have mentioned in the BaseObjectClass and want to use the Image whose location I have provided in the XML file how can i do that ?
(suppose I have an Orange Colored Square as the default square and I want to create 2 exactly same squares but just Red in color … how can i do that)
Any advice would be appreciated …
Thanks a lot
Have a nice day