====== An Introduction to Scroll ======
===== What is Scroll? =====
Scroll is a small set of C++ files that allow you to use the object-oriented features of C++ when using 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 ======
I keep a github repository for the code in this tutori... behaviors of the object.
This means when an Orx/Scroll Object is created, it can automatically be set to... ments in the provided config.
===== Create a new Scroll Project =====
Before you begin this tutorial, you need a basic Orx/Scroll project ready. For details on doing this, see the
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
[+/-archive] [+/-c++] [+/-imgui] [+/-nuklear] [+/-scroll]
- name: Project name (relative or full path),... com/immediate-mode-ui/nuklear)=[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
====== 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']]
===== Learning Nuklear =====
To
, -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
====== 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