git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit 0c218c8965233257e693cf8b7fd5cb492f4b9903
parent 346cc4501ddb1eba060009a9aab3f1e05c979d2e
Author: Toxa <untoxa@mail.ru>
Date:   Fri, 26 Apr 2024 13:00:33 +0300

EXAMPLES: define sprite_data[] array constant in the multiplayer example

Diffstat:
Mgbdk-lib/examples/cross-platform/multiplayer/src/multiplayer.c5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gbdk-lib/examples/cross-platform/multiplayer/src/multiplayer.c b/gbdk-lib/examples/cross-platform/multiplayer/src/multiplayer.c @@ -1,7 +1,8 @@ -//#include <stdint.h> #include <gbdk/platform.h> -uint8_t sprite_data[] = { +#include <stdint.h> + +const uint8_t sprite_data[] = { 0x3C,0x3C,0x42,0x7E,0x99,0xFF,0xA9,0xFF,0x89,0xFF,0x89,0xFF,0x42,0x7E,0x3C,0x3C, 0x3C,0x3C,0x42,0x7E,0xB9,0xFF,0x89,0xFF,0x91,0xFF,0xB9,0xFF,0x42,0x7E,0x3C,0x3C, 0x3C,0x3C,0x42,0x7E,0x99,0xFF,0x89,0xFF,0x99,0xFF,0x89,0xFF,0x5A,0x7E,0x3C,0x3C,

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.