Commit graph

130 commits

Author SHA1 Message Date
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
e88f945e8f make blueprint id a number instead of string 2024-10-11 23:38:35 +02:00
52288bdf6c fix blueprint id generation overwriting old blueprints if any were removed before 2024-10-11 21:22:56 +02:00
ce90a22ea0 basic scrolling in blueprint list 2024-10-10 21:56:36 +02:00
e42e14489d basic scrolling in level list 2024-10-10 21:36:03 +02:00
67557832fa add more levels and organise them into sections 2024-10-10 20:51:19 +02:00
172cfc9409 new icon for removing blueprints 2024-10-10 20:50:33 +02:00
d92c5a2c25 trim blueprints before saving 2024-10-10 17:21:18 +02:00
51f14014c5 trim board size to same margin as when expanding 2024-10-10 17:20:07 +02:00
dee52fa2fd grow board margins when placing near but inside the edge 2024-10-10 17:17:32 +02:00
bc4cd5ccc9 move pos to module 2024-10-10 17:09:41 +02:00
e22f568d2f implement blueprint creation, placement, saving and loading 2024-10-10 16:58:50 +02:00
3e4eb21e5e fix zooming causing sub-pixel offset, leading to rendering artifacts 2024-10-08 22:27:52 +02:00
4c4563c326 limit length of solution names 2024-10-08 22:24:41 +02:00
9f21c2b258 merge input and output tiles into one, where output is accomplished by marbles moving into the tile, like a bag 2024-10-08 22:04:12 +02:00
ae4e84bb90 reimplement marble behavior, making it more consistent in different directions. Triggers no longer activate from blocked marbles, and bounces take the same amount of time to travel through a chain of marbles in all directions 2024-10-08 21:51:31 +02:00
82d0ff0f37 properly center editor view and make zoom follow mouse position 2024-10-07 21:21:37 +02:00
355a5af15e refactor board resizing in negative directions, fixing broken execution in negative zones 2024-10-07 20:01:00 +02:00
1b74f9c996 trim exit button sizes 2024-10-07 18:56:33 +02:00
90d2e35ade fix non-ascii input causing crashes 2024-10-07 18:45:24 +02:00
040b3d3779 show solution id under name 2024-10-07 18:43:24 +02:00
1df323e7ac make selecting look nicer 2024-10-07 18:06:02 +02:00
4c976ab8e2 fix marbles not working in negative quadrants 2024-10-07 17:57:07 +02:00
70d7256e9d specify default input/output text/byte mode per level 2024-10-07 17:33:53 +02:00
e9b03b937b toggle to show input as bytes or text 2024-10-07 17:29:56 +02:00
34fb5f1dd2 close success popup when simulation is resumed 2024-10-07 17:05:40 +02:00
e661483cd5 make erasing continuous 2024-10-07 16:51:56 +02:00
49917d18a9 selection tool (selections are not useful yet) 2024-10-07 15:11:53 +02:00
92d540c29b show speed number and slider 2024-10-07 14:16:50 +02:00
038bf365c4 show step count 2024-10-07 13:16:26 +02:00
2c27d660b3 add step button 2024-10-07 12:57:51 +02:00
28a54a231b shrink board bounds when erasing 2024-10-07 12:44:15 +02:00
af66e68c5f add sandbox and lock input in other levels 2024-10-07 12:21:57 +02:00
bbe5ab0868 draw out of bounds as a darker colour 2024-10-07 12:08:30 +02:00
e43a422708 add separate sort order field to levels, so they can be reordered without changing the id and invalidating solutions 2024-10-07 12:04:55 +02:00
90bc93fa02 add play/pause/stop buttons 2024-10-07 01:16:52 +02:00
0ca1b4ba54 show more output cells when space is available 2024-10-07 00:20:52 +02:00
098dc9517d cleanup 2024-10-07 00:08:06 +02:00
b13d7aaf6d culled board rendering, much better performance with enormous boards 2024-10-07 00:01:02 +02:00
ae226026dd highlight completed levels green 2024-10-06 23:44:29 +02:00
9bee7c0e10 cleanup 2024-10-06 23:37:21 +02:00
db7a2b2418 auto resize board when drawing out of bounds 2024-10-06 23:30:59 +02:00
f9b8dba019 implement level completion, score storing and a dismissable 'level complete' popup 2024-10-06 22:24:37 +02:00
4aa5ed9eec move program input edit box 2024-10-06 20:40:00 +02:00
08801367ba re-style text input 2024-10-06 20:39:46 +02:00
f30e42cb31 display level descriptions, increased font sizes in level selection 2024-10-06 20:12:02 +02:00
4a51369b18 load program input when opening a solution 2024-10-06 20:02:43 +02:00
146618cdc3 show expected and actual output 2024-10-06 19:51:09 +02:00
0c2d241745 solution saving and loading 2024-10-06 16:29:45 +02:00
c4381ac1a1 enter and exit solution editor 2024-10-06 16:00:12 +02:00
44b7d63cde edit solution names 2024-10-06 13:12:05 +02:00
ed5084d0fd initial level selection gui 2024-10-06 12:39:36 +02:00
66c9b10264 sketch future file structure 2024-10-06 00:57:24 +02:00
d332bd30f3 move editor/game logic to module 2024-10-06 00:26:36 +02:00
0738e658db cleanup, fix crashes for some board-edge interactions 2024-10-05 23:16:24 +02:00
682dff48f9 draw marble direction 2024-10-05 20:48:05 +02:00
fc6c66ff31 add digit tool 2024-10-05 20:22:18 +02:00
465b5c40d1 group wires into one tool option 2024-10-05 19:45:25 +02:00
144a49e7c6 fix crash on digit tile 2024-10-05 19:05:58 +02:00
cf920d7a63 wrap texture hashmap in a struct for convenience 2024-10-05 17:53:23 +02:00
bf82d1455f add more tiles to gui, with controls to rotate between variants in a group 2024-10-05 17:46:45 +02:00
175d01cb03 fix sim input buffer 2024-10-05 15:57:20 +02:00
12a8544645 more tile buttons 2024-10-05 15:56:33 +02:00
a0f11b60fb basic tile drawing 2024-10-05 15:34:58 +02:00
1257388168 toolbar gui parts 2024-10-05 15:19:27 +02:00
5a23dde43a clean up tile rendering 2024-10-05 15:18:41 +02:00
86548a8b0d add digit sprites, remove comment tiles 2024-10-05 15:01:06 +02:00
636e9d04e2 cleanup 2024-10-04 22:36:09 +02:00
880993762e refactor, add simulation controls and board resetting 2024-10-04 22:10:00 +02:00
af31531869 gui experiments, add zooming 2024-10-04 21:20:53 +02:00
de09b785d0 add mirror and marble sprites 2024-10-04 10:00:07 +02:00
d4f9be5bff add sprites for most tiles 2024-10-04 01:21:52 +02:00
12bd19a7f3 make all powerable tiles also store a powered state that can be rendered 2024-10-03 23:34:16 +02:00
bf46a3e7c3 init 2024-10-03 22:59:49 +02:00