summaryrefslogtreecommitdiff
path: root/src/elements/sprk.c
AgeCommit message (Collapse)AuthorFilesLines
2012-11-17Remove old codeSimon Robertshaw1-250/+0
2012-08-13Powered pipe, based on jacob1's commitsjacksonmj1-0/+5
PSCN to turn on, NSCN to turn off, INST to reverse. Differences from jacob1's commit include: flood fill function that includes 1px diagonal pipes, powered/reversed state stored in tmp instead of flags, sparks from PSCN/NSCN/INST always take effect the following frame, single pixel pipe directions are a number from 0 to 7 so "if(coords)" does not check whether one is set (store another "transfers according to 1px pipe direction" bit for reverse flow).
2012-07-09Add ptypes.enabled checks to a few more placesjacksonmj1-1/+1
2012-06-28Use atan2 for LIGH angle calculationsjacksonmj1-4/+2
atan2 gives the actual angle (in the range -pi to pi). acos and asin just give the principal value (in the range 0 to pi, or -pi/2 to pi/2)
2012-06-15Move INST flood fill into a separate functionjacksonmj1-1/+1
Since there were so many if statements for INST in flood_parts. Also, allow INST inside walls to be sparked.
2012-05-23fusion changesJacob11-2/+2
2012-05-06Added GPLv3+ license headers to all files in src/elements/Aditya Vaidya1-0/+15
2012-03-14prevent ionizing NBLE and burning H2 during fusionJacob11-1/+3
2012-03-14fix spark color in nothing displayJacob11-3/+3
2012-02-05Separate loop for updating life, and add SPRK life checks to most electronicsjacksonmj1-7/+7
2011-11-18Bomb effects to effects render and sprk glow moved to fireSimon Robertshaw1-8/+6
2011-10-30Change LCRy workings and add ELEC (wip)Simon Robertshaw1-1/+6
2011-10-28Fix Blob mode, Sprk, Firw, Fwrk and othersSimon Robertshaw1-2/+3
2011-10-25Merge latest with graphicstestSimon Robertshaw1-1/+37
2011-10-25Spark graphics change and disable lensing for non-fancy displaysSimon Robertshaw1-6/+8
2011-10-13Some changes to LIGH/EMP/TESC based on changes in MaksProg's mod v0.3jacksonmj1-2/+2
Weaker and shorter EMP flash. TESC has correct tmp value when created with replace mode. LIGH harms STKM. Gravity affects LIGH in create_part if p==-2, instead of in update_LIGH, so that TESC lightning is not affected by gravity.
2011-10-13Some work on DEST, EMP, LIGHjacksonmj1-24/+24
Change indentation to tabs, respect temperature limit (if a hotter reaction is required, should raise temp limit instead of ignoring it). DEST: fix TYPE_SOLID check, and prevent it displacing DMND EMP: randomise DLAY delay instead of heating it (since DLAY does not melt and does not transfer heat) Fix nearest_part so that t=-1 does not include dead particles
2011-10-12Implement more particle graphicsSimon Robertshaw1-0/+11
2011-10-11Fixes for LIGH and TESC, LIGH observes gravity settingSimon Robertshaw1-1/+1
2011-10-10Fix crash with LIGHSimon Robertshaw1-1/+3
2011-10-10Elements, LIGH, TESC, EMP and DEST thanks to MaksProgSimon Robertshaw1-1/+35
2011-08-27Remove blocking walls from pmapjacksonmj1-2/+2
2.5% speed increase on a screen full of water
2011-08-22Fix electrode when in replace mode or specific delete modejacksonmj1-2/+2
Also fix bomb when SLALT != 0
2011-07-27Revert "DLAY element"Simon Robertshaw1-19/+5
This reverts commit 7338545ab43b1871cea0f91a15746e534d7a9e9b.
2011-07-26DLAY elementtridiaq1-5/+19
2011-07-06Change PBCN switching methodjacksonmj1-1/+1
PCLN is different for compatibility with some existing saves relying on the exact time taken for a switch on/off to spread through adjacent PCLN dots (commit 692e2ba86d694103bfcad00ddd6816fc96d595bd)
2011-06-28Powered Breakable clone, Gravity Pump, New menu section for powered elements ↵Simon Robertshaw1-1/+1
(needs icon)
2011-06-25Check photon map in Lua functions, and allow any ctypejacksonmj1-1/+1
Also add some extra checks on ctype in the rest of the game
2011-05-29Large speed improvement for QRTZjacksonmj1-0/+1
Also prevent growing when sparked.
2011-04-08Electrolysis produces H2jacksonmj1-2/+4
2011-03-02Fix ETRD not conducting correctly to adjacent particlesjacksonmj1-10/+11
2011-02-04merge jacksonmj's and much better string parsing because of a function i found.Cracker641-2/+6
2011-01-29fix some visual studio issues.Cracker641-1/+2
2011-01-29Other things overwritten, and changes from jacksonmjCracker641-1/+1
2011-01-28update to latestCracker641-0/+168