//=================================================================================================================================
// //
// DAS MAINSCRIPT //
// ^^^^^^^^^^^^^^ //
// //
//=================================================================================================================================
// //
// EINBINDEN DER UNTERORDNER UND SCRIPTS //
// """"""""""""""""""""""""""""""""""""" //
// //
//=================================================================================================================================
#define PRAGMA_PATH "Graphics\Characters"
#define PRAGMA_PATH "Graphics\Battlebacks"
#define PRAGMA_PATH "Data\Levels"
#include <acknex.h>
#include <default.c>
#include "game_bitmaps.c"
#include "game_structs.c"
//=================================================================================================================================
// //
// FUNKTIONEN //
// """""""""" //
// //
//=================================================================================================================================
//=================================================================================================================================
// //
// AKTIONEN //
// """""""" //
// //
//=================================================================================================================================
action debugging()
{
wait(1);
while(1)
{
my.pan += random(3)*time_step;
my.tilt += random(3)*time_step;
my.roll += random(3)*time_step;
wait(1);
}
}
//=================================================================================================================================
// //
// DAS MAINSCRIPT //
// """""""""""""" //
// //
//=================================================================================================================================
function main()
{
fps_max = 60;
d3d_antialias = 9;
video_set(1024,768,32,0);
video_window(vector(10,10,NULL),NULL,48,"@-´-,-´-,-´-,- NEVERTOLD -,-`-,-`-,-`-@");
screen_color.red = 0;
screen_color.green = 0;
screen_color.blue = 0;
sky_color.red = 0;
sky_color.green = 0;
sky_color.blue = 0;
level_load("leer.wmb");
wait(3);
vec_set(camera.x, vector(0,-250,500));
vec_set(camera.pan, vector(90,-50,0));
PANEL* mainpan = pan_create("pos_x=300; pos_y=150; bmap = testobjekt; flags = SHOW;", -1);
//=================================================================================================================================
// error("str_cpy(mypanmap.name, Gegner_Weisser_Drachenreiter_stehen.png);"); //////////
// str_cpy(mypanmap.name, "Weisser_Drachenreiter_1+4.tga");
//
// error("mypanmap.bitmap = bmap_create(mypanmap.name);"); /////////////////////////////
// mypanmap.bitmap = "Gegner_Weisser_Drachenreiter_stehen.png";
//
// error("PANEL* testerpanel erstellen"); //////////////////////////////////////////////
// pan_create("pos_x=300; pos_y=150; bmap = mypanmap.bitmap; flags = SHOW;", -10);
//
// error(mypanmap.name); ///////////////////////////////////////////////////////////////
mypanmap.name = str_create( mainpan->bmap->link.name );
(mypanmap.name->chars)[str_len(mypanmap.name)-4] = 46;
mypanmap.bitmap = mainpan.bmap;
error(mypanmap.name);
//=================================================================================================================================
pan_create("bmap = testobjekt; flags = SHOW;", -10);
ent_create("Weisser_Drachenreiter_1+4.tga", vector(0,0,0), debugging);
}