Kartik K. Agaram
3fb7854008
Merge text0
2023-10-28 01:05:35 -07:00
Kartik K. Agaram
6cc83d5691
Merge text.love
2023-10-28 01:02:30 -07:00
Kartik K. Agaram
aa9a0b0b15
use my name for a dir
2023-10-27 23:58:42 -07:00
Kartik K. Agaram
598b7dfa8c
Merge text0
2023-10-16 23:33:19 -07:00
Kartik K. Agaram
6f9f6b591a
Merge text.love
2023-10-16 23:31:13 -07:00
Kartik K. Agaram
4b3f359526
clearer API for drawing a button
...
Make it more obvious that the color passed in is just for the background.
The icon will do the rest.
r/g/b keys are more consistent with App.color().
2023-10-16 22:57:46 -07:00
Kartik K. Agaram
6e391d7875
start supporting LÖVE v12
...
To do this I need some support for multiple versions. And I need an
'error' mode to go with existing 'run' and 'source' modes
(`Current_app`). Most errors will automatically transition to 'source'
editor mode, but some errors aren't really actionable in the editor. For
those we'll use 'error' mode.
The app doesn't yet work with LÖVE v12. There are some unit tests failing
because of differences in font rendering.
2023-10-09 20:05:19 -07:00
Kartik K. Agaram
2bce6aad55
Merge text0
2023-09-09 09:53:37 -07:00
Kartik K. Agaram
b407a2e4b8
Merge text.love
2023-09-09 09:51:16 -07:00
Kartik K. Agaram
790b7f18db
yet another bugfix X-(
...
This time it really does work with pensieve.love
2023-09-09 09:27:56 -07:00
Kartik K. Agaram
0016d668bc
two bugfixes
...
Annoying dangers of testing in one fork and committing upstream
(where it isn't used yet).
2023-09-09 09:09:14 -07:00
Kartik K. Agaram
bcd7f6b598
new primitives for reading/writing files
...
These are like versions in nativefs, but only support absolute paths.
I want to be thoughtful about the precise location at each call-site.
It's a little ugly that app.lua now has a dependency on file.lua. Or
source_file.lua for the source editor.
2023-09-09 08:56:21 -07:00
Kartik K. Agaram
31266e23f5
reorder
2023-09-09 08:27:27 -07:00
Kartik K. Agaram
04540f2fd0
Merge text0
2023-09-08 14:58:54 -07:00
Kartik K. Agaram
dab97e2deb
Merge text.love
2023-09-08 14:56:57 -07:00
Kartik K. Agaram
87ea2af2da
a few more testable file-system operations
2023-09-08 14:03:40 -07:00
Kartik K. Agaram
ce0b127296
Merge text0
2023-09-04 14:17:04 -07:00
Kartik K. Agaram
4551f06837
Merge text.love
2023-09-04 14:10:09 -07:00
Kartik K. Agaram
adfe94b9fc
switch to source editor on error
...
If we're already in source editor we'll quit as before.
It's ugly that app.lua now knows about run.lua. But it's a start.
2023-09-04 13:07:53 -07:00
Kartik K. Agaram
99495355b4
stop using keyboard.isDown
...
It doesn't work on Android, and it's not much work to avoid.
2023-09-04 00:22:31 -07:00
Kartik K. Agaram
bdab8b1c7e
Merge text0
2023-08-30 22:58:21 -07:00
Kartik K. Agaram
8439944681
Merge text.love
2023-08-30 22:55:27 -07:00
Kartik K. Agaram
f82c0de502
cleaner API for file-system access
...
Thanks to physfs and nativefs.lua
nativefs still introduces some inconsistencies with love.filesystem with
relative paths:
* love.fs.read: reads from save dir if it exists, falls back to source dir if not
* nativefs.read: reads from save dir if it exists, falls back to source dir if not ✓
* love.fs.write: always writes to save dir
* nativefs.write: always writes to source dir (since no restrictions)
* love.fs.newFile followed by file:open('r'): reads from save dir if it exists, source dir if not
* nativefs.newFile followed by file:open('r'): always reads from working dir
* love.fs.newFile followed by file:open('w'): always writes to save dir
* nativefs.newFile followed by file:open('w'): always writes to working dir
So avoid using relative paths with App primitives.
2023-08-30 19:04:06 -07:00
Kartik K. Agaram
7e97a2a1e7
make a few names consistent with snake_case
2023-08-30 06:44:54 -07:00
Kartik K. Agaram
1759c089d7
Merge text0
2023-08-26 16:16:21 -07:00
Kartik K. Agaram
e7085e1e17
Merge text.love
2023-08-26 16:04:20 -07:00
Kartik K. Agaram
ca4ad8a9e5
reorganize app.lua and its comments
...
I was so sure my comments were clear when I wrote this a year ago. They
were shit. So, most probably, is the current iteration. Feedback
appreciated.
2023-08-26 15:15:42 -07:00
Kartik K. Agaram
d5f0abb637
Merge text0
2023-06-05 22:41:32 -07:00
Kartik K. Agaram
431f1dfec9
Merge text.love
2023-06-05 22:40:16 -07:00
Kartik K. Agaram
9e17337217
rename modifier_down to key_down
...
The old name was confusing, as its description showed.
2023-06-05 22:21:04 -07:00
Kartik K. Agaram
484602bd9e
Merge text.love
2023-06-04 15:25:46 -07:00
Kartik K. Agaram
3114176ebd
change how we handle clicks above top margin
2023-06-03 10:36:05 -07:00
Kartik K. Agaram
207fb4f6b8
Merge text0
2023-05-30 00:34:24 -07:00
Kartik K. Agaram
64df115061
Merge text.love
2023-05-30 00:34:12 -07:00
Kartik K. Agaram
e568378ecb
wait, fix tests
...
We had this problem because our test fakes were out of sync with reality.
And just in the source app.
2023-05-30 00:24:16 -07:00
Kartik K. Agaram
5561486cb6
Merge text0
2023-04-19 19:47:42 -07:00
Kartik K. Agaram
c95dc559c8
record support for multiple versions
2023-04-19 19:45:17 -07:00
Kartik K. Agaram
967950a59f
stop printing tests on terminal
2023-04-14 22:38:55 -07:00
Kartik K. Agaram
9b8e651dc7
Merge text0
2023-04-11 21:45:13 -07:00
Kartik K. Agaram
d27e22d6fe
Merge text.love
2023-04-11 21:44:21 -07:00
Kartik K. Agaram
658f96667b
primitives for writing tests
2023-04-11 21:33:33 -07:00
Kartik K. Agaram
3f90c92abb
Merge text0
...
This is the original reference for "freewheeling apps".
2023-04-09 21:03:12 -07:00
Kartik K. Agaram
04069f5fc8
Merge text.love
2023-04-09 19:17:23 -07:00
Kartik K. Agaram
d61ccafaa0
include a brief reference enabling many useful apps
2023-04-09 19:09:31 -07:00
Kartik K. Agaram
38c5014761
Merge text0
2023-04-02 16:50:08 -07:00
Kartik K. Agaram
247c09846c
Merge text.love
2023-04-02 16:46:31 -07:00
Kartik K. Agaram
29f1687f3c
avoid saving fragments in lines
...
Now we render lines one screen line at a time rather than one word at a
time.
I can't port the source side just yet; I need to fix hyperlinks first..
2023-04-01 21:44:27 -07:00
Kartik K. Agaram
d0d39797cf
show count of test failures
2023-04-01 20:40:47 -07:00
Kartik K. Agaram
f64f680f2b
no more Text allocations
...
Is it just my imagination, or does the app feel lighter and more fluffy?
2023-04-01 18:12:29 -07:00
Kartik K. Agaram
876d6298b4
App.width can no longer take a Text
...
In the process I discovered the horrible fact that Text.x allocates a new Text.
And it gets called (just once, thank goodness) on every single frame.
2023-04-01 18:12:29 -07:00