/**
* A7-Anfangsprojekt
*
*/
#define PRAGMA_PATH "%EXE_DIR%\work";
#define PRAGMA_PATH "%EXE_DIR%\Nase";
#define PRAGMA_PATH "%EXE_DIR%\templates\xml";
#define PRAGMA_PATH "Shadows";
#define NUM_GRASS 800
// Includes
#include "resources.h" // paths and file binds
#include <acknex.h>
#include <default.c>
#include <variablen.c> //Variablendefinitionen
#include <sonstiges.c> //Umrechnungen, Sonstiges
#include <t7\inventar.c>; //Inventar und Zustandsänderungen
#include <t7\t7GEPickups.c> ///@t7 Pickup items.
#include <t7\environment.c> //Umgebungsaktionen
#include <t7\camera_slin.c>
//#include <t7\player_slin.c>
//#include <t7\player_move_slin.c>
#include <leiter_roh.c>
#include <player_shader_slin.c>
#include <Grass.c>
#include <Feuer.c>
#include <mtlFX.c>
#include <Behaelter.c> //Eigenschaften von angewählten Behältern
#include <Wegweiser.c>
#include <multirgb.c>
#include <fluessiges.c>
//Include the Shadows
//#include <shadowmapping.c> //shadowmapping
///////////////////////////////////////////////////////////////
BMAP*anzeigeLO_map = "Overlay_links_oben.tga";
BMAP*leben_map = "Leben.tga";
BMAP*erfahrung_map = "Erfahrung.tga";
BMAP*zeiger_map = "zeiger.tga"; // 32x32 image
SOUND* hintergrund_musik = "atmos1.ogg";
var hintergrund_handle;
/*PANEL* anzeigeLO_pan =
{
bmap = anzeigeLO_map;
pos_x = 0;
pos_y = 0;
layer = 1;
window (109,51,170,10,leben_map,lebensenergie_aktuell,0);
window (109,65,170,10,erfahrung_map,erfahrung_aktuell,0);
flags = OVERLAY | SHOW;
}
*/
function change_mouse_mode()
{
mouse_mode += 1;
mouse_mode %= 3;
if (1 == mouse_mode)
mouse_map = zeiger_map;
if (2 == mouse_mode)
mouse_map = zeiger_map;
}
////////////////////////////////
////////////////////////////////
function main()
{
video_mode = 10; //1280x1024 - 1280x800 - 1280x720
video_depth = 32; //32 Bit
video_screen = 2; // 1= Voll-Bildschirm 2= Window
d3d_anisotropy = 2; //Filter bei Verzerrungen
d3d_antialias = 4; //Glätten von Polygonkanten 0=kein / 1 /4 /9 Sample-Punkte per Pixel
shadow_offset = 2.5; //Abstand des Modellschattens zum Boden (default=2.5))
shadow_stencil = 2; //Typus des Schattens Bereich von -1(kein dynamischer Schatten bis 4)
////////////////////
//////////////////
mouse_pointer = 0;
mouse_sync = 1;
mouse_range = 300; //Entfernung, in der Objekte mit der Maus angewählt werden können
on_mouse_right = change_mouse_mode;
detail_size = 40;
level_load("start2.wmb");
wait(2);
ent_createlayer("8a+6.tga", SKY | CUBE | VISIBLE,1 );
master_vol = 100;
//cd_play (2,3);
//cdaudio_vol = 10;
hintergrund_handle = snd_loop(hintergrund_musik, 50,0);
//snd_play(hintergrund_musik,20,0);
on_i = Inventar_einblenden;
while (1)
{
mouse_pos.x = mouse_cursor.x;
mouse_pos.y = mouse_cursor.y;
camera.pan -= mouse_force.x;
camera.tilt += mouse_force.y;
wait (1);
}
}