diff options
author | neoraider <devnull@localhost> | 2007-10-31 21:57:00 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-10-31 21:57:00 +0100 |
commit | 0d161e31bbc3433e320f2367657fb054974182d3 (patch) | |
tree | ed2a0849e48e5574122835f2e92ac289c4354eed /init.c | |
parent | 36d7e086f613d111f4ad3b2ca05b2958c7a75875 (diff) | |
download | libzoom-0d161e31bbc3433e320f2367657fb054974182d3.tar libzoom-0d161e31bbc3433e320f2367657fb054974182d3.zip |
libzoom: Einige Verbesserungen und Bugfixes im Level-Lader.
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); |