Thread: [Super-tux-devel] Back scrolling
Brought to you by:
wkendrick
From: Ricardo C. <ri...@ae...> - 2003-12-29 01:12:00
|
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. However, that was my first impression... Would be cool to have back scrolling, ah? Ricardo -- Moebius always does it on the same side. |
From: Ricardo C. <ri...@ae...> - 2004-05-03 12:47:33
|
Hey there, I have improved back scrolling code a bit and enabled it, in case the level explicitly asks for it. So, do you think that any level shipped with SuperTux 0.1 should have back scrolling at all? I know it takes the fun of some levels, but there are some like the "Above the Arctic Skies" and the last one that I think there is no problem in enabling it. There is also this problem, I have used the read_bool(), but I don't know how does the lisp parser identifies the boolean entries. It seems to check for t or f , but it crashes when I try them... Help, anyone? Ricardo Cruz -- The typical page layout program is nothing more than an electronic light table for cutting and pasting documents. |
From: Michael G. <mi...@ge...> - 2004-05-03 13:17:47
|
I believe it uses #t and #f. --Mike Ricardo Cruz wrote: > Hey there, > > I have improved back scrolling code a bit and enabled it, in case the level > explicitly asks for it. > So, do you think that any level shipped with SuperTux 0.1 should have back > scrolling at all? I know it takes the fun of some levels, but there are some > like the "Above the Arctic Skies" and the last one that I think there is no > problem in enabling it. > > There is also this problem, I have used the read_bool(), but I don't know how > does the lisp parser identifies the boolean entries. It seems to check for t > or f , but it crashes when I try them... Help, anyone? > > Ricardo Cruz > |
From: Ingo R. <gr...@gm...> - 2004-05-03 13:24:22
|
Ricardo Cruz <ri...@ae...> writes: > I have improved back scrolling code a bit and enabled it, in case the level > explicitly asks for it. Rather useless at this point. > So, do you think that any level shipped with SuperTux 0.1 should have back > scrolling at all? No, the lack of back scrolling was already decided a long time ago for Milestone1, beside backscrolling without horizontal scrolling is just weird. > I know it takes the fun of some levels, but there are some > like the "Above the Arctic Skies" and the last one that I think there is no > problem in enabling it. It changes the game mechanics, bad thing. > There is also this problem, I have used the read_bool(), but I don't know how > does the lisp parser identifies the boolean entries. It seems to check for t > or f , but it crashes when I try them... Help, anyone? Lisp (or better the lispreader) supports these datatypes: Boolean: #t, #f Symbols: foo, bar Strings: "foo", "bar" Real: 1.5 Integer: 15 How the numbers and booleans are used should be clear. I use Symbols in places where I want to map to a 'enum' (badguy type, section headings) and Strings where I can have abitarry string data (levelname, etc), -- WWW: http://pingus.seul.org/~grumbel/ JabberID: gr...@ja... ICQ: 59461927 |
From: Ricardo C. <ri...@ae...> - 2004-05-03 13:36:31
|
Thx, fixed. Should have done my homework with more attention ;) I also made the level 13 to have back scrolling, mostly for testing purposes. So, run it (supertux data/levels/world1/level13.stl), if you wanna try it. Have fun, Ricardo Em Segunda, 3 de Maio de 2004 14:17, o Michael George escreveu: > I believe it uses #t and #f. > > --Mike > > Ricardo Cruz wrote: > > Hey there, > > > > I have improved back scrolling code a bit and enabled it, in case the > > level explicitly asks for it. > > So, do you think that any level shipped with SuperTux 0.1 should have > > back scrolling at all? I know it takes the fun of some levels, but there > > are some like the "Above the Arctic Skies" and the last one that I think > > there is no problem in enabling it. > > > > There is also this problem, I have used the read_bool(), but I don't > > know how does the lisp parser identifies the boolean entries. It seems to > > check for t or f , but it crashes when I try them... Help, anyone? > > > > Ricardo Cruz > -- Even if you do learn to speak correct English, whom are you going to speak it to? -- Clarence Darrow |
From: Ingo R. <gr...@gm...> - 2004-05-03 14:03:58
|
Ricardo Cruz <ri...@ae...> writes: > I also made the level 13 to have back scrolling, mostly for testing purposes. > So, run it (supertux data/levels/world1/level13.stl), if you wanna try it. How about doing this in the level subset instead of breaking the official Milestone1 levels? -- WWW: http://pingus.seul.org/~grumbel/ JabberID: gr...@ja... ICQ: 59461927 |
From: Ricardo C. <ri...@ae...> - 2004-05-03 14:16:32
|
It is not breaking, if you tried it, you would notice that it is working fine. Ricardo Em Segunda, 3 de Maio de 2004 15:03, o Ingo Ruhnke escreveu: > Ricardo Cruz <ri...@ae...> writes: > > I also made the level 13 to have back scrolling, mostly for testing > > purposes. So, run it (supertux data/levels/world1/level13.stl), if you > > wanna try it. > > How about doing this in the level subset instead of breaking the > official Milestone1 levels? -- In the pitiful, multipage, connection-boxed form to which the flowchart has today been elaborated, it has proved to be useless as a design tool -- programmers draw flowcharts after, not before, writing the programs they describe. - Fred Brooks, Jr. |
From: Ingo R. <gr...@gm...> - 2004-05-03 15:44:20
|
Ricardo Cruz <ri...@ae...> writes: > It is not breaking, if you tried it, you would notice that it is working > fine. Milestone1 was decided to not have any backscrolling, introducing backscrolling into it is a bug, even if it works reasonablly.. -- WWW: http://pingus.seul.org/~grumbel/ JabberID: gr...@ja... ICQ: 59461927 |
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! |