Core Native GBA 0.0.17
create your own game-engine with just lua for nitendo game boy advance console.
Loading...
Searching...
No Matches
draw_logo.c
Go to the documentation of this file.
1#include "zeebo.h"
2
3#ifndef ENGINE_LOGO
4#error invalid ENGINE_LOGO
5#endif
6
7/**
8 * https://github.com/gamelly/gly-type
9 */
10extern void gly_type_render(uint8_t, uint8_t, uint8_t, char*, void*);
11
13{
14#if ENGINE_LOGO > 0
16 draw_queue_push(48, 3, 0, 1, 0);
17 draw_queue_push(49, 0, 0, 0, 0);
18#if ENGINE_LOGO == 1
19 static const uint8_t ver_x = 97;
20 static const uint8_t ver_y = 80;
21 draw_queue_push(48, 0, 0, 1, 0);
22 draw_queue_push(49, 0x00, 0x00, 0xFF, 0);
23 draw_queue_push(50, 90, 45, 50, 15);
24 draw_queue_push(49, 0x00, 0xFF, 0x67, 0);
25 draw_queue_push(50, 90, 45+15, 50, 5);
26 draw_queue_push(49, 0xFF, 0xe7, 0x00, 0);
27 draw_queue_push(50, 90, 45+20, 50, 5);
28 draw_queue_push(49, 0xFF, 0x76, 0x00, 0);
29 draw_queue_push(50, 90, 45+25, 50, 5);
30 draw_queue_push(49, 0xFF, 0x00, 0x00, 0);
31 draw_queue_push(50, 90, 45+30, 50, 5);
32 draw_queue_push(49, 0xFF, 0x00, 0xFF, 0);
33 draw_queue_push(50, 90, 45+35, 50, 10);
34 draw_queue_push(48, 1, 0, 1, 0);
35 draw_queue_push(49, 0xFF, 0xFF, 0xFF, 0);
36 gly_type_render(95, 56, 12, "gly", draw_queue_clojure(51));
37 gly_type_render(95, 72, 5, "engine", draw_queue_clojure(51));
38 draw_queue_push(50, 90, 45, 50, 45);
39#elif ENGINE_LOGO == 2
40 static const uint8_t ver_x = 97;
41 static const uint8_t ver_y = 84;
42 draw_queue_push(48, 0, 0, 1, 0);
43 draw_queue_push(49, 0x80, 0xC0, 0xFF, 0);
44 draw_queue_push(50, 90, 45, 50, 22);
45 draw_queue_push(49, 0xFF, 0x80, 0x80, 0);
46 draw_queue_push(50, 90, 45+22, 50, 23);
47 draw_queue_push(48, 1, 0, 1, 0);
48 draw_queue_push(49, 0xFF, 0xFF, 0xFF, 0);
49 gly_type_render(95, 67-5, 9, "LOVE", draw_queue_clojure(51));
50 draw_queue_push(51, 90+40, 45+2, 90+48, 45+2);
51 draw_queue_push(51, 90+48, 45+2, 90+48, 45+6);
52 draw_queue_push(50, 90, 45, 50, 45);
53#elif ENGINE_LOGO == 3
54 static const uint8_t ver_x = 107;
55 static const uint8_t ver_y = 80;
56 gly_type_render(95, 50, 5, "GameBoy", draw_queue_clojure(51));
57 gly_type_render(95, 56, 4, "advanced", draw_queue_clojure(51));
58 gly_type_render(95, 62, 10, "CORE", draw_queue_clojure(51));
59 gly_type_render(95, 74, 5, "native", draw_queue_clojure(51));
60#endif
61 gly_type_render(ver_x, ver_y, 4, "0.0.17", draw_queue_clojure(51));
63#endif
64}
void draw_logo()
Definition draw_logo.c:12
void gly_type_render(uint8_t, uint8_t, uint8_t, char *, void *)
void draw_queue_burn(uint8_t page)
Definition draw_queue.c:50
cmd_t draw_queue_clojure(uint8_t cmd)
Definition draw_queue.c:19
void draw_queue_page(uint8_t page)
Definition draw_queue.c:36
void draw_queue_push(uint8_t cmd, uint8_t a, uint8_t b, uint8_t c, uint8_t d)
Definition draw_queue.c:25