Commit Graph

305 Commits

Author SHA1 Message Date
savask
c9bcc11d35 Viscosity change for gel. Water diffusion among sponge and gel (but with
flying cake effect)
2012-04-15 21:48:24 +07:00
savask
8523da398f Added gel - a liquid with variable heat conductivity and viscosity. 2012-04-15 17:56:55 +07:00
jacksonmj
76f49dd024 Stop walls next to pipe triggering automatic pattern generation 2012-04-10 17:26:14 +01:00
Simon Robertshaw
2976936cfd Glowing BRAY 2012-04-05 23:17:24 +01:00
Simon Robertshaw
57d8335ca5 Allow DEST to be cloned with CLNE, PCLN, BCLN and PBCN. Add icon for Force elements, minor edits to Gas and Atomic element icons 2012-04-03 23:54:51 +01:00
Simon Robertshaw
001c4502e8 Fix firework glow 2012-03-17 18:37:22 +00:00
Simon Robertshaw
4d45bbedb3 Fix glow for deut at ligh 2012-03-17 18:15:45 +00:00
Jacob1
a27d97124c wifi/portal lines 2012-03-14 20:44:17 -04:00
Jacob1
4fcfb05f25 fix 10000 compiler warnings, put nble.c in right spot, delete create_moving_solid 2012-03-14 20:43:53 -04:00
Jacob1
94b8ed193f Fix portals being ugly and PRTO effects not being random at first 2012-03-14 19:51:13 -04:00
Jacob1
8db6230414 fusion step 3 2012-03-14 19:37:10 -04:00
Jacob1
803ded3b33 fusion step 2 + modify temp/pressure of step 1 2012-03-14 19:35:28 -04:00
Jacob1
83d4658589 prevent ionizing NBLE and burning H2 during fusion 2012-03-14 19:33:10 -04:00
Jacob1
446f773542 Fusion, step 1 2012-03-14 19:30:07 -04:00
Jacob1
0825324469 fix spark color in nothing display 2012-03-14 19:22:14 -04:00
Jacob1
dc688470a6 soap lines, create_parts fix, compiling fixes 2012-03-14 19:20:27 -04:00
jacksonmj
f41af45620 Fix fighters not going through portals correctly 2012-03-13 18:27:47 +00:00
jacksonmj
d21c61aa52 Prevent ARAY passing through some non-conductive materials, and let normal ARAY pass through sparked INWR 2012-02-29 21:54:35 +00:00
savask
2b4d0442b5 Fixed the bug with fighters running away from stick mans, but now
boundary check is worser so fighters won't usually notice holes on
their way.
2012-02-28 19:35:59 +07:00
Simon Robertshaw
f6696282e1 Added FRAY - Force-ray and RPEL - Repeller 2012-02-25 10:26:02 +00:00
jacksonmj
3702438482 Prevent gaps in beams of photons from powered clone 2012-02-19 00:49:04 +00:00
jacksonmj
c960c29f72 Make DEUT compress when Newtonian gravity is applied to it 2012-02-18 23:46:08 +00:00
jacksonmj
e769f3feb8 Allow BRAY from PSCN to pass through sparked INWR
(it currently passes through INWR only when not sparked)
2012-02-16 21:39:29 +00:00
jacksonmj
91163c44ab Fix stationary photons being created by PCLN/PBCN 2012-02-11 02:18:09 +08:00
jacksonmj
06cb98f705 INSL blocks DLAY conduction, and raise DLAY temperature limit 2012-02-05 22:45:30 +08:00
jacksonmj
72a4358eee Make ARAY fire once per spark 2012-02-05 22:45:30 +08:00
jacksonmj
68ab3ca3ca More SPRK life checks for electronic elements
Check life>0, because SPRK changes back to its ctype when life==0. This
could result in SPRK being found/not found depending on particle order,
so pretend SPRK is not there if life==0 (it will disappear during the
current frame).
2012-02-05 22:45:30 +08:00
jacksonmj
1a5cd45eb8 Fix switch not activating completely while being sparked
Check life>=10 so that activation still spreads just after the switch has
been sparked. Copy other particle's life value instead of setting to 10
to avoid spark loops.
2012-02-05 22:45:30 +08:00
jacksonmj
a722d7a396 Change wifi so that it always takes one frame to transmit 2012-02-05 22:45:29 +08:00
jacksonmj
6bdc05cc40 Separate loop for updating life, and add SPRK life checks to most electronics 2012-02-05 22:45:29 +08:00
Simon Robertshaw
0a2cf1b1c8 Stop printing crap from BRMT function 2012-01-29 18:00:30 +00:00
jacksonmj
32c9ff3099 Make RBDM/WATR explosion work again, by not killing fire created by WATR 2012-01-25 21:33:22 +08:00
jacksonmj
748a528fe0 Only check the bits actually used for wavelength in photon ctype
Fixes black photons not being killed after passing through pipe
2012-01-25 21:33:22 +08:00
Simon Robertshaw
e41a3af8c5 BRMT + BREL = THRM at high temperatures 2012-01-01 16:32:02 +00:00
jacksonmj
23d6823bc3 Fix gravmap memset, and restrict_flt for temperatures 2011-12-29 06:39:59 +08:00
Simon Robertshaw
fc7f872d8b Fix issue where heat transition would turn TNT to fire, TNT uses tmp for trigger state while Fire uses it for water vapourness. 2011-12-21 20:23:27 +00:00
Simon Robertshaw
a716c59610 Added some heat to TNT and IGNC 2011-12-21 17:39:53 +00:00
Simon Robertshaw
810adc81fe Use reduced resolution gravity maps for improved performance 2011-12-19 21:35:40 +00:00
Simon Robertshaw
5e0bec261c CLST+NITR = TNT, Use ARAY to clear large arrays of STOR 2011-12-19 15:21:27 +00:00
Simon Robertshaw
d6953be3a8 New element: Ignition cord 2011-12-19 14:29:01 +00:00
jacksonmj
46068833d1 Make PIPE detach SOAP particles (crash fix) 2011-12-18 22:04:47 +08:00
savask
f9603fd4a9 Fixed gravity for stick man. 2011-12-10 21:14:13 +07:00
Simon Robertshaw
ee43158ec0 Commit fail, missing file :( 2011-12-03 01:00:06 +00:00
Simon Robertshaw
55a53a0c0f Back to old LCRY rendering 2011-12-03 00:36:12 +00:00
Simon Robertshaw
cb75e1d924 Fix spark effect on BOMB, another attempt at TNT (Explosive with more pressure) 2011-12-03 00:11:19 +00:00
Simon Robertshaw
93f5837974 Fix bug with PIPE where particles would have an incorrect colour if they didn't explicitly set the colr/g/b in its own graphics update 2011-11-26 12:50:28 +00:00
Simon Robertshaw
047a39498d Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2011-11-26 12:45:15 +00:00
Simon Robertshaw
d17336b467 Allow pipe to grab from photon map, BRAY beam takes temp from ARAY 2011-11-26 12:44:52 +00:00
jacksonmj
769b26ea7e Check value of decorations_enable in graphics_LCRY 2011-11-21 08:50:41 +08:00
Simon Robertshaw
876c861c42 Fix LCRY/ELEC infinite loop, BIZR turns photons into electrons, SING explodes with electrons, electrons react with deut. 2011-11-21 00:48:39 +00:00
Simon Robertshaw
0ed3ca771e Bomb effects to effects render and sprk glow moved to fire 2011-11-18 22:20:05 +00:00
jacksonmj
05fbb92420 Make PIPE reset (ready to generate pattern) when ctype is cleared and life is 0 2011-11-12 20:46:47 +08:00
savask
7de6526a1e CAUS now kills stick man. Also stick mans can have gas power now. 2011-11-02 22:22:27 +07:00
Simon Robertshaw
3723147a1d ACEL and DCEL, need to be in a better section 2011-11-01 20:44:49 +00:00
savask
3e5fb5942d Made fighters shoot anything deadly. 2011-11-01 23:44:17 +07:00
savask
8e00d07f35 Some works on FIGH's AI. 2011-11-01 23:44:02 +07:00
Simon Robertshaw
6de8346cdb Fix Wireworld graphics 2011-11-01 13:35:18 +00:00
Simon Robertshaw
a9046fe7a6 OpenGl Improvements 2011-11-01 11:42:44 +00:00
Simon Robertshaw
ec3fdfed1c Deco apply to fire mode 2011-10-31 21:57:13 +00:00
Simon Robertshaw
c26cfa29c2 LCRY tweaks 2011-10-31 15:35:27 +00:00
Simon Robertshaw
4124738a0e Electrons Hydrolysis. 2011-10-30 21:13:33 +00:00
Simon Robertshaw
856f9574b6 Change LCRy workings and add ELEC (wip) 2011-10-30 16:22:33 +00:00
Simon Robertshaw
3daf9e1e29 Fix nothing display and LCRY with decoration 2011-10-29 21:21:30 +01:00
Simon Robertshaw
a7191ce9e7 Whoops, fix PMODE_BLEND to use correct function, also fix BRAY del mode 2011-10-29 00:11:27 +01:00
Simon Robertshaw
e46f26684b Fix Life and heat display, implement alpha, blend and add, fix FILT, INVS and BRAY + others 2011-10-28 23:48:57 +01:00
Simon Robertshaw
7413654b9f Fix Blob mode, Sprk, Firw, Fwrk and others 2011-10-28 22:36:37 +01:00
Simon Robertshaw
228e79eb4f Fix graphics for Phot, Fire, Stor 2011-10-28 22:10:05 +01:00
Simon Robertshaw
a101353681 Make smoke a little less dark 2011-10-28 21:54:10 +01:00
Simon Robertshaw
ed75259f54 Fix H2+O2 Plasma that doesn't make water 2011-10-28 21:53:21 +01:00
Simon Robertshaw
e2c9882692 Merge latest FIGH additions 2011-10-26 17:10:21 +01:00
savask
03902ec9a4 Made a special structure for stick mans. 2011-10-26 15:36:00 +01:00
savask
5652ecc5c2 Some work on lightning for stick mans and fighters. 2011-10-26 15:35:00 +01:00
savask
573bda0950 Added a simple AI to fighters. 2011-10-26 15:34:02 +01:00
savask
1eef119fdb Made stick mans' deadly check better. 2011-10-26 15:33:03 +01:00
savask
00d604820d Added fighters. 2011-10-26 15:31:55 +01:00
Simon Robertshaw
cb537351e7 Fixes to EMP and speed/zoom for FBO texture 2011-10-25 12:13:32 +01:00
Simon Robertshaw
07a1f21df4 Merge latest with graphicstest 2011-10-25 11:31:21 +01:00
Simon Robertshaw
f01056ee02 Spark graphics change and disable lensing for non-fancy displays 2011-10-25 09:17:11 +01:00
Simon Robertshaw
8f91f948c1 Generate fire/plasma gradients at runtime, makes editing easier 2011-10-24 17:20:18 +01:00
Simon Robertshaw
b04c20e747 More MSVC fixes 2011-10-23 18:24:51 +01:00
Simon Robertshaw
b549688fdd Compatibility with MSVC - devast8a 2011-10-23 17:59:04 +01:00
Simon Robertshaw
66fd41673b Fix compilation for Non-OpenGL builds 2011-10-23 17:37:24 +01:00
Simon Robertshaw
1c7b9d9949 Pass particle pointer to graphics update function instead of index. Make PIPE use subcall to get graphics info. Cache for particle graphics properties. Stickman PSPEC_STICKMAN added and implemented 2011-10-23 13:52:26 +01:00
Simon Robertshaw
09d3cacf9c Implement Blur mode and embed shaders 2011-10-20 16:28:49 +01:00
Simon Robertshaw
29efbcaa3a Glow, Fire, Smoke, blob and flat particle effects in OpenGL 2011-10-20 00:34:31 +01:00
jacksonmj
8e877594c9 Allow STKM to use lightning 2011-10-15 01:04:58 +08:00
jacksonmj
af21bcd353 Some changes to LIGH/EMP/TESC based on changes in MaksProg's mod v0.3
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-14 00:33:22 +08:00
jacksonmj
fc4836e69b Don't heat elements which don't conduct heat 2011-10-14 00:33:21 +08:00
jacksonmj
2f46dca7c1 Some work on DEST, EMP, LIGH
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-14 00:33:20 +08:00
Simon Robertshaw
7a62500eb3 Implement remaining graphics functions for particles 2011-10-12 18:40:00 +01:00
Simon Robertshaw
2cf9ef60aa Implement more particle graphics 2011-10-12 12:37:04 +01:00
Simon Robertshaw
6178bb4605 Fixes for LIGH and TESC, LIGH observes gravity setting 2011-10-11 10:34:33 +01:00
Simon Robertshaw
fd71675b69 Add missing file from previous commit 2011-10-10 23:59:44 +01:00
Simon Robertshaw
40457bf652 Fix crash with LIGH 2011-10-10 23:58:50 +01:00
Simon Robertshaw
a87407f0df More functionality for LIGH, better english on element descriptions 2011-10-10 23:55:42 +01:00
Simon Robertshaw
bf8258ee30 Elements, LIGH, TESC, EMP and DEST thanks to MaksProg 2011-10-10 23:41:19 +01:00
Simon Robertshaw
2901eefa32 Smoke Graphics 2011-10-10 22:01:10 +01:00
Simon Robertshaw
fd7120425d Changes to QRTZ scattering 2011-10-01 18:18:53 +01:00
Simon Robertshaw
218c14c5ea Better scattering for QRTZ 2011-10-01 17:59:52 +01:00
jacksonmj
203db57e57 Prevent segfault with high tmp values for pipe 2011-09-30 14:16:48 +01:00