summaryrefslogtreecommitdiff
path: root/src/main.c
AgeCommit message (Collapse)AuthorFilesLines
2011-08-11Missing file from previous commitSimon Robertshaw1-2/+2
2011-08-10Skip unused particles at end of parts[]jacksonmj1-0/+2
2011-08-08Save Wire ctypeSimon Robertshaw1-2/+2
2011-08-06Calculate Newtonian gravity using fast Fourier transformsjacksonmj1-2/+6
About 16% slower for one cell changing, same speed for 6 cells changing, and several hundred times faster for whole screen changing.
2011-08-05Ensure renderer doesn't create new threads for gravity simulattion, since it ↵Simon Robertshaw1-0/+2
doesn't use it
2011-08-05Mouse and keyboard events, replace luaL_openlib() with luaL_register() and ↵Simon Robertshaw1-6/+12
move mousex and mousey out of the global table and into the 'tpt' table
2011-07-26Fix for SPWN sometimes failing to create stickmanjacksonmj1-5/+2
Example: place stickman, then load a save containing SPWN but no stickman. Stickman does not get created.
2011-07-26Fix LIFE sampling and HUDjacksonmj1-5/+22
2011-07-26Minor optimisations for startup and render_firejacksonmj1-4/+1
2011-07-25Generalized stick man's update functions. Got rid of some unnecessarysavask1-16/+13
variables.
2011-07-24Prevent gravity vel-maps from flipping when pausedSimon Robertshaw1-12/+13
2011-07-24Fix life cloningjacksonmj1-2/+41
2011-07-24Disable old life elementsjacksonmj1-0/+2
2011-07-22active menu and hud enable are global.cracker641-2/+3
2011-07-18Lensing effect for gravity, adds 3 new gravity maps (full resolution, linear ↵Simon Robertshaw1-11/+52
interpolation for faux accuracy), old ones should be removed in time.
2011-07-13Fix PBCN saving and increment major versionSimon1-2/+2
2011-07-12Fix scaling bug when drawing linesjacksonmj1-2/+0
2011-07-12Revert variable names for BrushSimon Robertshaw1-1/+1
2011-07-12OMG FIXES. Lots of fixes for triangle brush to make sure it works, from ↵Cate1-2/+2
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-12Line snapping (hold down Alt when drawing a line)jacksonmj1-11/+25
Specific element select changed to Ctrl+Alt
2011-07-12Fix bounds check for WIND linejacksonmj1-1/+1
2011-07-09Merge all GOL types into PT_LIFE, behaviour is determined by ctypeSimon Robertshaw1-2/+12
2011-07-06Fix crashing when pipe has a negative tmp valuejacksonmj1-2/+2
2011-07-03Fix stickman head in rendererjacksonmj1-0/+1
2011-06-27Better photons for persistent display, ability to toggle gravity view (ctrl+g)Simon Robertshaw1-4/+11
2011-06-25Keep opened filesSimon Robertshaw1-2/+4
2011-06-25Allow changing of stkm spawn element by setting ctypejacksonmj1-2/+2
2011-06-25Check particle exists in tpt.set_property, and sdl_scale mouse coords for ↵jacksonmj1-1/+1
Lua step
2011-06-25Use malloc in parse_save to avoid stack overflowjacksonmj1-1/+4
918 KiB arrays should not be allocated on the stack...
2011-06-25Include ambient heat in undojacksonmj1-0/+2
2011-06-25Fix gravmap build up during repeated frame steppingjacksonmj1-0/+5
2011-06-25Fix soap stamp crashes, and fix stkm head colourjacksonmj1-1/+1
2011-06-14Add access to the local saving featuresSimon Robertshaw1-29/+60
2011-06-11Fix a load of memory leaksjacksonmj1-3/+3
Also fix some compiler warnings (missing headers, wrong pointer type for modf, etc) and move variable declarations for Visual Studio.
2011-06-09Gravity zoningSimon Robertshaw1-0/+23
2011-06-08Clean up signs when readingSimon Robertshaw1-0/+1
2011-06-08message_box and input for Lua API, also autorun.luaSimon Robertshaw1-0/+3
2011-06-08Less blurry thumbnail scalingSimon Robertshaw1-2/+2
2011-06-08Loads of error messages for lua, and hopefully fix lua stack overflowjacksonmj1-1/+1
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-01Ambient heat (disabled by default)Simon Robertshaw1-2/+7
2011-06-01Add gravity field manipulation to Lua api, move gravity processing to after ↵Simon Robertshaw1-7/+7
the particle update (Means a delay of 1 frame, but we get the ability to manipulate the field with Lua)
2011-05-31Pass mouse coordinates (mousex, mousey, mouseb, mousebq) and Lua click handlingSimon Robertshaw1-6/+8
2011-05-30Basics for LuaSimon Robertshaw1-0/+29
2011-05-29Small speed improvement to eval_movejacksonmj1-0/+1
Warning: may be buggy, test thoroughly.
2011-05-29Fix WIND decoration, and reset dcolour in create_partjacksonmj1-1/+1
2011-05-29Remove remaining references to old decorations bufferjacksonmj1-6/+2
2011-05-29Revert "Pass decorations to saving functions (doesn't actually save yet)"jacksonmj1-12/+11
This reverts commit 7fe99f32102429113c671615fc2c5cadb9c51e56. Conflicts: src/main.c
2011-05-28Decorations savingSimon Robertshaw1-2/+106
2011-05-28Gravity state now savedSimon Robertshaw1-3/+15
2011-05-28Render uses resample_imgSimon Robertshaw1-2/+2