Commit Graph

1906 Commits

Author SHA1 Message Date
Kartik K. Agaram 7b87a036ad Merge template-carousel-mobile 2024-03-23 09:12:46 -07:00
Kartik K. Agaram 665e80f780 update list of forks 2024-03-23 09:11:11 -07:00
Kartik K. Agaram 5ea87b8599 stop using nativefs for file location
nativefs doesn't work on iOS since LÖVE v11.5, so I should stop using it
at least on forks for mobile devices.

I still use it in a couple of cases:
* on a file DELETE request from the driver
* when trying to write modifications from the driver to the original
  location
2024-03-23 09:01:41 -07:00
Kartik K. Agaram b217c4f13f Merge template-carousel-mobile 2024-03-22 18:39:21 -07:00
Kartik K. Agaram 29b8fc4142 Merge carousel.love 2024-03-22 18:36:55 -07:00
Kartik K. Agaram e848a890ef shield script from touch events when showing editor 2024-03-22 17:29:29 -07:00
Kartik K. Agaram fac855bcd3 actually clear solver's crate X-( 2024-03-20 15:17:15 -07:00
Kartik K. Agaram 27f73a1afe clear solver's crate on any simple move
On my phone the tiles are really tiny, and fat-fingering seems to be at
least 50% probable if not more. And if I accidentally tap on a crate I
can't even try to tap on a clear space until I clear the location of the
crate. This change lets me more easily use at least the path-finding
solver for moving just the player around.
2024-03-20 15:06:52 -07:00
Kartik K. Agaram 8aed8aa947 scratch now needs a different escape hatch 2024-03-17 15:37:40 -07:00
Kartik K. Agaram 6e063592b0 Merge template-carousel-mobile 2024-03-17 15:31:29 -07:00
Kartik K. Agaram 6c65b5dcdb unstash a stashed file
Current design choices:
* Unstashing doesn't delete the file. You have to bump down to the
  scratch screen for that.
* Can't unstash if the file already has local modifications. Decide
  whether to revert or stash them.
2024-03-17 15:22:53 -07:00
Kartik K. Agaram ab11782662 add numeric suffix to stashed files 2024-03-17 15:02:45 -07:00
Kartik K. Agaram bd82e5ecbb load stashed files
I'm scaling down my ambitions. Stashed files can't have notes attached.
I think that encourages a higher scale of development on such apps than
is currently justified, given you're liable to lose all your work if you
upgrade LÖVE.

New plan: just name stashed files with a numeric suffix.

The remaining open question is now around unstash. Should unstash copy
or move?
2024-03-17 14:38:42 -07:00
Kartik K. Agaram fc75f62d17 start implementing stashed files
We can create them and see them on the file dialogs, but not yet load
them back.

I want stashed files to remember the original filename. I think that
implies the ability to add a note to them. But I don't yet know how to
represent the note on disk.

And this creates cascading questions, like should editing a stash file
continue to modify it or create a new version? How to create a new
version? Should unstash copy or move?
2024-03-17 13:54:20 -07:00
Kartik K. Agaram ec7f0bbe6e indicate local modifications in load/save dialog 2024-03-17 12:37:21 -07:00
Kartik K. Agaram 8508638582 new menu option: revert local changes 2024-03-17 12:12:31 -07:00
Kartik K. Agaram 9246567511 indicate local modifications in editor title bar 2024-03-17 12:01:49 -07:00
Kartik K. Agaram bd96e36304 Merge carousel.love 2024-03-17 11:58:28 -07:00
Kartik K. Agaram a7fb944976 use an available constant 2024-03-17 11:56:42 -07:00
Kartik K. Agaram febf8ae351 Merge template-carousel-mobile 2024-03-17 11:52:14 -07:00
Kartik K. Agaram 95f34d5b68 Merge carousel.love 2024-03-17 11:49:27 -07:00
Kartik K. Agaram 1f42711dde indicate unsaved changes 2024-03-17 11:01:25 -07:00
Kartik K. Agaram 6c596c0bcd hoist next_save to all saves
Now we can rely on its state even when we don't rely on autosave.
2024-03-17 10:54:26 -07:00
Kartik K. Agaram fff4dc198c explicitly state stance on autosave 2024-03-17 10:49:45 -07:00
Kartik K. Agaram 4b65a2cab1 Merge template-carousel-mobile 2024-03-17 08:12:17 -07:00
Kartik K. Agaram 9fa94fd169 Merge carousel.love 2024-03-17 08:10:12 -07:00
Kartik K. Agaram ff27ad6ad4 swap copy and paste menu buttons
Scenario: every once in a while I try to paste on my phone (in the
overflow menu) and fat finger and tap 'clear' next to it instead.

I could try adding space between the buttons in the overflow menu, but
that creates cascading issues of how it should look. Swapping these two
buttons is a hacky way to ensure that buttons that mutate the buffer
are never side by side.
2024-03-17 08:04:13 -07:00
Kartik K. Agaram 17cb97c14b add a light theme 2024-03-16 17:54:03 -07:00
Kartik K. Agaram 1c65a98282 use -- comments everywhere that I support properly 2024-03-16 17:19:54 -07:00
Kartik K. Agaram b2545bc42d rename a variable to encourage light mode 2024-03-16 17:17:36 -07:00
Kartik K. Agaram 051a7c3a8c Merge template-carousel-mobile 2024-03-16 09:34:27 -07:00
Kartik K. Agaram e0f0922c8f Merge carousel.love 2024-03-16 09:31:31 -07:00
Kartik K. Agaram c413f281cf add to list of forks 2024-03-16 09:30:18 -07:00
Kartik K. Agaram 907c39dcfa Merge template-carousel-mobile 2024-03-15 23:48:51 -07:00
Kartik K. Agaram 180e582e58 standardize some copy between forks 2024-03-15 23:44:37 -07:00
Kartik K. Agaram 9e4119acd8 Merge template-carousel-mobile 2024-03-15 23:38:52 -07:00
Kartik K. Agaram 9dfd8fbf3e document gotchas on mobile 2024-03-15 23:03:50 -07:00
Kartik K. Agaram cd278f9a85 new fork: a template for carousel-based apps 2024-03-15 22:52:27 -07:00
Kartik K. Agaram 9318ecf3c7 Merge dash 2024-03-14 10:27:54 -07:00
Kartik K. Agaram fe06035b9d Merge carousel.love 2024-03-14 10:27:27 -07:00
Kartik K. Agaram bfc1f80b87 no, go back to drawing the menu after the editor
I originally made this change to keep the next/prev buttons from
overwriting the search bar. But now the dropdown menu up top gets
overwritten by the scrollbars! You can only see it if the window width
is just right, as happens on my phone.

I could fix this perfectly, but at the cost of some code complexity.
Just take that slight visual ugliness for now, it doesn't seem to impede
anything.
2024-03-14 10:19:27 -07:00
Kartik K. Agaram 2651d60631 clean up debug prints 2024-03-14 10:16:15 -07:00
Kartik K. Agaram 7a4b277920 some facilities for local edits 2024-03-14 10:09:18 -07:00
Kartik K. Agaram 3394f0ffd7 bugfix: add moves from edge buttons to undo 2024-03-14 09:56:26 -07:00
Kartik K. Agaram 15253ce96b reorg files again to stay within 150 lines 2024-03-14 06:47:06 -07:00
Kartik K. Agaram 9eb6c2a3d7 . 2024-03-14 06:32:47 -07:00
Kartik K. Agaram e303c8588a clean up debug prints 2024-03-13 19:58:08 -07:00
Kartik K. Agaram 047762f17e remove one final use of crate_id; it's just a debugging aid 2024-03-13 19:47:19 -07:00
Kartik K. Agaram 99f0532d80 bugfix: move crate to player square
Even with this issue, I was able to finish level 64 very smoothly!
2024-03-13 19:36:18 -07:00
Kartik K. Agaram 8ca57fdc73 reorder clauses 2024-03-13 19:34:30 -07:00