====== 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
====== 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... when the object is deleted, etc.
{{:tutorials:orxscroll:character_boy.png?nolink|}} {{:tutorials:orxscrol
====== 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
[+/-mod] [+/-movie] [+/-nuklear] [+/-remote] [+/-scroll] [+/-sndh]
- name: Project name (relative or f... ed on a web server, HTTP-only)=[no], optional
- scroll: C++ convenience layer with config-object binding... additional options to create a [[en:tutorials:orxscroll:creating_your_own_scroll_project_using_init|Scroll-based]] or [[en:tutorials:ui:imgui|ImGui-based project
el editor that can be used with [[en:tutorials:orxscroll:introduction-orxscroll|Scroll]].
==== Compiling ScrollEd with Scroll ====
ScrollEd is included in the Scroll header files, so you don
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
By default, in this tutorial, the attribute ''AutoScroll'' is set to 'both'.\\
This means a [[wp>Parallax_... ue to x, y or even to remove it.
Along the ''AutoScroll'' attribute, you can find the ''DepthScale'' one.... = (0.0, 0.0, 100.0) ~ (3000.0, 2000.0, 500.0)
AutoScroll = both
DepthScale = true
Color = (180, 18... ode>
The two important attributes here are ''AutoScroll'' that activates the [[wp>Parallax_scrolling|para
====== How to create a Progress Bar in orxScroll ======
Having a progress bar to represent health meters,... a common element in games. The object oriented orxScroll wrapper for Orx is the perfect tool for making co... hese for your game.
{{page>snippets:init_new_orx_scroll_project&nofooter&noeditbutton}}
===== Class for ... ar in the centre of the screen.
{{ :tutorials:orxscroll:progressbar.png?nolink |}}
Because we have a Scr
====== 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;
into separate documents.
</WRAP>
====== Xcode4 Scroll setup, Console-less apps and Resources ======
Or... /premake subdirectory of orx project tree.
===== Scroll Build Configuration in XCode 4 =====
If all ORX ... contains game project
./orx/ contains orx clone
./scroll/ contains Scroll clone
</code>
<sup>Note:</sup> The model above is great for keeping up to date with ext
nk_end(&sstNuklear.stContext);
</code>
===== orx/Scroll based projects =====
You can also create an orx/Scroll-based Nuklear project. See: [[en:tutorials:orxscroll:creating_your_own_scroll_project_using_init|Creating your own orx/Scroll project using 'init']]
===== Le