diff options
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -5,6 +5,7 @@ #include <zoom/texture.h> #include <zoom/level.h> #include <zoom/light.h> +#include <zoom/player.h> LEVEL *level; GLuint sphere; @@ -13,6 +14,8 @@ GLuint lightmap; extern TEXLIST *texlist; +extern PLAYER player; + int InitGame() { LIGHT light = {LIGHT_POINT, {15.0, 15.0, 15.0}, {0.0, 0.0, 0.0}}; @@ -59,6 +62,8 @@ int InitGame() { level = LoadLevel("level.lvl"); + player.pos = level->info->start; + sphere = glGenLists(1); glNewList(sphere, GL_COMPILE); glRotatef(90, 1.0, 0.0, 0.0); |