Commit Graph

717 Commits

Author SHA1 Message Date
Simon Robertshaw
9b9d628374 Improvements to Wire 2011-08-08 14:57:32 +01:00
lieuwe
50c4bfd86d Y U NO WORK. added logic for WIRE but it's not being called. 2011-08-08 20:32:04 +08:00
lieuwe
15b4ba7532 added WIRE particle type. 2011-08-08 20:31:20 +08:00
jacksonmj
788b0cd04c Calculate Newtonian gravity using fast Fourier transforms
About 16% slower for one cell changing, same speed for 6 cells changing,
and several hundred times faster for whole screen changing.
2011-08-06 18:13:22 +08:00
jacksonmj
d20c704d88 LIFE descriptions 2011-08-06 18:13:22 +08:00
Simon Robertshaw
4ebe56f65c Mouse and keyboard events, replace luaL_openlib() with luaL_register() and move mousex and mousey out of the global table and into the 'tpt' table 2011-08-05 14:54:24 +01:00
Simon Robertshaw
89e47bfa4d Some tags for version info to make it easier for automation tools 2011-07-31 14:20:22 +01:00
Simon Robertshaw
f51fe2c983 Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2011-07-31 12:20:16 +01:00
Bryan Hoyle
d7a55f1f50 me4502 added tpt.throw_error and tpt.heat as lua commands 2011-07-30 20:31:34 -04:00
Simon Robertshaw
3bd5a4711c Less buggy DLAY 2011-07-27 14:28:32 +01:00
Simon Robertshaw
58d96de4ce Revert "DLAY element"
This reverts commit 7338545ab4.
2011-07-27 13:07:41 +01:00
jacksonmj
647e29a31a Fix LIFE graphics in blob, nothing and fancy view
And some small fixes for switchable element colours
2011-07-26 18:27:56 +01:00
Simon Robertshaw
899969cc8a Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2011-07-26 17:46:15 +01:00
tridiaq
7338545ab4 DLAY element 2011-07-26 17:05:20 +01:00
savask
dbd3272933 Generalized stick man's update functions. Got rid of some unnecessary
variables.
2011-07-25 12:47:38 +07:00
jacksonmj
89cc8d4ded Fix life cloning 2011-07-24 20:10:43 +08:00
jacksonmj
7ed0255f04 Disable old life elements 2011-07-24 20:07:15 +08:00
cracker64
2f714606d7 active menu and hud enable are global. 2011-07-22 10:08:13 -04:00
cracker64
d013aa3632 Added functions to header. 2011-07-22 06:55:43 -07:00
Simon Robertshaw
68404608f6 Lensing effect for gravity, adds 3 new gravity maps (full resolution, linear interpolation for faux accuracy), old ones should be removed in time. 2011-07-18 23:58:08 +01:00
Simon
0fbe6e2d3f Fix PBCN saving and increment major version 2011-07-13 12:03:30 +01:00
Simon Robertshaw
b4dd9ec056 Version change 2011-07-12 14:09:04 -07:00
Simon Robertshaw
63e9d6d9c1 Version change 2011-07-12 19:41:37 +01:00
Simon Robertshaw
7480442c67 Move SING back to where it belongs, acid heats up when dissolving materials 2011-07-12 18:10:10 +01:00
Cate
45fe00bef9 Added Cracker changes for adding a triangle brush! :DDD Seems to work without any issues. 2011-07-12 23:29:22 +08:00
Cate
812acd6663 Increased CLST's Advec, after noticing that with 0 advec, it has no air influence, and so cannot be dragged by air XD One digit change. 2011-07-12 21:00:21 +08:00
Cate
0ce4104c7a Added CLST element, which is Clay dust, for making concrete with water. :D Neat due to element cohesion with itself, which causes it to sludge downwards in a way very uncharacteristic of any current powder. Cohesion is very easy to modify. Thanks to Savask for help with cohesion code. :D 2011-07-12 21:00:21 +08:00
Cate
0858b18255 Fixed a typo (?) in Powder.h that made oil turn to oil all over again anywhere below -6 pressure. Not sure why this was set to do this, but fixed anyway. 2011-07-12 21:00:21 +08:00
Simon Robertshaw
d42e06f37a Merge all GOL types into PT_LIFE, behaviour is determined by ctype 2011-07-09 18:22:25 +01:00
Cate
d2eb6f1cb3 Deleted whole repository due to weirdness with recognizing folder. From current source, added Cracker64's changes that make 1px pipe several times faster than thicker pipe. Doesn't break saves. :D 2011-07-08 18:09:16 +01:00
Simon Robertshaw
6a6c5d03f6 Set version to beta 2011-07-07 14:06:48 -07:00
jacksonmj
34774e7829 Basic clipboard_push_text support for linux 2011-07-06 13:43:51 +01:00
Simon Robertshaw
3dd82d9ced Better favourite removal and download counts for the future] 2011-07-06 13:12:05 +01:00
Simon Robertshaw
594fe73e85 Version increment 2011-07-06 12:38:15 +01:00
Simon Robertshaw
25a2b52b64 Savask experimental heat transfer 2011-07-01 11:32:10 +01:00
Simon
00ed0f559a Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2011-06-28 14:31:36 +01:00
Simon Robertshaw
9fd74b7df2 Use new font glyph 2011-06-28 15:21:24 +01:00
Simon
648a4ac01e Adjust font glyph 214 2011-06-28 14:27:33 +01:00
Simon
30a0666774 Update font, add 'activated elements' glyph at position 214 2011-06-28 13:56:12 +01:00
Simon Robertshaw
437f13f424 Powered Breakable clone, Gravity Pump, New menu section for powered elements (needs icon) 2011-06-28 13:58:16 +01:00
Simon Robertshaw
3fe82bf525 Jagged arcs 2011-06-27 18:16:25 +01:00
Simon Robertshaw
36ee81fc6b Better photons for persistent display, ability to toggle gravity view (ctrl+g) 2011-06-27 14:01:07 +01:00
Simon Robertshaw
1dcefb2895 Keep opened files 2011-06-25 16:59:25 +01:00
jacksonmj
36e2a07a5b Visual Studio fixes 2011-06-25 15:52:24 +01:00
jacksonmj
f417d7a4df Include ambient heat in undo 2011-06-25 15:50:59 +01:00
ief015
be79233101 added functions to iterate through all particles
+ tpt.start_getPartIndex() --starts the iteration
+ bool tpt.next_getPartIndex() --increases the iteration, returns true if there are more particles to iterate through
+ int tpt.getPartIndex() --get the current iteration value
2011-06-25 01:32:54 -04:00
Simon
87513503ba Version increment 2011-06-15 18:35:56 +01:00
Simon
cf35ccb8fd Include dir change for OS X 2011-06-15 18:33:33 +01:00
Simon Robertshaw
71922e2763 Version increment 2011-06-15 13:15:03 +01:00
Simon Robertshaw
4c6f3ca152 Revert "Revert "Version increment""
This reverts commit bcb7852762.
2011-06-15 13:13:50 +01:00
Simon Robertshaw
5a8c52aeee Revert "Changed thunder and plasma to work as before."
This reverts commit fe9fd28b70.
2011-06-15 13:11:03 +01:00
Simon Robertshaw
bcb7852762 Revert "Version increment"
This reverts commit af73fd17b2.
2011-06-15 13:09:26 +01:00
Simon Robertshaw
af73fd17b2 Version increment 2011-06-14 20:46:49 +01:00
savask
fe9fd28b70 Changed thunder and plasma to work as before. 2011-06-14 17:13:33 +01:00
Simon Robertshaw
2dd04b917d Add access to the local saving features 2011-06-14 15:13:27 +01:00
Simon Robertshaw
14abcf5fc2 Local saving UI 2011-06-13 23:24:20 +01:00
Simon Robertshaw
7edf6378da Missing files from previous commit 2011-06-12 22:59:36 +01:00
Simon Robertshaw
61ce0f4376 Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2011-06-12 22:57:41 +01:00
Simon Robertshaw
8713587e70 Local save loading (WIP) 2011-06-12 22:56:38 +01:00
Simon
02bb96a6fb Version increment 2011-06-11 18:20:50 +01:00
jacksonmj
93316a9f1d Fix a load of memory leaks
Also fix some compiler warnings (missing headers, wrong pointer type for
modf, etc) and move variable declarations for Visual Studio.
2011-06-11 13:00:42 +01:00
Simon Robertshaw
1f7106acb1 Gravity zoning 2011-06-09 22:35:00 +01:00
Simon Robertshaw
1effdb052a Image for server saving 2011-06-09 17:53:41 +01:00
Simon Robertshaw
09a3670d64 Clean up signs when reading 2011-06-08 18:09:03 +01:00
Simon Robertshaw
3ea25c83b7 message_box and input for Lua API, also autorun.lua 2011-06-08 16:30:36 +01:00
Simon Robertshaw
e94ed7bc11 Version increment 2011-06-08 13:47:41 +01:00
Simon Robertshaw
b5c9d86fbe Less blurry thumbnail scaling 2011-06-08 13:30:39 +01:00
Simon Robertshaw
1b5ff237c0 Version increment 2011-06-04 19:19:34 +01:00
savask
f5af89fb43 Added detach to powder.h. 2011-06-04 19:14:15 +01:00
Simon Robertshaw
98115038c7 Version Increment 2011-06-04 17:44:24 +01:00
Simon Robertshaw
97cc3488eb Mercury 2011-06-04 14:05:22 +01:00
Simon Robertshaw
106dc6e097 Version increment 2011-06-04 12:49:40 +01:00
Simon Robertshaw
a4847e4d9e Version increment 2011-06-04 12:41:12 +01:00
Simon Robertshaw
af5e2b2488 Version increment 2011-06-04 00:00:07 +01:00
Simon Robertshaw
b32683e99c Favourites interface improvements 2011-06-03 18:54:25 +01:00
Simon Robertshaw
623723cd60 Version increment 2011-06-03 16:53:07 +01:00
Simon Robertshaw
fc426b2404 Unregister function (not implemented) 2011-06-03 14:21:46 +01:00
Cracker64
e3ef7f05f0 some more deco editor changes. Right click deletes decoration again. 2011-06-02 20:24:02 +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
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
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
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
577ad4eb47 Gravity state now saved 2011-05-28 18:54:12 +01:00
Simon Robertshaw
380a45a4c9 Image resampling for thumbnails 2011-05-28 14:19:01 +01:00
Simon Robertshaw
2c7b8a6902 Fix renderer, add image decode/code methods 2011-05-28 13:49:07 +01: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
a52344f399 Decorations improvements 2011-05-24 15:01:18 +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
956218736b Fix a few solids affected by n-gravity 2011-05-24 21:49:09 +08:00
jacksonmj
fc4de9640c Fix sim options description, GOO and DEUT 2011-05-24 21:49:08 +08:00
Simon Robertshaw
128e8c1ff8 Version increment 2011-05-20 13:04:52 +01:00
Simon Robertshaw
dadac37264 Move Diamond into solids menu, add gravity elements 2011-05-20 13:00:34 +01:00
Simon Robertshaw
811fe61881 Version increment 2011-05-19 15:59:18 +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
2daf61f702 Put menu_wall back into interface.c to fix crackers colour menu 2011-05-14 13:57:49 +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
c4140955de Life decrement property for soap 2011-05-14 13:44:33 +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
Simon Robertshaw
fa54c005b2 Use properties for life decrement/kill 2011-05-14 13:38:52 +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
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
Simon Robertshaw
5aefd0cb01 Initial soap commit 2011-05-05 20:14:35 +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
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
Simon Robertshaw
3acf9aae2a Asynchronous thread for gravity processing 2011-04-24 17:49:33 +01:00
Cracker64
bd8de4c842 Decorations! ,still messing with it. It does not save currently. TODO: fix typing in boxes to update the color. Line/box tools. Some basic color selections like an element menu. 2011-04-23 14:00:51 +01:00
Simon Robertshaw
55301b70dc Forgot something for gravity 2011-04-22 17:06:44 +01:00
Simon Robertshaw
13ff21bb22 Gravitaaaay (Needs tweeking for performance) 2011-04-22 17:06:09 +01:00
Cate
5fd31116a0 Added IRON to Prop_heatglowsomething. :D So it doesn't look as weird when it comes out of lava. Just a visual touch. 2011-04-19 18:09:46 +01:00
Simon
d37bd56eb6 'M' For selected element swap, 'dae' var for showing a selected element box upon element change (not implemented) 2011-04-17 20:34:54 +01:00
Simon
5c8a6f3af8 Increment version 2011-04-17 14:07:51 +01:00
Simon
67531c2434 Game save renderer 2011-04-12 12:19:21 +01:00
Simon
9d71597df9 Increment version 2011-04-10 12:10:11 +01:00
Simon
626cc8fa6a Remove a TON of warnings 2011-04-08 15:28:57 +01:00
Simon
c51c31c12d IRON now in menu 2011-04-08 14:47:08 +01:00
Simon
7277175da0 Increment version 2011-04-08 13:57:05 +01:00
jacksonmj
40c4dde34a Document icons for linux 2011-04-08 11:11:30 +01:00
jacksonmj
4aeac8b316 Also register .stm extension in Windows 2011-04-08 11:10:52 +01:00
Simon
767d73c5fc astyle 2011-04-08 11:09:42 +01:00
Simon
8872a1065b Move copybox into its own control 2011-04-04 20:02:11 +01:00
AntB
db406494bd Added H2:
Will reduce DESL to WATR and OIL under pressure
	Will fuse with O2 under pressure to make WATR
2011-04-04 23:18:26 +08:00
jacksonmj
90f8c4f483 error_ui: wrap text and change message box height to fit
Stops banned user message overflowing out of message box
2011-04-04 16:11:37 +01:00
Simon
630ab09f63 Copy text UI 2011-04-01 22:26:29 +01:00
Simon
b7a004986f A cracker commit with some nice comments 2011-03-30 18:57:49 +01:00
Simon
f1667bf88e Added exe_name to update.h 2011-03-30 17:52:50 +01:00
Simon
d48f7fc73a O2 header changes 2011-03-29 19:20:46 +01:00
Cracker64
53bc3b817d QRTZ grow changes, uses ctype. 2011-03-29 18:25:11 +01:00
Simon
812798d70d 64bit fixes and other 2011-03-29 17:47:53 +01:00
Lieuwe
3d71ab5582 64bit fixes, thanks a ton jacksonmj :D 2011-03-26 16:45:38 +01:00
Lieuwe
05730797d8 misc stuff 2011-03-26 16:40:03 +01:00
Simon
a589f78429 ... and wood 2011-03-25 11:46:17 +00:00
Simon
eb5826c3da Fix neutron penetration for PLANT 2011-03-25 11:44:20 +00:00
Simon
66edafa4fa Added some file association for Windows, NOT TESTED YET 2011-03-25 11:10:01 +00:00
Simon
a186714a7f Move thunder to explosive 2011-03-24 21:11:46 +00:00
Simon
3639fd96b1 Move Portal to special and Photons to nuclear 2011-03-24 20:19:26 +00:00
Simon
635ad0afdc M_PI for those who aren't awesome enough for Pi 2011-03-24 20:01:15 +00:00
Simon
3ab47ae9d7 Effects for PRTO and PRTI 2011-03-24 19:41:45 +00:00
Simon
2e401babb7 Python console 2011-03-22 17:58:52 +00:00
Simon
c096b2b14a More cracker fixes 2011-03-22 17:25:29 +00:00
Simon
7d56b33589 Fix some WIND bugs 2011-03-22 17:14:45 +00:00
Lieuwe
295626563f 64bit fixing shit 2011-03-20 17:46:29 +01:00
jacksonmj
d46a3bdcb0 Better rotation and inversion, also does single pixel translation 2011-03-18 19:33:38 +00:00
jacksonmj
d924a5554a Matrices and vectors, to make coding next commit more pleasant 2011-03-18 19:33:10 +00:00
Lieuwe
7e27282b92 you can now disable(tpt.disable_python) or enable(python) the python console :D 2011-03-18 19:42:23 +01:00
Lieuwe
96959503cd now warns about a disabled python console. 2011-03-18 19:02:09 +01:00
Lieuwe
8b22ca5064 no longer crashes on mangled console.py and other python initialisation errors. 2011-03-18 17:23:08 +01:00
jacksonmj
56f966b4db Add some arguments to save build/parse functions
To make clipboard manipulation easier.
2011-03-18 12:41:36 +00:00
jacksonmj
495eda27a5 Update icon.h to match icon image files 2011-03-18 00:13:56 +00:00
Lieuwe
b4a3b12d3d broke stuff 2011-03-16 16:53:20 +01:00
Lieuwe
fe5e4a6ddc 64bit really fixed now, does need PYEXT to be defined tho. 2011-03-15 20:09:23 +01:00
Lieuwe
34051303cf no need to include tpt_console.py on 64bit anymore. 2011-03-15 19:18:31 +01:00
jacksonmj
db91bd37f0 Display photon wavelengths in HUD 2011-03-15 15:47:09 +00:00
Lieuwe
c33f6adae7 added #define PYEXT so you can use an external tpt_console.py on 64bit OSes 2011-03-13 18:45:40 +01:00
Cracker64
3b048f8a06 merge merge merge 2011-03-10 15:43:27 -05:00
Lieuwe
db07c1ee0c added #define to disable PYCONSOLE 2011-03-09 15:41:50 +01:00
Lieuwe
51f994f8d5 COMMIT DAMNIT 2011-03-06 21:08:18 +01:00
Lieuwe
f599959efe more work on the chat client, it now supports nick changes 2011-03-06 15:39:50 +01:00
Lieuwe
11a7be5c68 added irc client extension, it only listens for now. 2011-03-05 21:41:11 +01:00
Lieuwe
d6d661c434 keyboard/mouse handling 2011-03-05 20:08:41 +01:00
Lieuwe
20b6a64228 moar graphics stuff 2011-03-05 17:50:05 +01:00
Lieuwe
5cb538f081 got draw_pixel and draw_text to work 2011-03-05 17:09:37 +01:00
Lieuwe
6596155c8a trying to get a putpixel command working but it segfaults atm 2011-03-05 15:54:47 +01:00
Lieuwe
85a2ba9a6e implemented a step hook and modified the makefile to call getheader.py 2011-03-05 15:09:15 +01:00
Lieuwe
fc70b5bb78 tpt_console.py now internal 2011-03-03 21:12:57 +01:00
Lieuwe
eab871c774 getheader now compiles python files 2011-03-03 20:33:48 +01:00
jacksonmj
ded7bdf30d Merge branch 'upstream' into dev
Conflicts:
	src/main.c
2011-02-26 19:32:51 +00:00
Lieuwe
5387f235f9 python console 2011-02-26 11:49:23 +01:00
Simon
fd6f6c5406 WIND from cracker! 2011-02-24 17:11:05 +00:00
Cracker64
bf24a26139 forgot powder.h, and renamed drag to wind 2011-02-24 00:51:09 -05:00
Simon
5d4d815ad3 Fancier glow, now affected by Velocity, Pressure and Heat 2011-02-23 20:35:02 +00:00
Simon
fa76c4b45c Increase minor version 2011-02-23 17:16:13 +00:00
Cracker64
a8439f221e updating 2011-02-22 20:55:09 -05:00
jacksonmj
c9725c6004 Merge branch 'upstream' into dev
Conflicts:
	src/main.c
2011-02-22 15:18:04 +00:00
Simon
ff1aca9524 Update version 2011-02-22 00:15:48 +00:00
Simon
bb0b4e6802 UI improvements for elements menu 2011-02-21 17:57:17 +00:00
jacksonmj
6f2965d0d0 Zoom key conflict with international keyboards
Change zoom key to only use keysym.sym, like all the other keyboard
controls. This may mean it is no longer the 'z' key on all
systems, but will prevent it conflicting with the
other keyboard controls.
2011-02-22 00:08:20 +08:00
jacksonmj
ac7eda80a5 Zoom key conflict with international keyboards
Change zoom key to only use keysym.sym, like all the other keyboard
controls. This may mean it is no longer the 'z' key on all
systems, but will prevent it conflicting with the
other keyboard controls.
2011-02-20 22:47:08 +00:00
jacksonmj
b3278cf888 Fix some compiler warnings 2011-02-20 20:46:26 +00:00
Simon
1307af5c57 Fix saving of display mode from keys and fix persistent display 2011-02-19 18:59:07 +00:00
Simon
c6e2d17ffe Minor version 2011-02-19 18:36:08 +00:00
jacksonmj
a2091ede76 Move reset code to own function
Also clear persistent view when loading a save or clearing the screen.
2011-02-19 15:41:44 +00:00
jacksonmj
d57c5ef5e0 Visual Studio compatibility
Also fix two compiler warnings
2011-02-13 00:30:54 +00:00
Cracker64
e882dfecf9 update with latest 2011-02-10 19:46:34 -05:00
Simon
3de4d163a5 Merge branch 'dev' of git://github.com/jacksonmj/The-Powder-Toy 2011-02-09 15:56:30 +00:00
Cate
d5fe05d760 "Added Air modes using Gravitymode code" 2011-02-09 23:52:28 +08:00
jacksonmj
6bbc5328fc Sound device not compulsory 2011-02-08 14:30:02 +00:00
jacksonmj
b85c29dee4 Prevent crashes in the event of ridiculous temperatures 2011-02-07 20:29:11 +00:00
jacksonmj
cb74b0bacf Improve console element parsing
GOL, 34, 2x2 now work. Element types can no longer be referred to by
number, to remove ambiguity between type and particle number.
2011-02-07 17:13:31 +00:00
Simon
bb3964138c Fix Antimatter 2011-02-04 13:09:48 +00:00
Simon
9469a3b46a Merge with cracker, also fix version 2011-02-04 10:24:35 +00:00
Cracker64
9064cabf28 merge jacksonmj's and much better string parsing because of a function i found. 2011-02-04 01:00:03 -05:00
Cracker64
b6f1ba977c missed some corrections, fixes GoL 2011-02-03 17:28:08 -05:00
Cracker64
fea297b2ac Update with simon, and drawing SPRK on walls crash fix. 2011-01-31 22:53:32 -05:00
Simon
b033a9655d Fix for liquids - jacksonmj 2011-01-31 22:10:34 +00:00
Simon
76e2193318 Fix version for Login 2011-01-31 20:16:12 +00:00
Cracker64
c1ca8bae29 merge jacksonmj's and simon's changes, and made mouse coords show up in debug so it is easier to get them. 2011-01-31 13:12:29 -05:00
Simon
8363a21f23 ALL GLORY TO THE SAVASK 2011-01-31 16:54:13 +00:00
jacksonmj
5bf8755655 Console improvements
Can use x,y coordinates to specify which particle.
ctype now also accepts element names.
More sanity checking of input.
delete command added.
2011-01-31 16:36:40 +00:00
Cracker64
b7f768e4b3 Moved console commands into own function. Added running script files so console commands can be run instantly. Added create command. element names work, from jacksonmj. 2011-01-31 00:12:47 -05:00
jacksonmj
cdd7399cc1 Make console recognise element names 2011-01-31 02:42:34 +00:00
jacksonmj
f97990fedd Merge branch 'upstream' into dev 2011-01-30 22:36:15 +00:00
Cracker64
8ed2947b4c update with latest 2011-01-30 16:46:50 -05:00
Simon
8510421b37 Merge with crackers console 2011-01-30 20:05:47 +00:00
Cracker64
fcf958da21 added 'load' command, and a basic error message. 2011-01-30 15:00:54 -05:00
Cracker64
e18337a70a Added a console! it is pretty self explanitory 2011-01-30 01:23:24 -05:00
Simon
f391b896d4 Use Sessions instead of saving password 2011-01-29 12:16:13 +00:00
jacksonmj
5d34cae2e4 Consistent use of NGOL, better NSCN description 2011-01-29 11:20:34 +00:00
jacksonmj
9938378c0d Merge remote branch 'cracker64' into dev
Conflicts:
	includes/element.h
	includes/powder.h
	src/elements/firw.c
	src/elements/legacy.c
	src/elements/phot.c
	src/elements/sprk.c
	src/graphics.c
	src/main.c
	src/powder.c
2011-01-29 10:50:43 +00:00
Cracker64
4b5337c03a finally fixed visual studio compiling, yay 2011-01-28 21:57:20 -05:00
Cracker64
964ecf2ecf Other things overwritten, and changes from jacksonmj 2011-01-28 20:13:29 -05:00
Cracker64
880ed33fc7 oops, silly copy file, and fixed the new GoL from simon's fail merging. 2011-01-28 19:58:54 -05:00
Cracker64
bcea95c5ca update to latest 2011-01-28 18:54:50 -05:00
jacksonmj
fe033ce859 INWR should cool after being sparked; and correct function parameters
Also correct grule size and replicate existing freezing point behaviour for lava
with strange ctypes.
2011-01-28 23:14:46 +00:00
jacksonmj
a5ff51f5a5 Restore cracker64 changes overwritten by merge 2011-01-28 21:46:40 +00:00
Simon
079d35f1a0 Merge branch 'dev' of git://github.com/jacksonmj/The-Powder-Toy 2011-01-28 19:56:44 +00:00
jacksonmj
086e3151ad Fix some problems with restrict_flt
This change fixes pressure glitches, burning substances cooling by themselves to absolute
zero, and SING having temperatures of minus several million Kelvin.
2011-01-28 19:41:00 +00:00
jacksonmj
bdfbc7c409 Change include file for element update functions 2011-01-28 19:36:26 +00:00
Simon
e9ae32b0cc Merge with jacksonmj, Warning: potential for lot of bugs 2011-01-27 20:32:34 +00:00
Simon
aedb16efb9 Fixes from cracker 2011-01-27 20:14:20 +00:00
Cracker64
60d3f0047b quartz shouldn't have prop_conducts, and fixed visual studio compiling 2011-01-20 14:10:34 -05:00
Cracker64
1b35811bd4 revert all limit changes, a little too glitchy, can be done later when current limit is reached. 2011-01-19 14:25:56 -05:00
Cracker64
ff01973658 made all the shifts and type checks use defines, so it can be changed easier, and put it back to normal with a shift of 8. 2011-01-19 13:48:59 -05:00
Cracker64
e1eeaf9e9a test with increased element limit, there seems to be no performace decrease to me anyway. element limit of 4096 2011-01-17 19:11:30 -05:00
Simon
ce0708eccd Cracker merge 2011-01-17 14:06:27 +00:00
Cracker64
926450a9a3 more life types using states, put them in new menu. Maybe get some way to switch to new menu on mouseover of last spot of current life menu 2011-01-16 20:54:41 -05:00
Cracker64
b1e09d4216 Made GoL code work with more advanced rules with different life states, giving more interesting rules. 2011-01-16 01:29:49 -05:00
jacksonmj
1833be451f Merge branch 'cracker64' into dev
Conflicts:
	includes/powder.h
	src/graphics.c
	src/main.c
	src/powder.c
2011-01-15 16:23:51 +00:00
jacksonmj
42d7b56602 Attempt fix for some cases of fast particles going through obstacles
Also change direction_to_map again, to revert to original version
(which has problems with some diagonal surfaces, but doesn't have noticeable inaccuracies)
for refraction.
2011-01-15 15:25:39 +00:00
Cracker64
b673be0ac2 a fix so photons can be deleted and show up on HUD :) 2011-01-14 00:29:32 -05:00
jacksonmj
0221cdd355 Split elements/misc.c into separate functions 2011-01-13 22:51:55 +00:00
jacksonmj
7fb086065a Correct spelling 2011-01-13 21:56:17 +00:00
jacksonmj
9707443b24 Merge element state into ptypes.
All of the pstates array except .state was replaced by ptransitions.
2011-01-13 21:31:24 +00:00
jacksonmj
def10c41ae Exaggerate convection, misc rearrangement + fixes 2011-01-13 15:24:01 +00:00
jacksonmj
4006bdf4c2 Merge branch 'upstream' into dev 2011-01-11 13:44:52 +00:00
Cracker64
f242566e30 fix QRTZ spot saving, rotate should change FAN vector as well 2011-01-10 09:43:16 -05:00
jacksonmj
54f9f872b9 Finish update function cleanup 2011-01-10 14:41:03 +00:00
jacksonmj
88d107f18a Better channel handling 2011-01-09 21:12:25 +00:00
jacksonmj
144e4bdb69 Begin cleanup of update functions 2011-01-09 19:23:05 +00:00
Simon
b3735bb84b Version change 2011-01-09 12:20:15 +00:00
Cracker64
6b06d37ca5 update with simon, and some other changes from jacksonmj. 2011-01-08 21:23:46 -05:00
Simon
75e898e45b Merge branch 'master' of git://github.com/cracker64/The-Powder-Toy 2011-01-08 21:05:52 +00:00
Simon
764e3966bb Improvements to fancy display 2011-01-08 21:03:43 +00:00
Cracker64
0958a6e6da add ctype transfer to portal 2011-01-08 15:33:54 -05:00
jacksonmj
7f83cb1061 Function pointers + minor adjustments. 2011-01-08 19:39:17 +00:00
Simon
4a046e77c2 Verson 2011-01-08 19:01:43 +00:00
Simon
548d052018 New Element from cracker - BOYL 2011-01-08 18:51:22 +00:00
Cracker64
b4fb2bf20a forgot BOYL description 2011-01-08 13:21:09 -05:00
Cracker64
76304bac8d BOYL, a gas that evens out pressure related to its temp, kind of a gas PUMP, but not really, BOYL+WATR=FOG BOYL+O2=WATR, possibly hydrogen in the future? 2011-01-08 13:16:14 -05:00
Simon
cd08a7102c Changes from cracker 2011-01-08 17:40:30 +00:00
jacksonmj
d17758cc08 Yet more function pointers. 2011-01-08 09:00:59 +00:00
jacksonmj
9af0072b21 Further function pointers. 2011-01-07 23:05:26 +00:00
jacksonmj
685ede0643 More electricity rewrite. 2011-01-07 22:20:47 +00:00
jacksonmj
6908f3dd0b Tidy up. 2011-01-07 20:26:09 +00:00
jacksonmj
b69712bbdb Some more function pointers 2011-01-07 20:03:58 +00:00
jacksonmj
cb02bdfe21 Rewrite electricity code. 2011-01-07 18:00:31 +00:00
jacksonmj
aebcc0ebe4 Use PROP_CONDUCTS more. 2011-01-07 16:56:15 +00:00
jacksonmj
f3ded5f08c More function pointers. 2011-01-07 16:18:22 +00:00
jacksonmj
b661418d7e Replace pstates and some pressure ifs with array. 2011-01-07 14:47:10 +00:00
jacksonmj
1ab4d328a6 Start function pointers 2011-01-07 14:14:35 +00:00
jacksonmj
ed8c0031f4 Astyle. 2011-01-06 22:26:31 +00:00
Simon
2a3af54e92 Kiosk mode, full screen. requested by dante3rd 2011-01-06 08:55:10 +00:00
Cracker64
45078b5933 update, and another small ARAY feature, goes through SWCH. 2011-01-05 18:34:39 -05:00
Simon
7e3530a705 Few changes and fixes from cracker for ptypes 2011-01-05 20:41:20 +00:00
Simon
5d7c0194f1 INST enabled. INST modifier for ARAY - makes it not stop 2011-01-05 17:42:39 +00:00
Cracker64
fd2f0c905b better liquid movement in radial gravity, '=' resets pressure, cannot draw stickman on clone anymore, 'w' does not work when stickman2 is out, use shift-w. 2011-01-04 20:53:24 -05:00
Simon
0eb4089b08 Easier fancy effects, by Mur 2011-01-04 19:42:50 +00:00
Cracker64
5a37f32ca1 update with simon, and shift-v now does every other frame properly 2011-01-04 13:26:28 -05:00
Simon
3a2bc76643 Gravity control by Moach 2011-01-04 13:35:16 +00:00
Simon
6340ff2ac9 Merged new life types from cracker 2010-12-31 11:26:52 +00:00
Cracker64
6519fc167e 7 more gol types, fixed gol code to work with it. 2010-12-31 00:52:40 -05:00
Simon
c98099f8df Small changes to SING from cracker 2010-12-30 22:38:27 +00:00
Cracker64
2b253cf73c simon update and small SING change to make it betterer. 2010-12-30 16:55:02 -05:00
Simon
b92e6b391f Merge recent cracker changes 2010-12-30 09:55:43 +00:00
Cracker64
2212d04fb0 added SING, QRTZ and PQRT, see mod thread on forum. 2010-12-30 00:46:35 -05:00
Simon
3715925dd9 Merge branch 'master' of git://github.com/cracker64/The-Powder-Toy 2010-12-29 21:15:40 +00:00
Cracker64
25b95e211e new display, Life, shows life in a grayscale gradient, will ONLY show up in debug mode, on shift-1, fix filt floodfill, portal has bigger storage, other fixes. 2010-12-29 09:44:12 -05:00
Simon
713034ed61 Cracker Merge 2010-12-27 23:21:26 +00:00
Cracker64
761ea03882 added a basic coldflame explosive, ignites from CFLM or something cold. 2010-12-27 17:29:05 -05:00
Cracker64
0dbb53606b forgot PROP thing in powder.h, adjustments to heat glow and BOMB 2010-12-24 15:59:27 -05:00
Cracker64
65a60b3812 updated with BOMB 2010-12-24 15:00:59 -05:00
Simon
b86e6d96d0 Forgot to change particle states table 2010-12-24 15:38:14 +00:00
Simon
8f22758990 More awesome 2010-12-24 15:04:48 +00:00
Simon
1983512b3d Hot metal glow for more views 2010-12-24 13:51:09 +00:00
Simon
db364c549f You know, stuff. 2010-12-24 12:51:39 +00:00
Felix Wallin
2e57ba16f3 small fix for indention 2010-12-23 21:53:18 +01:00
Simon
bd9b01c3e2 Cracker Merge 2010-12-22 18:17:06 +00:00
Cracker64
321c570581 forgot to delete a note. 2010-12-22 01:31:22 -05:00
Cracker64
e5ebf1fb41 updated with latest, and FWRK crash fix, INST looks for INSL, wifi lines only show in debug mode. 2010-12-22 00:13:01 -05:00
Simon
5026bfa105 Revert "nice"
This reverts commit 14b4dfef87.
2010-12-20 18:11:11 +00:00
Felix Wallin
14b4dfef87 nice 2010-12-20 14:34:55 +01:00
Simon
1e4e7ea475 Invis can now be used to turn photons into neutrons 2010-12-19 19:07:23 +00:00
Simon
314e937ec8 Allow building with Visual Studio, at the loss of some functionality, also, updates to version number 2010-12-19 18:39:39 +00:00
Simon
e380237cbc Fix merge 2010-12-19 17:29:30 +00:00
Simon
92d22ac590 Nibble is a noob, also fix for persistent mode bug 2010-12-19 14:20:38 +00:00
Cracker64
2dad930818 added spawnpoints for stickmen, so they respawn. 2010-12-18 23:22:10 -05:00
Cracker64
039a4e2f31 Added second stickman for Lulz, it works great though, controlled by wasd. 's' was moved to ctrl-s and d is ctrl-d 2010-12-18 02:14:53 -05:00
Cracker64
809676a1dc added invertion to rotate, ctrl-shift-r, will invert x-axis. NEUT+ACID=ISOZ,GLOW+WATR=DEUT. added ` to toggle replace mode for people without insert keys 2010-12-17 01:35:27 -05:00
Cracker64
327ccb7bba a rotate tool! ctrl-r, then select the area, it will rotate counterclockwise, no properties are saved right now, it deletes and recreates. 2010-12-16 00:17:08 -05:00
Cracker64
5b2c689394 another swch fix, desl fire fix, shift-g will make grid go down, BIZR glows from velocity in FIRE,ect. METL/BRMT/BMTL change color when heated in heat gradient view. other small changes. 2010-12-14 17:23:27 -05:00
Felix Wallin
9c805f8643 there we go 2010-12-14 21:59:37 +01:00
Felix Wallin
fae101b1df we obviously need the particle index 2010-12-14 21:43:28 +01:00
Felix Wallin
4220fd8e35 The only thing it broke was compilation, fixed 2010-12-14 17:10:34 +01:00
Felix Wallin
455b27e3ce started on function pointers. Pushing to master because of otherwise impossible merges 2010-12-14 17:08:37 +01:00
FacialTurd
d20ba9f342 2010-12-13 04:11:38 -08:00
Cracker64
23f828135a updated with icons, and some more fixes. 2010-12-12 20:13:05 -05:00
Simon
dc25b3a811 Added glyphs for GOL, Heat gradient view and alternate pressure view 2010-12-12 13:47:30 +00:00
Simon
f1df4cae6a Merge latest cracker changes 2010-12-12 12:24:38 +00:00
Cracker64
af72702434 few thingies before i go 2010-12-12 01:46:40 -05:00
Cracker64
dc318fa14a more small changes/fixes. Generation count for GoL in debug, resets with 'r'. 2010-12-11 23:31:08 -05:00
Simon
be7acfd99b Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2010-12-11 03:46:34 +00:00
Simon
d8cd71f912 cracker merge 2010-12-11 03:46:21 +00:00
Cracker64
95c4e49f53 Lots of small changes/fixes mentioned in my mod post. 2010-12-10 14:05:06 -05:00
Cracker64
d017764fbe Photons no longer give heat to insulation type things. is basically the same as official besides a few bug fixes. 2010-12-08 14:53:53 -05:00
Cracker64
cbf41389a2 Bugfix for wifi, would cause a double spark if timed just right. updated to 2010-12-08 12:14:02 -05:00
Felix Wallin
c9f852085b Revert "function pointers, not doing anything yet"
This reverts commit 048a0672c7.
2010-12-08 17:34:18 +01:00
Felix Wallin
1b5f6b2dc0 Merge branches 'master' and 'function_pointers' 2010-12-08 17:14:12 +01:00
Felix Wallin
81d6cae1f2 test 2010-12-08 17:12:54 +01:00
Felix Wallin
048a0672c7 function pointers, not doing anything yet 2010-12-08 17:08:15 +01:00
Simon
96da331601 Improved pause flag, will now only pause, not unpause the game 2010-12-08 01:15:00 +00:00
Simon
4355b8b2d5 Fix for prerender save and fan drawing 2010-12-07 21:48:03 +00:00
Simon
58b85e19b4 Change version number 2010-12-07 17:47:48 +00:00
Simon
46940a8e4f Added saving of pause state and particle tmp value, removed INST from the menu 2010-12-07 16:26:53 +00:00
Cracker64
fff7ecedf8 removed battery from INST wire, some other small fixes 2010-12-06 18:54:09 -05:00
Simon
ae828393ce Fix open_ui bug where client will crash with a null pointer exception if the prerender_save function returns null due to newer save or other 2010-12-06 19:45:01 +00:00
Simon
122babe356 Added ARAY, a instant ray that can create holograms and transfer electrical energy 2010-12-06 19:32:33 +00:00
Cracker64
efb7c6bc9c updated with simon's changes 2010-12-05 21:56:46 -05:00
Simon
40ab51d79f Cracker64 merge 2010-12-05 15:49:48 +00:00
Cracker64
2cf25c8a6a FILT, a photon color filter, not really a filter right now, but it changes the color. Other small changes 2010-12-04 23:29:41 -05:00
Simon
b54c0b6934 Particle life now saved as 16bit integer, increases limit and fixes saving of wire and other elements. Version 44 to reflect save format change 2010-12-04 22:17:01 +00:00
Cracker64
d56684312d WIFI, a wireless SPRK transmitter, has 25 'channels' controlled by temp. starting at 0C, every 100 degrees is a different channel, they are colored as well. Heat-gradient display, colors of elements is slightly changed based on temp. maybe some other fixes. 2010-12-04 12:24:54 -05:00
Cracker64
01a2dcaf41 lots and lots of small changes/fixes. fixed typo for water movement, made parts_avg kinda better? electronics still work. 2010-12-03 00:13:00 -05:00
Cracker64
656b5ff496 SHLD, element that grows from spark and will regrow if damaged. Lots of other small changes and fixes. replace mode ONLY draws on the element to be replaced. 2010-12-01 15:27:13 -05:00