Initial commit.
This commit is contained in:
21
src/entity/direction.h
Executable file
21
src/entity/direction.h
Executable file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Copyright (c) 2025 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "microrpg.h"
|
||||
|
||||
#define DIRECTION_UP 0
|
||||
#define DIRECTION_RIGHT 1
|
||||
#define DIRECTION_DOWN 2
|
||||
#define DIRECTION_LEFT 3
|
||||
|
||||
#define DIRECTION_NORTH DIRECTION_UP
|
||||
#define DIRECTION_EAST DIRECTION_RIGHT
|
||||
#define DIRECTION_SOUTH DIRECTION_DOWN
|
||||
#define DIRECTION_WEST DIRECTION_LEFT
|
||||
|
||||
typedef uint8_t direction_t;
|
||||
Reference in New Issue
Block a user