Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 684 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 684 Bytes

MagicWords

header-only console game library

Define MAGICWORDS_IMPLEMENTATION to enable function definition, for example:

#define MAGICWORDS_IMPLEMENTATION
#include "MagicWords.h"

Supported functions:

MW_Stage* MW_CreateStage(int width, int height);
void MW_ClearStage(MW_Stage* stage, char c);
void MW_RenderStage(const MW_Stage* stage);
void MW_DestroyStage(MW_Stage* stage);

MW_Sprite* MW_CreateSprite(const char** content, int width, int height);
void MW_DestroySprite(MW_Sprite* sprite);

void MW_CopySprite(MW_Stage* stage, const MW_Sprite* sprite, const MW_Rect* src, const MW_Point* dst);

int MW_GetInput(int* input);     // only for Windows