Simon Robertshaw
a94d249977
Fix save loading (enable replace mode) from the commandline, a bit of cleanup in main()
2011-08-19 12:28:09 +01:00
jacksonmj
31b6e6a3cf
Move multiple STKM loading check
2011-08-19 12:22:34 +01:00
jacksonmj
de820e36f8
Only do grav lensing when N-grav is on, and round coordinates correctly
2011-08-19 12:22:12 +01:00
Bryan Hoyle
161eb60cfa
Added PGRV and NGRV for positive and negative gravity tools (sortof like air and vac, but with gravity)
2011-08-16 18:07:12 -04: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
dcd3af9440
Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy
2011-08-14 18:32:10 +01:00
Simon Robertshaw
d3153aae85
Extended info for line drawing
2011-08-14 18:31:48 +01:00
savask
86e9a6eeff
Fixed a bug where you were able to create multiply stickmans by copying it.
2011-08-12 14:52:02 +07:00
Simon Robertshaw
d5435c50a9
Debug info for particles allocation
2011-08-11 20:12:52 +01:00
Simon Robertshaw
0938b561e6
Missing file from previous commit
2011-08-11 14:41:43 +01:00
jacksonmj
1713604233
Skip unused particles at end of parts[]
2011-08-11 07:38:56 +08:00
Simon Robertshaw
950f5c34a3
Save Wire ctype
2011-08-08 15:14:11 +01:00
jacksonmj
788b0cd04c
Calculate Newtonian gravity using fast Fourier transforms
...
About 16% slower for one cell changing, same speed for 6 cells changing,
and several hundred times faster for whole screen changing.
2011-08-06 18:13:22 +08:00
Simon Robertshaw
6dedc28517
Ensure renderer doesn't create new threads for gravity simulattion, since it doesn't use it
2011-08-05 21:07:30 +01: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
jacksonmj
0f585011fb
Fix for SPWN sometimes failing to create stickman
...
Example: place stickman, then load a save containing SPWN but no stickman.
Stickman does not get created.
2011-07-26 18:28:23 +01:00
jacksonmj
cbe1e0b073
Fix LIFE sampling and HUD
2011-07-26 18:28:06 +01:00
jacksonmj
db5cb5e2f9
Minor optimisations for startup and render_fire
2011-07-27 01:25:34 +08:00
savask
dbd3272933
Generalized stick man's update functions. Got rid of some unnecessary
...
variables.
2011-07-25 12:47:38 +07:00
Simon Robertshaw
e7907f9ea3
Prevent gravity vel-maps from flipping when paused
2011-07-24 14:31:24 +01:00
jacksonmj
89cc8d4ded
Fix life cloning
2011-07-24 20:10:43 +08:00
jacksonmj
7ed0255f04
Disable old life elements
2011-07-24 20:07:15 +08:00
cracker64
2f714606d7
active menu and hud enable are global.
2011-07-22 10:08:13 -04:00
Simon Robertshaw
68404608f6
Lensing effect for gravity, adds 3 new gravity maps (full resolution, linear interpolation for faux accuracy), old ones should be removed in time.
2011-07-18 23:58:08 +01:00
Simon
0fbe6e2d3f
Fix PBCN saving and increment major version
2011-07-13 12:03:30 +01:00
jacksonmj
02848f9e0c
Fix scaling bug when drawing lines
2011-07-13 04:57:40 +08:00
Simon Robertshaw
4c685c7665
Revert variable names for Brush
2011-07-12 19:06:59 +01:00
Cate
d3452b01c8
OMG FIXES. Lots of fixes for triangle brush to make sure it works, from Cracker. Edited CLST to prevent "popcorning" when its float hits weird numbers. Also fixed it so it freezes nicely when cooled. Fingers are back! :DDD
2011-07-12 18:46:33 +01:00
jacksonmj
1be79e581d
Line snapping (hold down Alt when drawing a line)
...
Specific element select changed to Ctrl+Alt
2011-07-12 21:48:54 +08:00
jacksonmj
52b4473f0f
Fix bounds check for WIND line
2011-07-12 21:47:41 +08:00
Simon Robertshaw
d42e06f37a
Merge all GOL types into PT_LIFE, behaviour is determined by ctype
2011-07-09 18:22:25 +01:00
jacksonmj
11dbdb9314
Fix crashing when pipe has a negative tmp value
2011-07-06 17:44:56 +08:00
jacksonmj
3d82cea94f
Fix stickman head in renderer
2011-07-04 00:11:43 +08:00
Simon Robertshaw
36ee81fc6b
Better photons for persistent display, ability to toggle gravity view (ctrl+g)
2011-06-27 14:01:07 +01:00
Simon Robertshaw
1dcefb2895
Keep opened files
2011-06-25 16:59:25 +01:00
jacksonmj
d515575612
Allow changing of stkm spawn element by setting ctype
2011-06-25 16:06:44 +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
jacksonmj
9b83bf27a8
Use malloc in parse_save to avoid stack overflow
...
918 KiB arrays should not be allocated on the stack...
2011-06-25 15:52:02 +01:00
jacksonmj
f417d7a4df
Include ambient heat in undo
2011-06-25 15:50:59 +01:00
jacksonmj
fb79865186
Fix gravmap build up during repeated frame stepping
2011-06-25 15:50:32 +01:00
jacksonmj
a054a784af
Fix soap stamp crashes, and fix stkm head colour
2011-06-25 15:50:07 +01:00
Simon Robertshaw
2dd04b917d
Add access to the local saving features
2011-06-14 15:13:27 +01:00
jacksonmj
93316a9f1d
Fix a load of memory leaks
...
Also fix some compiler warnings (missing headers, wrong pointer type for
modf, etc) and move variable declarations for Visual Studio.
2011-06-11 13:00:42 +01:00
Simon Robertshaw
1f7106acb1
Gravity zoning
2011-06-09 22:35:00 +01:00
Simon Robertshaw
09a3670d64
Clean up signs when reading
2011-06-08 18:09:03 +01:00
Simon Robertshaw
3ea25c83b7
message_box and input for Lua API, also autorun.lua
2011-06-08 16:30:36 +01:00
Simon Robertshaw
b5c9d86fbe
Less blurry thumbnail scaling
2011-06-08 13:30:39 +01:00
jacksonmj
e182e7422c
Loads of error messages for lua, and hopefully fix lua stack overflow
...
Also fix game exiting when an error occurs in a step function.
Returning -1 seems to prevent lua from restoring the stack to the
state it was in before the C function call - see bottom of
luaD_precall() in lua source (ldo.c)
2011-06-08 12:47:19 +01:00