So, two points are gone now.
Notice that the back scrolling is still in development, so please calm down, and don't add it to the TODO as a bug. Besides no level use it. I told Ryan to give a look at that code now.
SVN-Revision: 979
H: high priority
L: low priority
-[H] Scrolling still broken, changing directions while jumping causes
- the camera to 'jump', level13 even more broken and full of debug prints
-[M] Tux releases bonus in the intro without collecting them, looks
- stupid, background is most likly drawn twice, intro shouldn't have snow
[M] When aborting a level, lives and score should remain the same as they
were before. Solution: make more dependency between the game engine and worldmap
or just backup those variables before starting a level.
(bkgd_blue 255)
(time 500)
(gravity 10)
- (particle_system "snow")
(theme "antarctica")
(interactive-tm
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
(bkgd_blue_bottom 255)
(time 200)
(gravity 10.0)
- (back_scrolling #t)
+ (back_scrolling #f)
(particle_system "clouds")
(theme "antarctica")
(interactive-tm
final_scroll_x = tux_pos_x - (screen->w - X_SPACE);
else// if (tux.dir == LEFT)// && )
final_scroll_x = tux_pos_x - X_SPACE;
-printf("%f\n", frame_ratio);
+
scroll_x += ((final_scroll_x - scroll_x) / (CHANGE_DIR_SCROLL_SPEED)) * frame_ratio;
}