====== 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
[+/-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... eate a [[en:tutorials:orxscroll:creating_your_own_scroll_project_using_init|Scroll-based]] or [[en:tutorials:ui:imgui|ImGui-based project]] (or both).
===== Scr
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
====== 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
====== 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
====== 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
, -300)
Loop = true
</code>
===== orx/Scroll based projects =====
You can also create an orx/Scroll-based Dear ImGui project. See: [[en:tutorials:orxscroll:creating_your_own_scroll_project_using_init|Creating your own orx/Scroll project using 'init']]
===== Learning ImGui =====
To ge
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']]
===== Learning Nuklear =====
To
ou might want to look at [[https://github.com/orx/scroll|Scroll]], which is a thin C++ layer on top of orx.
Orx does bookkeeping on all the orxSTRUCTURE derivati... VENT_CREATE event.
Another alternative is to use scroll C++ wrapper as it takes care of orxOBJECT_EVENT_C
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