update demo window
This commit is contained in:
+4
-4
@@ -25,10 +25,8 @@ client_poll_event()
|
|||||||
void
|
void
|
||||||
client_update_framebuffer()
|
client_update_framebuffer()
|
||||||
{
|
{
|
||||||
// single green demo pixel
|
// example window contents
|
||||||
game_state->framebuffer[0] = 0x00FF00;
|
clear_framebuffer(0xFFFF00);
|
||||||
|
|
||||||
put_rect(0, 0, 1100, 200, 0xFFFF00);
|
|
||||||
put_string("Hello, traveller. You have come\nto the right place!",
|
put_string("Hello, traveller. You have come\nto the right place!",
|
||||||
20, 20, 2, 2, 3, 0x000000, 0xFFFF00
|
20, 20, 2, 2, 3, 0x000000, 0xFFFF00
|
||||||
);
|
);
|
||||||
@@ -39,6 +37,8 @@ main()
|
|||||||
{
|
{
|
||||||
// initialize the engine
|
// initialize the engine
|
||||||
if (engine_init(
|
if (engine_init(
|
||||||
|
500, 100,
|
||||||
|
"Dangerzone",
|
||||||
client_poll_event,
|
client_poll_event,
|
||||||
client_update_framebuffer
|
client_update_framebuffer
|
||||||
)) {
|
)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user