|
Polygon Dash
|
Move the player by a specified amount each frame. More...
Public Member Functions | |
| this (size_t owner, int depth, ComponentTransform transform) | |
| Set up the script. | |
| override void | Update () |
| Move the object forward. | |
Public Member Functions inherited from ComponentScript | |
| this (size_t id) | |
| Store the owner id. | |
| override void | Render (SDL_Renderer *renderer, SDL_Rect *camera) |
| Render the given script. | |
Public Member Functions inherited from IComponent | |
Public Attributes | |
| ComponentTransform | mTransform |
| The ComponentTransform of the linked GameObject. | |
| int | mSpeed |
| The speed to move the parallaxed GameObject. | |
Move the player by a specified amount each frame.
The amount is different from the player speed to give a 3D effect.
|
inline |
Set up the script.
| owner | the id of the linked GameObject. |
| depth | the speed to move the parallaxed GameObject.. |
| transform | the ComponentTransform of the linked GameObject. |
|
inlinevirtual |