The user can now click to create a cell anywhere. Terrible main loop for drawing the cells but good enough for quick and dirty testing.
This commit is contained in:
+4
-1
@@ -19,8 +19,11 @@ typedef struct cell {
|
||||
struct cell* BottomRight;
|
||||
State Status;
|
||||
SDL_Rect Hitbox;
|
||||
int Visited;
|
||||
int x;
|
||||
int y;
|
||||
} Cell;
|
||||
|
||||
Cell* CreateCell(SDL_Rect);
|
||||
Cell* CreateCell(int x, int y);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user