User Tools

Site Tools


en:tutorials:scrolling

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorials:scrolling [2015/10/28 19:34 (9 years ago)] – ↷ Links adapted because of a move operation sausageen:tutorials:scrolling [2020/08/31 05:44 (4 years ago)] (current) – ↷ Links adapted because of a move operation sausage
Line 3: Line 3:
 ===== Summary ===== ===== Summary =====
  
-See previous [[main_previous#Basic|basic tutorials]] for more info about basic [[object|object creation]], [[clock|clock handling]], [[frame|frames hierarchy]], [[anim|animations]], [[viewport|cameras & viewports]], [[sound|sounds & musics]], [[FX|FXs]] and [[physics]].+See previous basic tutorials for more info about basic [[.objects:object|object creation]], [[.clocks:clock|clock handling]], [[.objects:frame|frames hierarchy]], [[.animation:anim|animations]], [[.viewport:viewport|cameras & viewports]], [[.audio:sound|sounds & musics]], [[.fx:fx|FXs]] and [[.physics:physics]].
  
 This tutorial shows how to display a [[wp>Parallax_scrolling|parallax scrolling]]. This tutorial shows how to display a [[wp>Parallax_scrolling|parallax scrolling]].
Line 28: Line 28:
  
 The last point concerns the sky.\\ The last point concerns the sky.\\
-As seen in the [[frame|frame tutorial]], we set the sky object's frame as a child of the camera.\\+As seen in the [[.objects:frame|frame tutorial]], we set the sky object's frame as a child of the camera.\\
 This means the position set for the sky object in the config file will always be relative to the camera one.\\ This means the position set for the sky object in the config file will always be relative to the camera one.\\
 In other words, the sky will always follow the camera.\\ In other words, the sky will always follow the camera.\\
Line 37: Line 37:
 As usual, we begin by creating a viewport, getting the main clock and registering our ''Update'' function to it.\\ As usual, we begin by creating a viewport, getting the main clock and registering our ''Update'' function to it.\\
 Lastly, we create our ''Sky'' background and all our ''Cloud'' objects.\\ Lastly, we create our ''Sky'' background and all our ''Cloud'' objects.\\
-Please refer to the [[main_previous#Basic|previous tutorials]] for more details.+Please refer to the previous tutorials for more details.
  
 Now let's see our ''Update'' function. First, we get our camera speed from config and update it using to our DT so as not to be framerate dependent. Now let's see our ''Update'' function. First, we get our camera speed from config and update it using to our DT so as not to be framerate dependent.
Line 142: Line 142:
 ===== Resources ===== ===== Resources =====
  
-Source code: [[https://bitbucket.org/orx/orx/src/2de6026f32be/tutorial/src/09_Scrolling.c|09_Scrolling.c]]+Source code: [[https://github.com/orx/orx/blob/master/tutorial/src/09_Scrolling.c|09_Scrolling.c]]
  
-Config file: [[https://bitbucket.org/orx/orx/src/2de6026f32be/tutorial/bin/09_Scrolling.ini|09_Scrolling.ini]]+Config file: [[https://github.com/orx/orx/blob/master/tutorial/bin/09_Scrolling.ini|09_Scrolling.ini]]
en/tutorials/scrolling.1446086052.txt.gz · Last modified: 2017/05/30 00:50 (7 years ago) (external edit)