Commit Graph

69 Commits

Author SHA1 Message Date
Kartik K. Agaram df2e2eebd2 Merge template-live-editor 2024-02-04 17:47:05 -08:00
Kartik K. Agaram e3124760b1 Merge text0 2024-02-04 17:45:48 -08:00
Kartik K. Agaram 77e1b57446 Merge lines.love 2024-02-04 17:36:01 -08:00
Kartik K. Agaram 95be13f9db more realism in one more helper 2024-02-04 17:15:35 -08:00
Kartik K. Agaram 392c25a4ca Merge template-live-editor 2023-12-29 14:53:34 -08:00
Kartik K. Agaram dad4b59ef5 Merge text0 2023-12-29 14:50:28 -08:00
Kartik K. Agaram 6bd2086b51 Merge lines.love 2023-12-29 14:29:18 -08:00
Kartik K. Agaram bd2179d8aa bugfix
scenario: run without config file, quit, run again
expected: font size remains the same on second run

Before this commit it was increasing on each run.
It turns out the font height that you pass into love.graphics.newFont()
is not the result of font:getHeight().
2023-12-29 11:52:28 -08:00
Kartik K. Agaram 6601c9fad8 update doc 2023-12-29 11:26:24 -08:00
Kartik K. Agaram efd7f15a2f wire up touch handlers
I have no idea how events like on.touchpressed were working until now.
This still seems useful to add on.touch_press.
2023-12-26 09:22:19 -08:00
Kartik K. Agaram 4241270cf2 Merge template-live-editor 2023-12-26 08:30:27 -08:00
Kartik K. Agaram fbf99b040d wire up mouse move handler 2023-12-26 08:28:23 -08:00
Kartik K. Agaram 2fdd8a2adf Merge template-live-editor 2023-12-19 17:48:53 -08:00
Kartik K. Agaram 1095761585 Merge text0 2023-12-19 17:48:22 -08:00
Kartik K. Agaram 35bc6106aa Merge lines.love 2023-12-19 17:36:13 -08:00
Kartik K. Agaram 3520682605 document a missing editor API 2023-12-19 10:41:53 -08:00
Kartik K. Agaram 96b709876c Merge template-live-editor 2023-12-18 22:07:06 -08:00
Kartik K. Agaram 8dfa796f45 Merge text0 2023-12-18 22:06:07 -08:00
Kartik K. Agaram 4b6a8aaba6 Merge lines.love 2023-12-18 21:55:14 -08:00
Kartik K. Agaram 0c4730dffc make button backgrounds optional 2023-12-18 21:33:59 -08:00
Kartik K. Agaram 4652021ee4 Merge template-live-editor 2023-12-18 12:46:26 -08:00
Kartik K. Agaram 934a96e377 Merge text0 2023-12-18 12:44:03 -08:00
Kartik K. Agaram 02966ebb0b Merge lines.love 2023-12-18 12:38:12 -08:00
Kartik K. Agaram 445ce2d220 add a helper and update some docs 2023-12-18 11:59:08 -08:00
Kartik K. Agaram f179ae2ade Merge template-live-editor 2023-12-16 23:56:37 -08:00
Kartik K. Agaram cd3af059c0 Merge text0 2023-12-16 23:56:20 -08:00
Kartik K. Agaram aa4d80f157 Merge lines.love 2023-12-16 23:49:20 -08:00
Kartik K. Agaram c29be0ffce streamline button.lua 2023-12-16 23:41:10 -08:00
Kartik K. Agaram 7b527c843b Merge template-live-editor 2023-12-07 00:53:56 -08:00
Kartik K. Agaram e3c8121381 Merge text0 2023-12-07 00:51:29 -08:00
Kartik K. Agaram 972b198e5f Merge lines.love 2023-12-06 23:34:24 -08:00
Kartik K. Agaram 01a26cad5f redo version checks
This is still ugly, but hopefully easier to follow.
2023-12-06 20:14:24 -08:00
Kartik K. Agaram 534224f0cc new fork: for mobile devices 2023-11-12 22:33:24 -08:00
Kartik K. Agaram 83b8664619 fix a bad merge 2023-08-31 07:23:45 -07:00
Kartik K. Agaram bdab8b1c7e Merge text0 2023-08-30 22:58:21 -07:00
Kartik K. Agaram 1fc11feb28 Merge lines.love 2023-08-30 22:45:37 -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 e1fcd7c9c3 Merge lines.love 2023-08-26 15:47:27 -07:00
Kartik K. Agaram 9c38e505a5 correct various names in this and other pre-freewheeling forks 2023-08-26 13:15:32 -07:00
Kartik K. Agaram d76541dec3 fix method name in documentation 2023-08-26 13:04:39 -07:00
Kartik K. Agaram cc67c641dc Merge text0 2023-07-10 19:07:02 -07:00
Kartik K. Agaram 60f26a9a4f experiment: knob for readonly editor 2023-06-07 22:23:10 -07:00
Kartik K. Agaram 69ddc6fbb8 improve documentation for edit.draw 2023-06-07 22:10:30 -07:00
Kartik K. Agaram d931b0123d Merge text0 2023-06-07 22:09:10 -07:00
Kartik K. Agaram e8a5faaa4c Merge lines.love 2023-06-07 21:47:04 -07:00
Kartik K. Agaram 68eaba7d3d document some editor constants 2023-06-07 21:30:17 -07:00
Kartik K. Agaram bc85d77f13 Merge text0 2023-06-06 13:27:17 -07:00
Kartik K. Agaram cf1f860d20 Merge lines.love 2023-06-06 11:39:50 -07:00