Aktualizovat a3/world.h

This commit is contained in:
Mykola Syniavskyi 2025-05-02 10:12:49 +00:00
parent 19c7d3cd82
commit dee86b1655

View File

@ -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