Commit Graph

68 Commits

Author SHA1 Message Date
jacksonmj
c819e2655e Fix some gravity memsets, remove gravx/y 2011-12-18 22:04:47 +08:00
jacksonmj
934d1da66e Move Newtonian gravity into a new file 2011-12-18 22:04:47 +08:00
Simon Robertshaw
55cc6e3b05 Revert "Directly read/write element type properties"
This reverts commit 0da91a783f.
2011-12-08 09:56:18 +00:00
Simon Robertshaw
0da91a783f Directly read/write element type properties 2011-12-08 09:52:44 +00:00
Simon Robertshaw
f508013332 New tables in lua API: el and version: element ids and version info respectively. New lua functions: element (get element id from name) and element_func for hooking/overriding element update functions 2011-11-18 19:38:08 +00:00
Simon Robertshaw
0f4c0915d9 Replace cmode with more flexible render options, TODO: Saving and render options UI 2011-11-12 20:44:15 +00:00
Simon Robertshaw
08009ebbaa Screenshot for lua 2011-10-21 17:37:26 +01:00
jacksonmj
4abefaf1ec tpt.drawline 2011-10-06 21:59:41 +01:00
Simon Robertshaw
3e88325632 Missed some changes from previous fix 2011-10-01 20:18:07 +01:00
Simon Robertshaw
5ded009ffd Fix bug with drawing rectangles outside the game region 2011-10-01 20:11:27 +01:00
cracker64
789049b269 Can see selected elements from Lua, tpt.selectedl or tpt.selectedr 2011-09-23 23:25:50 -04:00
cracker64
eb646ce1d6 Forgot luaconsole.c changes 2011-09-21 18:52:08 -04:00
me4502
1403bd17f9 added dcolour to set and get 2011-09-19 03:50:05 +08:00
jacksonmj
89ff8ad9aa tpt.get_property("id",x,y) 2011-09-08 18:31:24 +08:00
jacksonmj
741014770c Add tpt.setwindowsize(scale, fullscreen) 2011-08-30 19:34:28 +08:00
jacksonmj
42cfb74c2b Remove blocking walls from pmap
2.5% speed increase on a screen full of water
2011-08-27 18:37:03 +08:00
Bryan Hoyle
951a396e60 Added autorun option to tpt.getscript() 2011-08-25 11:14:27 -04:00
Simon Robertshaw
e9331794bd Improvements to getscript 2011-08-25 12:20:00 +01:00
Bryan Hoyle
80e10460b8 Use HTTP instead of sockets 2011-08-24 13:09:21 -04:00
Bryan Hoyle
309ec4b07a Small ui for confirming script download as to make script downloads within scripts noticable 2011-08-24 11:44:16 -04:00
Bryan Hoyle
e120c9853f Changing server address for script repository 2011-08-24 11:06:51 -04:00
Bryan Hoyle
578144c48a Merge remote branch 'origin/master' 2011-08-23 20:29:26 -04:00
Bryan Hoyle
f577c319db Working tpt.getscriptid(<string: id>). Retrieves and runs a script from online 2011-08-23 20:28:55 -04:00
Simon Robertshaw
9bec43c45b Stray bracket, not cat+keyboard 2011-08-22 21:25:21 +01:00
Simon Robertshaw
42938cc2ea Lua keyevents bug, int keycode is cast to a char 2011-08-22 21:22:21 +01:00
jacksonmj
75cb924bd9 Fix electrode when in replace mode or specific delete mode
Also fix bomb when SLALT != 0
2011-08-22 01:02:02 +01:00
Simon Robertshaw
99b67598aa Changes to unify mouse and keyboard events for Lua 2011-08-20 18:18:09 +01:00
Bryan Hoyle
ad09f3040e Revert "Revert "added lua command: tpt.setfpscap(int FPSCap)""
This reverts commit a5db1d53da.
2011-08-16 12:45:44 -04:00
Bryan Hoyle
a5db1d53da Revert "added lua command: tpt.setfpscap(int FPSCap)"
This reverts commit aa56eca5c0.
2011-08-16 12:43:50 -04:00
Bryan Hoyle
aa56eca5c0 added lua command: tpt.setfpscap(int FPSCap) 2011-08-15 21:44:37 -04:00
Simon Robertshaw
d5435c50a9 Debug info for particles allocation 2011-08-11 20:12:52 +01:00
Simon Robertshaw
4f8720eecc OS X doesn't like the 'd' suffix 2011-08-11 17:10:38 +01:00
Simon Robertshaw
9e634b95cc Fire intensity from Lua 2011-08-11 13:02:00 +01:00
jacksonmj
39e1ffe5bf 0 is a valid menu number (walls) 2011-08-06 18:13:22 +08:00
cracker64
83e4f885da Added tmp2 for tpt.get_property and tpt.set_property 2011-08-06 00:16:30 -03:00
Simon Robertshaw
4ebe56f65c Mouse and keyboard events, replace luaL_openlib() with luaL_register() and move mousex and mousey out of the global table and into the 'tpt' table 2011-08-05 14:54:24 +01:00
Simon Robertshaw
98b6c4b001 Revert "allowed secret menu via lua"
This reverts commit 6c8d62389c.
2011-08-04 16:38:07 +01:00
me4502
6c8d62389c allowed secret menu via lua 2011-08-04 14:09:24 +10:00
Simon Robertshaw
ac2912f2d2 Ensure menu ID is valid for active_menu 2011-08-01 11:52:01 +02:00
Simon Robertshaw
8dfa09bf6a Edited src/luaconsole.c via GitHub 2011-08-01 10:59:33 +02:00
Simon Robertshaw
500cfc3746 Lua has a garbage collector, it may dispose of strings while we're using them, make throw_error a little more safe 2011-07-31 12:26:51 +01:00
Bryan Hoyle
d7a55f1f50 me4502 added tpt.throw_error and tpt.heat as lua commands 2011-07-30 20:31:34 -04:00
jacksonmj
7ed0255f04 Disable old life elements 2011-07-24 20:07:15 +08:00
cracker64
c5a8138dc9 Fix new luaconsole functions. 2011-07-22 06:51:29 -07:00
cracker64
f064227b7a me4502 luaconsole functions, edited from github. 2011-07-22 06:47:43 -07:00
jacksonmj
80fd7edd7f Some fixes for non-existent particles in Lua
Return 0 for get_property("type", ...) instead of erroring, to make checking for
particles easier. Also stop x coordinate being used as a particle index if
no particle exists at that location.
2011-07-04 00:11:43 +08:00
jacksonmj
34d76f8680 Check photon map in Lua functions, and allow any ctype
Also add some extra checks on ctype in the rest of the game
2011-06-25 15:59:30 +01:00
jacksonmj
c18009dd9c Check particle exists in tpt.set_property, and sdl_scale mouse coords for Lua step 2011-06-25 15:52:52 +01:00
ief015
be79233101 added functions to iterate through all particles
+ tpt.start_getPartIndex() --starts the iteration
+ bool tpt.next_getPartIndex() --increases the iteration, returns true if there are more particles to iterate through
+ int tpt.getPartIndex() --get the current iteration value
2011-06-25 01:32:54 -04:00
Simon Robertshaw
3ea25c83b7 message_box and input for Lua API, also autorun.lua 2011-06-08 16:30:36 +01:00