Lua scripting

(Difference between revisions)
Jump to: navigation, search
Line 32: Line 32:
  
 
==Lua==
 
==Lua==
 
 
{{column-box-begin}}
 
{{column-box-begin}}
  

Revision as of 14:24, 5 February 2014


Welcome to the Maratis Scripting Reference

Maratis uses Lua as internal scripting language.


Functions - Key literals - Axis literals - Lua

Functions

3D Math

Input

Scene

Level

System

Animation

Sound

Text

Camera

Object

Transformation

  • rotate(object, {x, y, z}, angle, "local")
  • translate(object, {x, y, z}, "local")

Behavior

Physics

Light


Back to top - Functions - Key literals - Axis literals - Lua

Key literals

Keyboard

  • A to Z
  • 0 to 9
  • F1 to F12
  • BACKSPACE
  • TAB
  • ESCAPE
  • SPACE
  • DELETE
  • ENTER
  • UP
  • DOWN
  • LEFT
  • RIGHT
  • RSHIFT
  • LSHIFT
  • RCONTROL
  • LCONTROL
  • RALT
  • LALT

Mouse

  • MOUSE_BUTTON1
  • MOUSE_BUTTON2
  • MOUSE_BUTTON3

Joystick 1

  • JOY1_BUTTON1
  • JOY1_BUTTON2
  • JOY1_BUTTON3
  • JOY1_BUTTON4
  • JOY1_BUTTON5
  • JOY1_BUTTON6
  • JOY1_BUTTON7
  • JOY1_BUTTON8

Joystick 2

  • JOY2_BUTTON1
  • JOY2_BUTTON2
  • JOY2_BUTTON3
  • JOY2_BUTTON4
  • JOY2_BUTTON5
  • JOY2_BUTTON6
  • JOY2_BUTTON7
  • JOY2_BUTTON8


Back to top - Functions - Key literals - Axis literals - Lua

Axis literals

Accelerometer

  • MOTION_X
  • MOTION_Y
  • MOTION_Z
  • ACCEL_X
  • ACCEL_Y
  • ACCEL_Z
  • GRAVITY_X
  • GRAVITY_Y
  • GRAVITY_Z
  • YAW
  • PITCH
  • ROLL

Mouse

  • MOUSE_X
  • MOUSE_Y

Joystick 1

  • JOY1_X
  • JOY1_Y
  • JOY1_Z
  • JOY1_R
  • JOY1_U
  • JOY1_V

Joystick 2

  • JOY2_X
  • JOY2_Y
  • JOY2_Z
  • JOY2_R
  • JOY2_U
  • JOY2_V


Back to top - Functions - Key literals - Axis literals - Lua

Lua

Lua Documentation

Code Snippets

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox