Re: [Super-tux-devel] TODO 0.0.7
Brought to you by:
wkendrick
From: Christopher A. W. <cr...@li...> - 2004-03-17 20:55:59
|
On Wed, 2004-03-17 at 10:10, Ricardo Cruz wrote: > I would go with the following layers: > > - slower speed background (moving in a slower speed than the games one); > - normal speed background (moving in normal speed); > - normal tiles - the ones that Tux has interaction with; > - normal speed foreground; > - slower speed foreground. > > Maybe we could have 3 layers of backround and foreground. > A part from this, there would be a static image or color for the background > and the moving platforms and bad guys. I thought quite a bit a bout this, and I realized that we don't even need to set how many there are going to be. All we need to do is have two definite ones: background and foreground. Users can set on their levels extra layers that either fit between the background and the foreground or lie above the foreground. The speed on these should not be hard-coded, it should be set by the user. It might sound complicated, but it really isn't. Just have the layers work via a linked list and have each (besides the foreground) have its own variable for its relative moving speed. We can use this later to also add an extra layer where lightning effects and such are placed. Anyway, that's what I think would be best. Christopher Allan Webber | The bottom line |