Adding back GLFW

This commit is contained in:
2024-10-04 09:37:32 -05:00
parent 4205b919d4
commit be27408cf4
32 changed files with 7512 additions and 16 deletions

View File

@ -1,17 +0,0 @@
/**
* Copyright (c) 2024 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include "dusk.h"
typedef struct {
} cutsceneevent_t;
typedef struct {
} cutscene_t;

View File

@ -10,6 +10,7 @@
#include "rpg/world/map.h"
#include "assert/assert.h"
#include "time.h"
#include "ui/textbox.h"
void entityInit(
entity_t *entity,
@ -69,6 +70,7 @@ void entityUpdate(entity_t *entity) {
break;
case ENTITY_STATE_TALKING:
if(!textboxIsOpen()) entity->state = ENTITY_STATE_IDLE;
break;
default:

View File

@ -11,6 +11,7 @@
#include "rpg/world/map.h"
#include "input.h"
#include "assert/assert.h"
#include "ui/textbox.h"
void playerInit(entity_t *entity) {
assertTrue(entity->type == ENTITY_TYPE_PLAYER, "Entity is not a player.");
@ -44,6 +45,7 @@ void playerUpdate(entity_t *entity) {
target->state = ENTITY_STATE_TALKING;
entity->state = ENTITY_STATE_TALKING;
textboxSetText("Hello Player");
return;
}
}