Aktualizovat a3/world.h
This commit is contained in:
parent
19c7d3cd82
commit
dee86b1655
14
a3/world.h
14
a3/world.h
@ -0,0 +1,14 @@
|
|||||||
|
#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
|
Loading…
Reference in New Issue
Block a user