====== An Introduction to Scroll ======
===== What is Scroll? =====
Scroll is a C++ convenience layer built on top of orx.
===== Features =====
* Scroll supports “object binding” to custom classes. This
llowing steps:
- The Tower object will ask the Scroll class via a function to affect the nearest enemy.
- The function in the Scroll class will enumerate all the Enemy objects availa... 's colour changed.
{{page>snippets:init_new_orx_scroll_project&nofooter&noeditbutton}}
Rename the Scroll class to ''TowerDistance'' and rename the scroll heade
====== Creating your own orx/Scroll project using 'init' ======
You can easily generate an orx/Scroll project using ''init'' from the github version of... ave built Orx.
===== How to Create your own orx/Scroll project =====
There are two ways to create an orx/Scroll project. Firstly, using Interactive Mode:
init
====== The Binding of Objects in orx/Scroll ======
The code for this tutorial is available at https://github.com/orx/scroll-tutorial
===== What is "Object Binding"? =====
... behaviors of the object.
This means when an Orx/Scroll Object is created, it can automatically be set to... or the Development Version]].
===== Create a new Scroll Project =====
Before you begin this tutorial, yo
h [[en:tutorials:orxscroll:introduction-orxscroll|Scroll]].
==== Compiling ScrollEd with Scroll ====
ScrollEd is included in the Scroll header files, so you don't have to make any changes to your Scroll project to use it. However, you do have to make s
====== Accessing the Scroll class from a ScrollObject ======
Being able to access common functions in the Scroll class is pretty essential in a Orx/Scroll based game. The ''Scroll'' class provides a singleton which can be accessed from anywhere in a ''ScrollOb
he default application configuration file for orx/Scroll ======
The format for bootstrapping the starting... ng_default_config_file|shown here]].
When an orx/Scroll game or application starts, the matching config d... hange this, add a ''Bootstrap'' prototype to your Scroll header:
<code cpp>
class MyGame : public Scroll<MyGame>
{
private:
virtual orxSTATUS Bootstrap() const;
====== Pathfinding routines for orx/Scroll ======
This is not exactly a tutorial but more of a guide on how to use the pathfinder code for your orx/Scroll games.
{{ :tutorials:orxscroll:path-grid.png?nol... ttps://alienabductionunit.com/pathfinding-for-orx-scroll|guide over at the Alien Abduction Unit]].
And the repo is located at: https://gitlab.com/sausagejohnson/room-paths-scroll
avel along a curve segment.
===== Set up an orx/Scroll project =====
You can follow [[en:tutorials:orxscroll:creating_your_own_scroll_project_using_init|this tutorial to help you set up a new orx/Scroll project]]. Once set up, create a ScrollObject cla
hese for your game.
{{page>snippets:init_new_orx_scroll_project&nofooter&noeditbutton}}
===== Class for ... e right child object - however, [[en:examples:orx_scroll:get_child_under_scrollobject_by_name|this is a be
====== Scroll, Cameras and Viewports ======
This is a super short tutorial, more a reminder of how Camera... ===== The MainCamera and MainViewport =====
In a Scroll project, the MainCamera and MainViewport are crea