====== Scrolling tutorial ======
===== Summary =====
See previous basic tutorials for more info about ba... his tutorial shows how to display a [[wp>Parallax_scrolling|parallax scrolling]].
As you can see, there's no special code for the [[wp>Parallax_scrolling|parallax scrolling]] itself.\\
Actually, orx'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... when the object is deleted, etc.
{{:tutorials:orxscroll:character_boy.png?nolink|}} {{:tutorials:orxscrol
====== ScrollObject to ScrollObject Communication ======
Your ScrollObject might want to know what is going on in the world around it.... ce game. Imagine you had a tower in the form of a ScrollObject. It wants to know about the closest robot e
===== Creating Maps in ScrollEd =====
ScrollEd is a map/level editor that can be used with [[en:tutorials:orxscroll:introduction-orxscroll|Scroll]].
==== Compiling ScrollEd with Scroll ====
ScrollEd is included in the S
====== 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
====== 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
====== 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 ... _
#include "mygame.h"
class ProgressBar : public ScrollObject
{
public:
protected:
void O
====== 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
[+/-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
====== Moving a ScrollObject along a curve segment ======
In this tutorial we'll go work through how to m... 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]].
====== Colliding ScrollObjects with Orx Objects ======
ScrollObject classes provides a lot of functionality and organisation fo... g Orx object.
For testing collisions between one ScrollObject and another, the class provides the ''OnCol... ' function eg:
<code c>
orxBOOL Truck::OnCollide(ScrollObject *_poCollider,
orx
Tilemaps in a shader, what's it all about?
Long scrolling levels can be constructed using graphic tiles ... g the GPU, you can have extremely long and smooth scrolling maps, all done by the GPU and with very little... up shortly) will paint the tiles every frame, and scroll them for you.
===== The workflow =====
- Crea... usage:
orximagemap -i C:\Dev\orx-projects\MyScrollingGame\data\config\tiled.ini -m "GameMap" -o C:\D
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;