Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

List of codea globals/constants?

edited November 2012 in Questions Posts: 2

Hi all,

I've been looking at some sample code, and see things like 'CurrentTouch', 'DeltaTime', but I can't find a list of all available, and their definitions. Can someone point me in the right direction?

Thanks!

Comments

  • dave1707dave1707 Mod
    edited November 2012 Posts: 8,455

    Here is a list I created. The first section is all the functions, constants/variables, and tables. Then it's broken down into each section.


    all---------- ANY BACKSPACE BEGAN CANCELLED CENTER CHAIN CIRCLE COMPOUND CORNER CORNERS ContentScaleFactor CurrentOrientation CurrentTouch DATA DECODE DISTANCE DYNAMIC DeltaTime EDGE ENCODE ENDED ElapsedTime FORMAT_MONO16 FORMAT_MONO8 FORMAT_STEREO16 FORMAT_STEREO8 FULLSCREEN FULLSCREEN_NO_BUTTONS Gravity HEIGHT KINEMATIC LANDSCAPE_ANY LANDSCAPE_LEFT LANDSCAPE_RIGHT LEFT MOVING POLYGON PORTRAIT PORTRAIT_ANY PORTRAIT_UPSIDE_DOWN PRISMATIC PROJECT RADIUS RETAINED RETURN REVOLUTE RIGHT ROPE ROUND SOUND_BLIT SOUND_EXPLODE SOUND_HIT SOUND_JUMP SOUND_NOISE SOUND_PICKUP SOUND_POWERUP SOUND_RANDOM SOUND_SAWTOOTH SOUND_SHOOT SOUND_SINEWAVE SOUND_SQUAREWAVE SQUARE STANDARD STATIC STATIONARY UserAcceleration WELD WIDTH _G _VERSION applyMatrix assert background backingMode camera class clearLocalData clearOutput clearParameters clearProjectData clip close collectgarbage color coroutine debug deviceMetrics displayMode dofile draw ellipse ellipseMode error fill font fontMetrics fontSize gcinfo getfenv getmetatable hideKeyboard http image io ipairs iparameter isKeyboardShowing isRecording keyboardBuffer line lineCapMode listGlobalData listLocalData listProjectData loadstring math matrix mesh modelMatrix module newproxy next noClip noFill noSmooth noStroke noTint noise openURL ortho os pairs parameter pcall perspective physics point pointSize popMatrix popStyle print projectionMatrix pushMatrix pushStyle rawequal rawget rawset readGlobalData readImage readLocalData readProjectData readProjectInfo rect rectMode resetMatrix resetStyle rotate rsqrt saveGlobalData saveImage saveLocalData saveProjectData saveProjectInfo scale select setContext setInstructionLimit setfenv setmetatable setup showKeyboard smooth sound soundBufferSize soundbuffer sprite spriteList spriteMode spriteSize startRecording stopRecording string stroke strokeWidth supportedOrientations table text textAlign textMode textSize textWrapWidth tint tonumber tostring translate triangulate type unpack vec2 vec3 vec4 viewMatrix watch xpcall zLevel tables---------- _G coroutine debug http io math os physics string table functions---------- applyMatrix assert background backingMode camera class clearLocalData clearOutput clearParameters clearProjectData clip close collectgarbage color deviceMetrics displayMode dofile draw ellipse ellipseMode error fill font fontMetrics fontSize gcinfo getfenv getmetatable hideKeyboard image ipairs iparameter isKeyboardShowing isRecording keyboardBuffer line lineCapMode listGlobalData listLocalData listProjectData loadstring matrix mesh modelMatrix module newproxy next noClip noFill noSmooth noStroke noTint noise openURL ortho pairs parameter pcall perspective point pointSize popMatrix popStyle print projectionMatrix pushMatrix pushStyle rawequal rawget rawset readGlobalData readImage readLocalData readProjectData readProjectInfo rect rectMode resetMatrix resetStyle rotate rsqrt saveGlobalData saveImage saveLocalData saveProjectData saveProjectInfo scale select setContext setInstructionLimit setfenv setmetatable setup showKeyboard smooth sound soundBufferSize soundbuffer sprite spriteList spriteMode spriteSize startRecording stopRecording stroke strokeWidth supportedOrientations text textAlign textMode textSize textWrapWidth tint tonumber tostring translate triangulate type unpack vec2 vec3 vec4 viewMatrix watch xpcall zLevel constants/variables---------- ANY 6 BACKSPACE BEGAN 0 CANCELLED 3 CENTER 2 CHAIN 3 CIRCLE 0 COMPOUND 4 CORNER 0 CORNERS 1 ContentScaleFactor 1 CurrentOrientation 0 CurrentTouch Touch x:468.000000, y:0.000000 prevX:0.000000, prevY:0.000000 id:0 state:1 tapCount:241946768 DATA data DECODE decode DISTANCE 3 DYNAMIC 2 DeltaTime 0.240267 EDGE 1 ENCODE encode ENDED 2 ElapsedTime 0.240267 FORMAT_MONO16 4353 FORMAT_MONO8 4352 FORMAT_STEREO16 4355 FORMAT_STEREO8 4354 FULLSCREEN 1 FULLSCREEN_NO_BUTTONS 2 Gravity (-0.002699, -0.080099, -0.059000) HEIGHT 1024 KINEMATIC 1 LANDSCAPE_ANY 5 LANDSCAPE_LEFT 2 LANDSCAPE_RIGHT 3 LEFT 0 MOVING 1 POLYGON 2 PORTRAIT 0 PORTRAIT_ANY 4 PORTRAIT_UPSIDE_DOWN 1 PRISMATIC 2 PROJECT 2 RADIUS 3 RETAINED 1 RETURN REVOLUTE 1 RIGHT 1 ROPE 10 ROUND 0 SOUND_BLIT blit SOUND_EXPLODE explode SOUND_HIT hit SOUND_JUMP jump SOUND_NOISE 3 SOUND_PICKUP pickup SOUND_POWERUP powerup SOUND_RANDOM random SOUND_SAWTOOTH 1 SOUND_SHOOT shoot SOUND_SINEWAVE 2 SOUND_SQUAREWAVE 0 SQUARE 1 STANDARD 0 STATIC 0 STATIONARY 4 UserAcceleration (-0.024294, -0.720895, -0.530997) WELD 8 WIDTH 494 _VERSION Lua 5.1
  • Jmv38Jmv38 Mod
    Posts: 3,297

    Very useful Dave! I'm going to try STATIC right away!

  • dave1707dave1707 Mod
    edited November 2012 Posts: 8,455

    I forgot to include the other functions.


    coroutine functions---------- create resume running status wrap yield debug functions---------- debug getfenv gethook getinfo getlocal getmetatable getregistry getupvalue setfenv sethook setlocal setmetatable setupvalue traceback http functions---------- get request io functions------------- close flush input lines open output popen read tmpfile type write io variables---------- stderr file (0x3f605070) stdin file (0x3f604fc0) stdout file (0x3f605018) math functions---------- abs acos asin atan atan2 ceil cos cosh deg exp floor fmod frexp ldexp log log10 max min mod modf pow rad random randomseed sin sinh sqrt tan tanh math variables---------- huge inf pi 3.14159 os functions---------- clock date difftime setlocale time physics functions---------- body gravity iterations joint pause pixelToMeterRatio queryAABB raycast raycastAll resume string functions---------- byte char dump find format gfind gmatch gsub len lower match rep reverse sub upper table functions---------- concat foreach foreachi getn insert maxn remove setn sort
  • Wow, thanks!

Sign In or Register to comment.