aboutsummaryrefslogtreecommitdiff
path: root/editor/editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor.h')
-rw-r--r--editor/editor.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/editor/editor.h b/editor/editor.h
new file mode 100644
index 0000000..422a2fe
--- /dev/null
+++ b/editor/editor.h
@@ -0,0 +1,25 @@
+#ifndef EDTIOR_H_
+#define EDTIOR_H_
+
+#include "tile.h"
+
+#define SCREEN_WIDTH (320)
+#define SCREEN_HEIGHT (256)
+
+typedef uint8_t Editor_State;
+enum {
+ EDITOR_TILE,
+ // EDITOR_ENTITY,
+};
+
+typedef struct {
+ ty_Font font;
+ Editor_State state;
+ Tile_Editor tile;
+} Editor;
+
+extern Editor editor;
+
+int editor_main(void);
+
+#endif // EDTIOR_H_