New engine features |
Top Previous Next |
ent_mtlset
Replaces the skin lighting and the current effect of a model.
ent_mtlset(my, mtl_new, 1); // change the material for the first skin of the "my" model
user_name
This string contains the name of the engine user as it appears in Wed's and Med's Help -> About windows. This feature will come in handy if you want to create some code that will only run for a certain engine user.
starter check_user() // this function will only run on my PC { if (str_cmpi (user_name, "George Pirvu")) // the code runs on George Pirvu's PC? { beep; // all is ok, so do something here // the rest of the code for your game would be placed here } else // somebody else tries to run this function { exit; // so shut down the engine } }
The lite-C compiler is almost finished
The lite-C compiler is coming closer and closer to its final stage. The syntax won't change anymore, so a serious lite-C beta test can now begin. All functions and objects (excepting game_save and game_load) are now implemented.
|