Notes
Temporary scratchpad for all sorts of notes related to this site.
Celx
Celx
mouse event
- is rather useless; only tells you that there was a mouse click somewhere, but not whát got clicked
- there also does nót seem to be another way to find out what object got clicked
- see http://www.shatters.net/forum/viewtopic.php?f=9&t=16212
tick event
- appears to be some sort of timer event
- generates an event at irregular intervals
- returns eventinfo.dt that holds interval time
- have to use clock or getscripttime to implement something like a timer
wait()
- Is Celestia not lua
- is not compatible with keyboard or other event
- when used during handling of event returns imediately with return value of "false"
Lua
Lua
dofile() versus requires()
- requires only looks for "lua" or "dll"
- does it realy work with lua?
- can requires then be used for objects by changing extention from "celx" to "lua"?
string.format()
- follows the C Printf() rules; see:
- http://en.wikipedia.org/wiki/Printf
- http://www.codingunit.com/printf-format-specifiers-format-conversions-and-formatted-output
string.match() / string.gmatch()
- find a good explanation on the subject
- http://www.lua.org/pil/20.1.html
- http://lua-users.org/wiki/PatternsTutorial
Scripts
Scripts
script directory
- look at something that can deliver that?
datetime object
- complete that some time
Site
Site
Scripting:
- Finisch Metatables
Top of page
- Find out how to and insert in pages