EPOK RUNTIME
epok::Parallax2DComponent
Class
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
Class
---- Parallax2D ------------------------------------------------------------------------- Moves its actor so the layer scrolls at `scroll_scale` times the camera's speed: 1 moves with the world, 0 stays on screen, 0.5 is a distant layer.
Basic usage
This generated sketch illustrates syntax for reaching the type; adapt it to the actual API contract. Open a member below for an operation-specific example.
C++ example
#include "world2d_tiles.hpp"
epok::Parallax2DComponent& value = /* obtain a valid instance from your game */;Fields and constants
autoscrollExposes `autoscroll` on `epok::Parallax2DComponent` for the world2d tiles module.FieldbaseResolved state, owned by the service.FielddriftExposes `drift` on `epok::Parallax2DComponent` for the world2d tiles module.FieldinitializedExposes `initialized` on `epok::Parallax2DComponent` for the world2d tiles module.Fieldlink2dExposes `link2d` on `epok::Parallax2DComponent` for the world2d tiles module.FieldreferenceExposes `reference` on `epok::Parallax2DComponent` for the world2d tiles module.Fieldrepeat_sizeExposes `repeat_size` on `epok::Parallax2DComponent` for the world2d tiles module.Fieldscroll_scaleExposes `scroll_scale` on `epok::Parallax2DComponent` for the world2d tiles module.Fieldstatic_class_idExposes `static_class_id` on `epok::Parallax2DComponent` for the world2d tiles module.VariablePublic methods
~Parallax2DComponentReleases the resources owned by `epok::Parallax2DComponent`.destructorclass_idPerforms `class id` as part of the world2d tiles module.MethodfollowOne simulation step: `camera` is the active camera's centre (or 0, 0 without one).Methodlevel_attachedPerforms `level attached` as part of the world2d tiles module.Methodset_autoscrollSets autoscroll as part of the world2d tiles module.Methodset_repeat_sizeSets repeat size as part of the world2d tiles module.Methodset_scroll_scaleSets scroll scale as part of the world2d tiles module.Method