15 lines
301 B
C
15 lines
301 B
C
#ifndef WORLD_H_INCLUDED
|
|
#define WORLD_H_INCLUDED
|
|
|
|
#include "snake.h"
|
|
|
|
//Initialize a new game state.
|
|
struct state* create_world(int width, int height);
|
|
|
|
void free_world(struct state* st);
|
|
|
|
// Change snake direction
|
|
void change_direction(struct state* st, int dx, int dy);
|
|
|
|
#endif // WORLD_H_INCLUDED
|