Div Games Online
logo Div Games Online

Documentation: Functions list of Div GO : Div Games Online v1.20.0

original functions new functions
filter functions:
[ALL FUNCTIONS] [math] [graphics primitives] [string] [print text] [interaction processes] [scroll]
[mode7] [scene3D] [graphic effects] [sound] [video] [geometric] [pathfinding] [color] [region]
[general interaction program] [date/time] [saved data] [string conversion] [resource load]
[music module] [array functions]
search functions:  

20 functions (Div / Div 2 / Div GO):

exit(text, type of output);see example
frame(percentage);see example
- percentage: 100 = process are updated every frame; 200 = 2 frames each change; 300 = every 3, ...
fullscreen_scale(rescale);see example
get_browser(browser / os variable);see example
- browser / os variable:
b_width // width of the browser
b_height // height of the browser
b_os_width // width screen of the o.s.
b_os_height // height screen of the o.s.
b_name // name of the browser
b_os_name // name of the o.s.
b_language // browser language
b_joy_connect // true or false if joy or pad is connected
b_pad_connect // true or false if joy or pad is connected
b_name_joy // name of joy / pad
b_name_pad // name of joy / pad
is_fullscreen();see example
key(keyboard code);see example
key_in(keyboard code);see example
key_out(keyboard code);see example
[shows information per console]
screen_color(background color);see example
- color: hexadecimal or rgb(red, green, blue);
- percentage: 0 (default) disables scanline; 100 is shown in greater darkness
- boolean: TRUE active blur, FALSE disables
set_author(page author);
set_color(background color);
- color: hexadecimal o rgb(red, green, blue);
set_description(page description);
set_fps(number of frames per second, number of skips allowed);
set_icon(file path);
set_mode(new video mode);
- change video mode, option 1 (support Div/ Div2):
(view the list of variables)
- option 2 (support Gemix/ BennuGD):
set_mode(width, height);
- option 3 (DivGO):
set_mode(width, height, rescale);
- rescale: x1 o 1 (normal); x2 o 2 (double); x3 o 3 (triple), etc...
set_mode(mwidthxheight, rescale);
- rescale: 1 (normal); 2 (double); 3 (triple), etc...
set_title(page title);
set_visible_mouse(boolean);see example
- boolean: display or hide the mouse system; TRUE is the default value