update readme

This commit is contained in:
Masséna Fezard | Nounouille 2022-04-04 08:31:42 +02:00
parent ff53f002f7
commit efc7b6961e
1 changed files with 4 additions and 32 deletions

View File

@ -1,34 +1,6 @@
# lzy
Simple game framework for SDL2 and gint.
# PC Brawl
## Usage
A prototype for the game (Planète Casio Brawl)[https://www.planet-casio.com/Fr/forums/topic16706-1-discussion-planete-casio-brawl-un-jeu-de-combat-pour-calculatrices.html]
Need make to create a linux binary, and fxsdk to create a .g3a.
Drop (inc/lzy.h)[lzy.h] into an existing project.
Include implementation in a single source file:
```c
#define LZY_IMPLEMENTATION
#include "lzy.h"
```
Optional defines before implementation:
```c
#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.
This project use (LZY)[https://gitea.planet-casio.com/KikooDX/lzy]