summaryrefslogtreecommitdiffstats
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index 0cab8e5..a94c401 100644
--- a/src/game.c
+++ b/src/game.c
@@ -17,6 +17,7 @@
* along with Dodge Balls. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <SDL.h>
#include <expat.h>
#include <dirent.h>
#include <stdio.h>
@@ -459,6 +460,12 @@ db_game_get_desc(struct db_game *game)
return game->desc;
}
+int
+db_game_play(SDL_Renderer *renderer, struct db_game *game)
+{
+ return db_level_play(renderer, game->level_head);
+}
+
void
db_game_free(struct db_game *game)
{