Commit graph

48 commits

Author SHA1 Message Date
4793bc1b8f Pick rule matches based on exact position, but use an origin offset for rotated rules to fix directional bias for rotated rules.
This also avoids the bias toward larger rules caused by checking for overlapping matches at the chosen position.
2024-05-30 20:52:39 +02:00
f556c80f29 add wiper example 2024-05-21 22:33:36 +02:00
74944d8e7d add fire example 2024-05-17 18:52:12 +02:00
111a306182 add ants example 2024-05-17 18:24:49 +02:00
fd2bf46b19 fix rule rotation for copy-cells 2024-05-17 18:06:12 +02:00
da69daa219 basic performance benchmarking 2024-05-16 23:50:01 +02:00
219c6521b3 fix rule rotation 2024-05-16 23:27:37 +02:00
438efffaf3 spread each cycles rule activation attempts over space instead of only considering cached matches 2024-05-16 22:55:13 +02:00
3cadbb0984 fix outdated cache after removing rules 2024-05-08 23:19:53 +02:00
0611be2837 implement rule match caching 2024-05-08 23:10:54 +02:00
d1d033565e store cell data in engine instead of editor 2024-05-07 18:41:10 +02:00
c440833755 add example rulesets 2024-05-07 13:37:54 +02:00
68188357da fix crash trying to render unknown cells, unlimit speed slider 2024-05-07 13:28:13 +02:00
596498248e show rule variant count 2024-05-07 09:27:43 +02:00
a2382a8676 highlight line of hovered copy rule cells 2024-05-06 22:56:26 +02:00
99e5388a46 fix crash when copy rule points to outside the rule bounds after a resize 2024-05-06 11:23:14 +02:00
17e8291281 fix crash on empty group in rule output 2024-05-06 09:54:56 +02:00
4d61184edd add rule fail rate property 2024-05-04 16:56:06 +02:00
ef14cef49b add names to groups 2024-05-04 14:59:13 +02:00
5af7cc0cb1 fix backwards compatible rule fields 2024-05-04 12:53:34 +02:00
07cbd88618 fix 'copy' rule cells not copying the correct cell on rotated or flipped rule variants 2024-05-04 12:49:50 +02:00
c345d671dd collapsable rule editors 2024-05-04 12:32:11 +02:00
5c282a28ed shift click to pick cell from world 2024-05-04 11:41:35 +02:00
3d9fd8d311 add rule copy button 2024-05-04 11:22:18 +02:00
e2869af4a7 fix default new rule 2024-05-03 23:56:39 +02:00
33f706928c move more ui to the scroll area, clippy fixes 2024-05-03 23:25:56 +02:00
4189c5188e allow groups to contain the void, increase search space to find matches that overlap the negative borders 2024-05-03 23:07:37 +02:00
ac9685b2d5 save & load groups, add copy rule cells 2024-05-03 22:27:56 +02:00
f23c06f5d7 cell groups in rules 2024-05-03 22:06:03 +02:00
738e22bd4a save & load rulesets 2024-05-03 16:51:20 +02:00
37f8edb5c1 add fill button 2024-05-03 15:06:16 +02:00
69b8ec8bb6 make grid optional 2024-05-03 14:51:12 +02:00
bb8b272ed4 rule rotation 2024-05-03 14:38:12 +02:00
84e64fe719 implement rule flipping 2024-05-03 14:32:19 +02:00
970eb402a2 flags for flipping (unimplemented) 2024-05-03 13:12:54 +02:00
e066025836 rule shrinking 2024-05-03 11:48:22 +02:00
6d86f6fdef toggle individual rules 2024-05-01 23:23:44 +02:00
c435d96f33 allow removing rules 2024-05-01 23:15:44 +02:00
79cd0a8fe4 add new cell types 2024-05-01 22:43:03 +02:00
611d53c453 expand and add rules 2024-05-01 22:08:45 +02:00
aa8dae639a painting 2024-05-01 17:23:04 +02:00
f71502f32a editor stuff 2024-05-01 16:42:43 +02:00
365035a64d basic rule editing 2024-05-01 00:05:20 +02:00
aa4cec6dbf refactor 2024-04-30 23:58:57 +02:00
bff268515d egui 2024-04-30 23:24:45 +02:00
a808e7996b pink sand! 2024-04-29 22:54:52 +02:00
4e850668cd sand!! 2024-04-29 22:44:03 +02:00
b62f3a016d init 2024-04-29 21:40:22 +02:00