#include <acknex.h>
#include <default.c>
#include <mtlFX.c>
void main(){
level_load("");
wait(3);
sun_light = 100;
vec_set(camera.x, vector(117, 224, 74));
vec_set(camera.pan, vector(240, -18, 0));
ENTITY* ent = ent_create("box.mdl", nullvector, NULL);
ent.material = mtl_specBump;
while(1){
sun_angle.pan += 5 * time_step;
sun_angle.tilt += 5 * time_step;
draw_text("press space to turn into devil cube!", 10, 10, COLOR_WHITE);
if(key_space){break;}
wait(1);
}
ent.material = mtl_model;
set(ent, LIGHT | UNLIT); // UNLIT here is to make it's color more visible
vec_set(ent.blue, COLOR_RED);
while(!key_enter){
draw_text("press enter to turn into normal cube!", 10, 10, COLOR_WHITE);
wait(1);
}
reset(ent, LIGHT | UNLIT);
vec_set(ent.blue, COLOR_GREY);
ent.material = mtl_specBump;
while(1){
sun_angle.pan += 5 * time_step;
sun_angle.tilt += 5 * time_step;
wait(1);
}
}