summaryrefslogtreecommitdiff
path: root/src/air.c
AgeCommit message (Collapse)AuthorFilesLines
2012-11-17Remove old codeSimon Robertshaw1-306/+0
2012-06-12Make ambient heat convection work a bit betterjacksonmj1-3/+3
Previously, it was comparing the temperature of the current cell to the average of the cells around it (plus some advection affecting the average, but that makes no difference if the air starts out stationary), and basing the velocity change on this temperature difference. If the cell below is hotter and the cell above is cooler, the air should rise. But in this case, the average of surrounding cells tends to be near the temperature of the current cell, so not much happens. Just using the temperature difference between the current cell and the cell above makes convection work a lot better.
2012-05-11New element: Titanium, absorbs some neutrons, acts as a solid wall to air. ↵Simon Robertshaw1-11/+2
Move blockair filling into update_particles so it can be used by elements
2012-05-06Change license from GPLv2+ to GPLv3+jacksonmj1-0/+17
Also add headers stating the license to some more of the source files
2012-02-05Prevent ambient heat going through wallsjacksonmj1-10/+14
Still doesn't conserve energy, it might disappear when blown towards a wall, but it will no longer go through the wall.
2011-12-18Move Newtonian gravity into a new filejacksonmj1-260/+1
2011-08-06Calculate Newtonian gravity using fast Fourier transformsjacksonmj1-0/+161
About 16% slower for one cell changing, same speed for 6 cells changing, and several hundred times faster for whole screen changing.
2011-07-24update_air now runs 10% fasterjacksonmj1-12/+10
2011-07-18Lensing effect for gravity, adds 3 new gravity maps (full resolution, linear ↵Simon Robertshaw1-0/+37
interpolation for faux accuracy), old ones should be removed in time.
2011-06-25Hot air rises [Experimental]Simon Robertshaw1-0/+6
2011-06-25Include ambient heat in undojacksonmj1-3/+4
2011-06-10Heat advection, currently doesn't obey the whole conservation of energy lawSimon Robertshaw1-1/+24
2011-06-09Gravity zoningSimon Robertshaw1-0/+1
2011-06-01Ambient heat (disabled by default)Simon Robertshaw1-0/+51
2011-04-26Fix for non-diff modeSimon Robertshaw1-1/+4
2011-04-26Gravity: only calculate the differenceSimon Robertshaw1-18/+26
2011-04-24Allow negative gravitySimon Robertshaw1-1/+1
2011-04-24Asynchronous thread for gravity processingSimon Robertshaw1-10/+14
2011-04-22Gravitaaaay (Needs tweeking for performance)Simon Robertshaw1-0/+47
2011-04-08astyleSimon1-159/+159
2011-03-30A cracker commit with some nice commentsSimon1-9/+9
2011-02-09"Added Air modes using Gravitymode code"Cate1-0/+26
2011-02-04merge jacksonmj's and much better string parsing because of a function i found.Cracker641-16/+16
2011-01-28update to latestCracker641-119/+165
2010-11-20Made wall code use #defines. small fix for adjustabl brush.Philip1-12/+12
2010-10-04UpdatingPhilip1-0/+141