Documentation: Functions list of Div GO : Div Games Online v2.08.0
all functions (Div / Div 2 / Div GO)
original functions (Div / Div 2)
new functions (Div GO)
filter 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 ]
[websocket ]
search functions:
23 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
say(text );[shows information per console ]
screen_color(background color );see example
- color: hexadecimal or rgb(red, green, blue);
screen_scanline(percentage , type );see example
- percentage: 0 (default) disables scanline; 100 is shown in greater darkness - type: 0 horizontal line; 1 vertical line; 2 grid
screen_smooth(boolean );- boolean: TRUE active blur, FALSE disables
screen_transparent(boolean );see example
[removes the background color and shows content from behind the canvas ]
set_author(page author );
set_background(file , graph , position , size , repeat );see example
- position:0: up left, 1: up, 2: up right 3: left, 4: center, 5: right 6: down left, 7: down, 8: down right - repeat:0: no-repeat 1: repeat-x 2: repeat-y 3: repeat
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):m320x240 m640x480 m800x600 (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
set_vpad(boolean , alpha );see example
- boolean: TRUE turns on the virtual pad, FALSE turns it off - alpha: 0 to 100 for opacity, with 100 being the most opaque value