Go to file
Masséna 46163af18f teh moon show 2022-04-12 02:08:18 +02:00
build-cg teh moon show 2022-04-12 02:08:18 +02:00
inc teh moon show 2022-04-12 02:08:18 +02:00
res teh moon show 2022-04-12 02:08:18 +02:00
src teh moon show 2022-04-12 02:08:18 +02:00
CMakeLists.txt teh moon show 2022-04-12 02:08:18 +02:00
LICENSE teh moon show 2022-04-12 02:08:18 +02:00
Makefile teh moon show 2022-04-12 02:08:18 +02:00
README.md teh moon show 2022-04-12 02:08:18 +02:00
lzy teh moon show 2022-04-12 02:08:18 +02:00
moonshow.g3a teh moon show 2022-04-12 02:08:18 +02:00

README.md

lzy

Simple game framework for SDL2 and gint.

Usage

Drop (inc/lzy.h)[lzy.h] into an existing project.

Include implementation in a single source file:

#define LZY_IMPLEMENTATION
#include "lzy.h"

Optional defines before implementation:

#define LZY_IMPLEMENTATION
#define LZY_SDL_INCLUDE <SDL.h>
#define LZY_SDL_IMAGE_INCLUDE <SDL_image.h>
#define LZY_SDL_MIXER_INCLUDE <SDL_mixer.h>
#define LZY_GINT_TILESET bimg_tset
#define LZY_GINT_FONT bimg_font
#define LZY_DISPLAY_WIDTH 396
#define LZY_DISPLAY_HEIGHT 224
#define LZY_TILE_SIZE 16
#define LZY_CHR_WIDTH LZY_TILE_SIZE
#define LZY_CHR_HEIGHT LZY_TILE_SIZE
#define LZY_FIRST_CHR ' '
#include "lzy.h"

Don't define LZY_IMPLEMENTATION before other inclusions.

For data structures and function prototypes, read the source.