Commit Graph

761 Commits

Author SHA1 Message Date
jacksonmj
469de0cae0 Fix air-particle heat transfer
Heat transfer rate is proportional to temperature difference.

Previously, the code caused the temperature change to be proportional to
absolute temperature.
2011-06-02 20:19:46 +01:00
jacksonmj
744854ef36 Speed up update_PIPE
By making it call rand() once instead of 6 times.
2011-06-02 20:19:28 +01:00
jacksonmj
099ab10a37 Walls no longer limit fast particles to 2 pixels per frame 2011-06-02 20:19:18 +01:00
jacksonmj
bc44af6a0b INVS should leave photons alone when under pressure 2011-06-02 20:19:10 +01:00
Simon Robertshaw
289f4e4e4e Change console info 2011-06-02 20:16:43 +01:00
Simon Robertshaw
a7330b9b26 tpt.set_property implementation 2011-06-02 18:49:31 +01:00
Simon Robertshaw
c003fee63e Ambient heat (disabled by default) 2011-06-01 20:18:19 +01:00
Simon Robertshaw
3d600c6955 Add gravity field manipulation to Lua api, move gravity processing to after the particle update (Means a delay of 1 frame, but we get the ability to manipulate the field with Lua) 2011-06-01 12:16:33 +01:00
Simon Robertshaw
2c8c4bc567 Pass mouse coordinates (mousex, mousey, mouseb, mousebq) and Lua click handling 2011-05-31 18:38:13 +01:00
Simon Robertshaw
2327d9678d implement create and delete functions 2011-05-31 17:07:38 +01:00
Simon Robertshaw
03a048afe5 Add calm blue text colour, buffer overflow fix for richtext 2011-05-31 00:33:47 +01:00
Simon Robertshaw
7a875dd846 Fix buffer overflow with huge error message 2011-05-31 00:05:01 +01:00
Simon Robertshaw
b0659e3dd1 Step code registration, just an example at the moment 2011-05-30 20:11:34 +01:00
Simon Robertshaw
d5f1a4cfd0 Many methods for Lua console 2011-05-30 19:44:17 +01:00
Simon Robertshaw
cad644824d Defaults for tpt.drawtext method 2011-05-30 18:25:02 +01:00
Simon Robertshaw
d8051926c8 More descriptive error messages for lua console 2011-05-30 18:15:56 +01:00
Simon Robertshaw
65252aa002 drawtext for Lua 2011-05-30 16:45:39 +01:00
Simon Robertshaw
79a27c2c90 Basics for Lua 2011-05-30 16:22:39 +01:00
Simon Robertshaw
5dcc3dbb44 Rich text syntax
TODO: Link hovering
2011-05-29 17:00:31 +01:00
Simon Robertshaw
e35440fe59 MOTD on search page 2011-05-29 14:30:22 +01:00
jacksonmj
4fd97b93b4 Large speed improvement for QRTZ
Also prevent growing when sparked.
2011-05-29 13:38:53 +01:00
jacksonmj
7750cf8ccd Improve decoration in blob view, exclude from life and heat view 2011-05-29 13:38:39 +01:00
jacksonmj
f603e33e74 Small speed improvement to eval_move
Warning: may be buggy, test thoroughly.
2011-05-29 13:36:11 +01:00
jacksonmj
5e414e64dc Fix WIND decoration, and reset dcolour in create_part 2011-05-29 13:35:00 +01:00
jacksonmj
a2c171fbf9 Remove remaining references to old decorations buffer 2011-05-29 13:34:50 +01:00
jacksonmj
6a2f357efd Revert "Pass decorations to saving functions (doesn't actually save yet)"
This reverts commit 7fe99f3210.

Conflicts:

	src/main.c
2011-05-29 13:34:37 +01:00
Simon Robertshaw
a40d1dc121 Decorations saving 2011-05-28 20:37:26 +01:00
Simon Robertshaw
577ad4eb47 Gravity state now saved 2011-05-28 18:54:12 +01:00
Simon Robertshaw
232595c209 Fix image decompression 2011-05-28 18:15:05 +01:00
Simon Robertshaw
2795970639 Some debug info for image decoding 2011-05-28 18:05:05 +01:00
Simon Robertshaw
4c4b457cab Full thumbnails for open_ui 2011-05-28 17:16:12 +01:00
Simon Robertshaw
95e51bc7f4 Render uses resample_img 2011-05-28 15:29:33 +01:00
Simon Robertshaw
edc6339369 Render changes 2011-05-28 14:57:07 +01:00
Simon Robertshaw
380a45a4c9 Image resampling for thumbnails 2011-05-28 14:19:01 +01:00
Simon Robertshaw
abb0ceb981 Use PTi for thumbnails in game browser
TODO: Better scaling/resampling
2011-05-28 13:54:23 +01:00
Simon Robertshaw
2c7b8a6902 Fix renderer, add image decode/code methods 2011-05-28 13:49:07 +01:00
jacksonmj
ab7cd2e5f6 Skip some calls to do_move for liquids
No liquid can occupy the same space as itself unless in E-Hole
2011-05-28 18:51:57 +08:00
jacksonmj
420f8e7442 Make NBHL/NWHL eat things in the same way as BHOL/WHOL
Also make ANAR move opposite to Newtonian gravity
2011-05-28 18:51:57 +08:00
jacksonmj
6e9cbfdb4a Fix STKM always going through walls
Now behaves as normal, i.e. only occasionally goes through walls.

Walls which completely block all particles are in the pmap with type
0xFF. ptypes[] doesn't go up to 0xFF, so ptypes[0xFF].state will not
necessarily result in an answer that gives correct behaviour for walls.
2011-05-28 18:51:57 +08:00
Simon Robertshaw
5919cefa85 Decorations are per particle TODO: remove references to the decorations buffer 2011-05-27 14:44:56 +01:00
Simon Robertshaw
7bf0ac10f6 Add some potential HTTP response codes 2011-05-24 19:57:08 +01:00
Simon Robertshaw
2a1e51abff temp fix for linux compilation 2011-05-24 15:11:25 +01:00
Simon Robertshaw
a52344f399 Decorations improvements 2011-05-24 15:01:18 +01:00
Simon Robertshaw
2d9e0b75e4 jacksonmj's decorations commit 2011-05-24 14:57:46 +01:00
Simon Robertshaw
453c69d39a Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2011-05-24 14:55:29 +01:00
Simon Robertshaw
eafcdf8ec9 Improve error handling on display initialisation 2011-05-24 14:54:14 +01:00
jacksonmj
ee39c06152 Decorations toggle and brush size keys 2011-05-24 21:49:08 +08:00
jacksonmj
fc4de9640c Fix sim options description, GOO and DEUT 2011-05-24 21:49:08 +08:00
Simon Robertshaw
dadac37264 Move Diamond into solids menu, add gravity elements 2011-05-20 13:00:34 +01:00
Simon Robertshaw
c932552aed Message notifications on login 2011-05-20 12:42:36 +01:00
Simon Robertshaw
1622974c0a Fix message notifications for non-elevated users 2011-05-19 21:41:13 +01:00
jacksonmj
603844f97f Fix DEUT explosion 2011-05-19 22:53:24 +08:00
jacksonmj
7482e4d071 Small fix for liquid and powder movement 2011-05-19 22:53:23 +08:00
jacksonmj
68c4d6d621 Make sure WIND can't be created
Revert this if the element number is reused for something useful
2011-05-19 22:53:23 +08:00
jacksonmj
e4b03fb2e2 Photons and neutrons go through portal instead of reflecting 2011-05-19 22:53:23 +08:00
Simon Robertshaw
af68469f6a pthread Win32 static linking 2011-05-19 15:32:50 +01:00
Simon Robertshaw
3ff800ec9a Message notification changes 2011-05-19 08:08:59 +01:00
Simon Robertshaw
9d70d60ee9 New message notification on session check TODO: Clickable link to conversations on website 2011-05-16 12:46:08 +01:00
Simon Robertshaw
1ddff1ad3b Runtime fullscreen toggle TODO: Fix bug that prevents from closing the window after a fullscreen toggle 2011-05-15 20:40:08 +01:00
Simon Robertshaw
d8e7c82f1c Fix n-gravity toggle 2011-05-15 19:45:45 +01:00
Cracker64
9d20d6af82 Decoration has a color menu. GoL uses less memory(17MB less), and probably a bit faster. 2011-05-14 13:46:10 +01:00
jacksonmj
e675fb3cc1 Fix crash with negative lava ctype
E.g. "set type prti lava"
2011-05-14 13:44:44 +01:00
jacksonmj
203c3a0151 Translate invisible particles to decorated diamond when loading 2011-05-14 13:44:22 +01:00
jacksonmj
7fe99f3210 Pass decorations to saving functions (doesn't actually save yet) 2011-05-14 13:44:02 +01:00
jacksonmj
cbfc73d8d6 Turn WIND into a tool 2011-05-14 13:43:51 +01:00
jacksonmj
26dbf70709 Fix overlapping particles 2011-05-14 13:39:40 +01:00
jacksonmj
882a839205 Fix high speed photons when reflecting near glass 2011-05-14 13:39:14 +01:00
Simon Robertshaw
fa54c005b2 Use properties for life decrement/kill 2011-05-14 13:38:52 +01:00
Simon Robertshaw
73f2f9f57f fix neutron cloning 2011-05-14 13:34:06 +01:00
jacksonmj
c23124e0d7 Shrink draw_tool_xy 2011-05-14 13:28:24 +01:00
Simon Robertshaw
16f014b06a Move wall drawing to graphics.c 2011-05-14 13:28:02 +01:00
Simon Robertshaw
d0f236d6b9 Condition variable instead of busy wait 2011-05-14 13:21:44 +01:00
Simon Robertshaw
33eb485c9f Revert "-a"
This reverts commit 550d270af2.
2011-05-14 13:09:46 +01:00
Simon Robertshaw
550d270af2 -a 2011-05-14 13:02:36 +01:00
Simon Robertshaw
3196690b03 Runtime scale switching 2011-05-13 10:44:39 +01:00
Simon Robertshaw
351565c6e2 Fix some thread sync and gravity sync issues 2011-05-12 18:45:14 +01:00
Simon Robertshaw
ee962dc8bb Newtonian gravity toggle, disabled by default 2011-05-12 18:04:29 +01:00
Cracker64
59bd280fad ANAR changes, WHOL absorbs ANAR and gets colder. ANAR burns with CFLM strangely. 2011-05-05 20:38:30 +01:00
jacksonmj
b5a334c2af Improve piling of powders 2011-05-05 20:36:14 +01:00
jacksonmj
59d9071e87 Make damp sponge much less flammable
Also make evaporation cool the sponge better
2011-05-05 20:35:17 +01:00
jacksonmj
0aa4970b33 Remove some unnecessary checks 2011-05-05 20:35:08 +01:00
jacksonmj
892a2b11c7 Make middle click work with photon map 2011-05-05 20:34:22 +01:00
jacksonmj
9a3836879e H2 burns from spark, lava, plasma; O2 burns from plasma 2011-05-05 20:34:05 +01:00
jacksonmj
a7b5718c6a Fixes for previous commit
Previous commit caused buggy movement in walls
2011-05-05 20:33:42 +01:00
jacksonmj
ddaed2ad69 Slight speed improvement for liquids and powders 2011-05-05 20:33:09 +01:00
jacksonmj
7543a3d05e Fix plut lava
type already set to ctype and ctype already cleared, whoops.
2011-05-05 20:31:46 +01:00
savask
f0c5960b56 Some work on bubbles. Added "bubble x,y" command to console.
Also made them save like regular soap.
2011-05-05 20:24:42 +01:00
savask
3ea306cc77 Some changes to soap. 2011-05-05 20:24:21 +01:00
Simon Robertshaw
5aefd0cb01 Initial soap commit 2011-05-05 20:14:35 +01:00
Simon Robertshaw
fb408ab82b Revert "Dem bubbles"
This reverts commit 607572cf0d.
2011-05-05 20:08:13 +01:00
unknown
607572cf0d Dem bubbles 2011-05-05 19:58:30 +01:00
Simon Robertshaw
981e17927b Fix BMTL and gravity breaking 2011-04-26 16:57:04 +01:00
Simon Robertshaw
06c0949beb Gravity breaks elements like pressure does (Doesn't work for broken metal and needs tweaking a little) 2011-04-26 16:46:57 +01:00
Simon Robertshaw
75d5cc3d04 Fix for non-diff mode 2011-04-26 16:18:43 +01:00
Simon Robertshaw
061d6ba7af Gravity: only calculate the difference 2011-04-26 16:15:23 +01:00
Simon Robertshaw
b26648e6ae Fix pause with gravity and test deuterium improvements 2011-04-25 20:41:45 +01:00
Cracker64
24f5905020 portal now uses particles as storage, so it keeps everything. 2011-04-25 19:00:27 +01:00
Simon Robertshaw
4c153d2f34 gravmutex = NULL not liked by some compilers (It's not actually correct anyway) 2011-04-25 16:59:04 +01:00
Simon Robertshaw
28d9328959 Dialog box for changing simulation options, gravity toggle needs implementing 2011-04-25 16:39:28 +01:00
jacksonmj
7b82eae82e Jacksonmj: Move console functions into seperate file 2011-04-25 12:07:55 +01:00