Adding back GLFW
This commit is contained in:
@ -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;
|
@ -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:
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user