Vastly improve UI
This commit is contained in:
@ -30,7 +30,7 @@ void playerUpdate(entity_t *entity) {
|
||||
return entityWalk(entity, ENTITY_DIRECTION_EAST);
|
||||
}
|
||||
|
||||
if(inputIsDown(INPUT_BIND_ACCEPT)) {
|
||||
if(inputWasPressed(INPUT_BIND_ACCEPT)) {
|
||||
// Check what the player is trying to interact with
|
||||
uint16_t x = entity->x, y = entity->y;
|
||||
entityDirectionOffsetAdd(entity->direction, &x, &y);
|
||||
@ -45,7 +45,7 @@ void playerUpdate(entity_t *entity) {
|
||||
|
||||
target->state = ENTITY_STATE_TALKING;
|
||||
entity->state = ENTITY_STATE_TALKING;
|
||||
textboxSetText("Hello Player");
|
||||
textboxSetText("NPC", "Hello Player");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user