cmdfx 0.1.0
Lightweight game engine for your terminal
Loading...
Searching...
No Matches
sprites.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "cmdfx/sprites.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19// Utility Methods - Movement
20
34void Sprite_moveTo_anim(CmdFX_Sprite* sprite, int x, int y, double time);
35
49void Sprite_moveBy_anim(CmdFX_Sprite* sprite, int dx, int dy, double time);
50
51#ifdef __cplusplus
52}
53#endif
void Sprite_moveTo_anim(CmdFX_Sprite *sprite, int x, int y, double time)
Moves a sprite to the given position with an animation.
void Sprite_moveBy_anim(CmdFX_Sprite *sprite, int dx, int dy, double time)
Moves a sprite by the given amount with an animation.
Sprites API for CmdFX.
Represents a sprite that can be drawn to the terminal.
Definition sprites.h:28