changeset 2:8f23be2db808

Movec creep.h into the src folder. Added main loop
author Mike Pavone <pavone@retrodev.com>
date Sun, 12 Jan 2014 12:20:42 -0800
parents 99f5e303fca1
children b4d360d2e66c 11fbaecc6c5e
files creep.h src/creep.h src/main.c
diffstat 3 files changed, 27 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/creep.h	Sun Jan 12 12:15:24 2014 -0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-#ifndef CREEP_H_
-#define CREEP_H_
-
-enum {
-	CREEP_NORMAL = 0
-} creep_species;
-
-typedef struct {
-	u16  index;
-	u16  health;
-	u8   species;
-	u8   direction;
-} creep;
-
-#endif //CREEP_H_
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/creep.h	Sun Jan 12 12:20:42 2014 -0800
@@ -0,0 +1,15 @@
+#ifndef CREEP_H_
+#define CREEP_H_
+
+enum {
+	CREEP_NORMAL = 0
+} creep_species;
+
+typedef struct {
+	u16  index;
+	u16  health;
+	u8   species;
+	u8   direction;
+} creep;
+
+#endif //CREEP_H_
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main.c	Sun Jan 12 12:20:42 2014 -0800
@@ -0,0 +1,12 @@
+#include <genesis.h>
+#include "creep.h"
+
+int main(void)
+{
+	for (;;)
+	{
+		VDP_waitVSync();
+		VDP_updateSprites();
+	}
+	return 0;
+}