Commit graph

123 commits

Author SHA1 Message Date
64fb7ca5ba add ui buttons for undo/redo 2024-12-17 15:40:27 +01:00
656f567242 select the last solution for each level 2024-12-16 22:50:51 +01:00
4427b4c2fc cleanup 2024-12-16 22:43:12 +01:00
ba1f404250 merge undo/redo logic for areas and single tiles 2024-12-16 22:24:27 +01:00
6970b18e22 add undo/redo for pasting/area operations 2024-12-16 22:16:58 +01:00
5b6113780a add undo/redo for single tile placement/erasing 2024-12-16 21:45:50 +01:00
6d8bfa03b0 stop cloning strings for every tile texture name lookup, general clippy fixes 2024-12-15 00:38:53 +01:00
1061ae6ce0 replace raylibs grid rendering and decrease grid contrast 2024-12-14 23:51:48 +01:00
f2c7764143 prevent marbles from bouncing during the same step that they are created 2024-12-14 23:42:17 +01:00
9792410f02 rename gate to comparator 2024-12-14 17:30:37 +01:00
0c98425463 make colours more consistent 2024-12-14 14:41:04 +01:00
6c5f19b84c darken output ui and world background 2024-12-14 00:25:09 +01:00
859e39875a move selection cancel button to the start and clear selection on esc 2024-12-12 23:19:43 +01:00
96f1a8367f redraw a bunch of sprites, tweak some ui colours 2024-12-12 23:06:06 +01:00
611a02c3b4 rename bag and trigger to silo and button 2024-12-12 22:56:01 +01:00
6dcb6c9dd7 draw selection bounds independently of zoom 2024-12-10 23:11:27 +01:00
9d54c17dcd zoom out further 2024-12-10 22:18:09 +01:00
092a7b70ff reduce magic number constants 2024-12-10 21:59:04 +01:00
59aeeff5b6 option to hide grid and marble direction/value 2024-12-10 21:50:46 +01:00
70c745117f show fail popup when output is wrong 2024-12-09 21:40:24 +01:00
14b87e6971 remove area stat from solutions, add more digits to cycles and tile count in end popup 2024-12-09 21:26:14 +01:00
e3f8087a6b move camera with RMB for mousepad compatibility, hold shift for faster panning 2024-12-09 20:58:35 +01:00
e9e763332f cleanup 2024-12-09 20:44:35 +01:00
e223a75c0e rewrite power propagation 2024-12-09 20:43:15 +01:00
e6f99d3776 set window title and package name 2024-12-09 12:42:50 +01:00
e5eb4d7cfc cleanup 2024-12-09 12:30:21 +01:00
635f0cf641 rewrite physics 2024-12-09 02:18:47 +01:00
0275e0c9b5 store tile vacancy in grid 2024-12-08 23:16:45 +01:00
353f5b74e5 cleanup 2024-12-08 22:52:38 +01:00
6a11320b27 add copy/paste and erase selecton buttons 2024-12-08 13:05:29 +01:00
dc9411cf9d update todo list, print real time taken when level is completed 2024-12-08 12:10:14 +01:00
78027aaaa0 fix update order dependent behavior of wires when flipped 2024-12-07 23:19:32 +01:00
42a355d387 use i16 for coordinates instead of isize, yielding better cache locality etc 2024-12-07 20:49:23 +01:00
28213da9f3 keep track of maximum average step time 2024-12-07 20:46:06 +01:00
1d001be403 measure step time over an entire frame 2024-12-07 20:37:33 +01:00
e6d8c1246f remove a vec allocation from simulation step 2024-12-07 20:22:52 +01:00
e0d0a297b9 reduce simulation steps in a frame if time exceeds 30fps, to avoid freezing the application 2024-12-07 19:52:28 +01:00
c1094980a6 increase max speed and step counter digits, show microseconds per step, massive simulation optimisation for large worlds (5-100x faster) 2024-12-07 16:19:59 +01:00
140a462add refactor, show red x when using eraser tool to distinguish from selection tool 2024-12-06 13:01:13 +01:00
36b1b8672b support using strings directly as level input and output data 2024-12-05 14:23:21 +01:00
79fe26414b show version in corner of level list 2024-10-13 13:34:08 +02:00
15f6cc70d4 save solutions when renamed, fix solution filenames 2024-10-13 13:01:54 +02:00
866a4c7127 theme overhaul 2024-10-13 12:45:58 +02:00
2720735a58 add button to clone solutions 2024-10-13 01:24:00 +02:00
1ce5291777 make math tiles read digits 2024-10-13 00:57:58 +02:00
44017f4ed5 scroll on tools to rotate between variants 2024-10-13 00:55:28 +02:00
ed956ffbe4 cleanup 2024-10-12 23:27:28 +02:00
27ff77f133 prettify marble direction and value rendering 2024-10-12 20:53:47 +02:00
23ac416c7e make sim handle speeds faster than framerate and change speed slider from 1-32 linear to 1-512 powers of two 2024-10-12 19:24:33 +02:00
dd63851606 fix tiles being unable to get powered from multiple directions at once 2024-10-12 19:00:02 +02:00