![]() ![]() Key_pressed - indicates if specified key was pressed Since version 1.2.0, you may also access the following variables (as alternatives to functions above): key_down - indicates if specified key is down Mouse_check_released() - returns if left mouse button was released. Mouse_check_pressed() - returns if left mouse button was pressed. Mouse_check() - returns if left mouse button is down. Mouse_y - indicates current mouse Y position in stage. The following functions and variables exist for tracking mouse (and pointer) input: mouse_x - indicates current mouse X position in stage. Keyboard_check_released(key) - returns if specified key was released Keyboard_check_pressed(key) - returns if specified key was pressed The following routines exist for tracking keyboard input: keyboard_check(key) - returns if specified key is down Math.atan2(y, x) - returns the arctangent of the quotient of its arguments. Math.atan(x) - returns the arctangent of x, in radians. Math.asin(x) - returns the arcsine of x, in radians. Math.acos(x) - returns the arccosine of x, in radians. Math.tan(x) - returns the tangent of x (x is in radians). s(x) - returns the cosine of x (x is in radians). Math.sin(x) - returns the sine of x (x is in radians). ![]() Math.log(x) - returns natural logarithm (base E) of x. Math.exp(x) - returns E to the power of x. Math.pow(x, y) - returns x to the power of y. Math.sqrt(x) - returns the square root of x. Math.ceil(x) - returns x, rounded downwards to the nearest integer. Math.floor(x) - returns x, rounded downwards to the nearest integer. ![]() Math.round(x) - returns x, rounded to the nearest integer. Math.random() - returns a random number between 0 and 1. , argN) - returns the largest of providen arguments. , argN) - returns the smallest of providen arguments. You may also use the following functions from standard JS Math object (or by including 'Math functions' extension): Math.abs(x) - returns absolute value of x. Lengthdir_y(length, direction) - returns the horizontal x-component of the vector determined by the indicated length and direction. Lengthdir_x(length, direction) - returns the horizontal x-component of the vector determined by the indicated length and direction. Point_distance(x1, y1, x2, y2) - returns distance between two points. Point_direction(x1, y1, x2, y2) - returns direction between two points. Irandom(value) - returns random integer between 1 (inclusive) and value (inclusive). Random(value) - returns floating point integer between 0 (inclusive) and value (exclusive). , argN) - returns the largest of providen arguments (shortcut to Math.max). , argN) - returns the smallest of providen arguments (shortcut to Math.min). ![]() Sign(x) - returns sign of x (1, 0, or -1). Radtodeg(radian) - converts radians to degrees. , argN) - randomly returns one of providen arguments.ĭegtorad(degree) - converts degrees to radians. The following routines exist for computing values: choose(arg1, arg2. If you have used either GML, Lite-C, or ActionScript, learning should be slightly easier. Tululoo uses JavaScript as programming language, extending it with additional functions, which are meant to simplify game & application development.įor now, it does not contain basic syntax documentation, thus it would be useful to follow a few tutorials on JavaScript before actively programming in Tululoo. Beginners can browse several pre-made game kits, which can be modified easily. Tululoo offers several built-in game functions as well, but it is dynamic, so you can use unlimited custom functions, variables, structures etc. The built-in script editor has some great features like syntax highlighting or code completion so writing your own code is easy and fun. You can easily create the objects (actors like player, enemies, collectable items, etc.) and you can also add your own functions and scripts to the game objects. Tululoo comes with a user friendy resource manager and script editor, where you can import your images, backgrounds, animated sprites, sounds. With Tululoo you can create games for your mobile devices as the latest ones already support the new HTML5 standards. The program generates a Javascript code that can be played in web browsers using the next generation web standard HTML5. Tululoo Game Maker is a complex game creation environment that allows you to create browser based games. This manual is created to provide simple language reference on Tululoo Game Maker 1.2.0. ![]()
0 Comments
Leave a Reply. |