Re: [Super-tux-devel] Back scrolling
Brought to you by:
wkendrick
From: Bill K. <nb...@so...> - 2003-12-29 18:05:03
|
On Mon, Dec 29, 2003 at 01:15:35AM +0000, Ricardo Cruz wrote: > > Hey there! > > I've noticed that there is a difference, in the code, between the tux is > going to the right and to the tux is being looking to the right. > This leads to some bugs (for instance, after pressed the jump and change the > direction during the jumping, tux will still be looking at the other side) > and it also causes a lot of code, that makes scrolling back hard to > implement, without repeating code. NOTE: The fact that Tux moves differently when jumping was coded in on purpose! If he jumps to the left, if you suddenly decided to move right (backwards) while jumping, he won't move right nearly as fast as he was moving to the left. He also won't turn to FACE the right until he lands. This is a gameplay style specifically borrowed from Super Mario Bros. Sorry if it affects the backwards-scrolling code... of course, that's only in there for debugging, anyway. It's not supposed to scroll backward to begin with. :^) -bill! |