new fork: a template for carousel-based apps
Dependencies
- [2]
UCA3SCAJmake the driver seem less intimidating - [3]
ZSDFOBNDMerge text0 - [4]
QKKVI7UOcredits - [5]
Q4WRCUWDscreenshot - [6]
DYPL2TRLresolve conflicts - [7]
ER7WGGU2update title - [8]
Q4CJ4WWUswitch to a single global output editor - [9]
3EQAFUFNresolve conflicts - [10]
MD3W5IRAnew fork: rip out drawing support - [11]
WXWJJ7JUclarify driver description - [12]
GVX7YSQYinitial script after splitting up text-zoom - [13]
4YGNCUZSMerge lines.love - [14]
ZM7NOBRMnew fork: carousel shell - [15]
M7UODV5HMerge text0 - [16]
D4FEFHQCflesh out Readme - [17]
UOGZZY3Llink to reference from Readme - [18]
U6JNZOH4Merge text0 - [19]
JZKEIKO6freudian typo - [20]
PNBKVYZ4more cogent onboarding instructions - [21]
ZTMRQZSWReadme - [22]
L5SYYGSBnew mirror; also correct a typo - [23]
F3NPUCCMupdate stale information - [24]
WGM4HHT4oh, switch the name - [25]
JX3PYEISresolve conflicts - [26]
LRG2TNA7screens now run - [27]
JM2PAF73remove warning about persistence from Readme - [28]
OJ2CLK4QMerge text0 - [29]
3PFDYZWTresolve conflicts - [30]
WHFOJBAEMerge text0 - [31]
4VUVVW6Jupdate Readme and settle on a project name - [32]
ASP5RVZAMerge lines.love - [33]
CZRMAMSBclearer discription of how to run lines.love - [34]
3DRVHB7Crun script on startup; new button to switch to source editor - [35]
XQZO4DUYMerge text0 - [36]
RJPNFXVQnew fork: a personal dashboard for mobile devices - [37]
25V2GA6Jtaking stock - [38]
HCJNNXOUresolve conflicts - [39]
2NQZJUPTstart saving edits right in the source dir - [40]
2DVVKKVAflesh out Readme - [41]
EZHO4TSWnew file-system format for freewheeling apps - [42]
EQSFHYF3slightly standardize on app-specific stuff - [43]
ADBLR7B4new mirror - [44]
VVGWHJBZfix app identity so successive versions share data - [45]
ZT6T2H7Nupdate known issues - [46]
DEFJUKUVadjust font sizes in response to zoom changes - [47]
OIKT7FMEMerge lines.love - [48]
5OVKHVY6nice way to make on.* handlers more discoverable - [49]
FS2ITYYHrecord a known issue - [50]
BPYWIU62new fork: template for live programming with editor widgets - [51]
KQWIMWJ5deemphasize the terminal in Readme - [52]
DF7NOKANcorrect a characterization - [53]
NCW64JJDexperiment: convert to Pijul - [54]
YJ6ASFBGyet another fork trying to integrate my live framework with everything else - [55]
TC47I2JRMerge lines.love - [*]
OTIBCAUJlove2d scaffold
Change contents
- file deletion: widgets
widgets = {}-- button to add a text boxtable.insert(widgets, {draw = function()color(0, 0.6,0.6)rect('line', Safe_width-115, 5, 30,30, 5)line(Safe_width-110, 20, Safe_width-90, 20)line(Safe_width-100, 10, Safe_width-100, 30)end,ispress = function(x2,y2)return x2 >= Safe_width-120 and x2 <= Safe_width-85 and y2 <= 40end,press = add_editor,})-- button to stop the app and return to the source editortable.insert(widgets, {draw = function()color(0, 0.6,0.6)g.setFont(Font)local s = App.width('exit')rect('line', Safe_width-s-15, 75, s+10,30, 5)g.print('exit', Safe_width-s-10, 80)end,ispress = function(x2,y2)g.setFont(Font)local s = App.width('exit')return x2 >= Safe_width-s-15 and y2 >= 75 and y2 <= 105end,press = stop_app,}) - edit in screens/main at line 1
-- top-level handlers for dash's event loop - edit in screens/main at line 7
ui_state = {} -- for buttons; recreated each framewidgets = {} -- more versatile UI elements - replacement in screens/main at line 11
color(0, 0.6,0.6)line(Safe_width-120, 0, Safe_width-120, 40)g.setFont(Font)local s = App.width('exit')line(Safe_width-120, 40, Safe_width-s-20, 40)line(Safe_width-s-20, 40, Safe_width-s-20, 110)line(Safe_width-s-20, 110, Safe_width+100, 110)ui_state.button_handlers = {} - edit in screens/main at line 26
if mouse_press_consumed_by_any_button(ui_state, x,y, b) thenskip_touch = truereturnend - replacement in screens/main at line 80
function car.mouse_release(x,y, b)function car.mouse_release(x,y, b) - edit in screens/hud at line 2
local stop_app_label = 'edit'button(ui_state, stop_app_label, {x=5, y=Safe_height-10-Line_height-10,w=5+App.width(stop_app_label)+5, h=5+Line_height+5,bg=Menu_background,icon = function(p)App.color(Normal_color)rect('line', p.x,p.y, p.w,p.h)g.print(stop_app_label, p.x+5, p.y+5)end,onpress1 = stop_app,}) - replacement in screens/hud at line 14
for _,touch in ipairs(touches()) doif curr[touch] thencircle('fill', curr[touch].x, curr[touch].y, 10)endfor _,touch_id in ipairs(touches()) dolocal x,y = touch(touch_id)circle('fill', x,y, 10) - replacement in main.lua at line 58
love.window.setTitle('Dash')-- setTitle moved to conf.lua - replacement in conf.lua at line 2
t.identity = 'dash2't.identity = 'TODO't.window.title = 'TODO' - replacement in README.md at line 1
# Lua Carousel# A template repo for developing cross-platform apps on mobile devices - replacement in README.md at line 5
A lightweight environment for writing small, throwaway[Lua](https://www.lua.org) and [LÖVE](https://love2d.org) programs. Tested onWindows, Mac, Linux, iOS and Android. The environment itself can be modifiedas it runs. In early release; please report issues, particularly withusability or accessibility.Copy this repo to get a leg up creating tiny, low-maintenance, cross-platformapps that you can make changes to right on a phone or tablet.It comes bundled with a few optional goodies:* Support for tap-to-pan and pinch-to-zoom gestures over an infinite 2Dsurface for arbitrary graphics and UI.* A tiny widget library for quickly creating arbitrary UI elements.[Here's an example of the kinds of things you can add to the global variable `widgets`.](https://akkartik.itch.io/carousel/devlog/665231/a-sprite-editor-in-100-lines-of-code)* A typographic scale for scaling the font size of text in visually pleasingincrements.Tap the 'edit' button and then poke around the 'load' menu to learn more. - edit in README.md at line 29
You can edit the app and UI right on your device. - replacement in README.md at line 32[10.223]→[2.19:96](∅→∅),[2.96]→[10.95:168](∅→∅),[10.813746]→[10.95:168](∅→∅),[10.168]→[10.813821:813848](∅→∅),[10.813821]→[10.813821:813848](∅→∅)
To modify it live without restarting the app each time, download [the driverapp](https://git.sr.ht/~akkartik/driver.love). Here's an example sessionusing a fork of this repo:You can also modify the editing environment itself, or repurpose it for adifferent app entirely, live as it runs. This requires running it on acomputer. Download [the driver app](https://git.sr.ht/~akkartik/driver.love).Here's an example session showing the driver (left window) editing a differentapp (right window containing yellow text): - edit in README.md at line 39
(Only on non-mobile platforms for now.) - edit in README.md at line 77
## ContributorsMany thanks to Mike Stein for code, feedback and suggestions. - replacement in README.md at line 82
Its immediate upstream is [the template repo for freewheeling apps](https://git.sr.ht/~akkartik/template-live-editor).Updates to it can be downloaded from the following mirrors:Its immediate upstream is [Lua Carousel, a lightweight cross-platformenvironment for creating little throwaway scripts on a computer orphone](https://git.sr.ht/~akkartik/carousel.love). Updates to it can bedownloaded from the following mirrors: - replacement in README.md at line 87[10.1529]→[10.675:719](∅→∅),[10.719]→[10.25:71](∅→∅),[10.71]→[9.27:80](∅→∅),[10.71]→[10.719:808](∅→∅),[9.80]→[10.719:808](∅→∅),[10.719]→[10.719:808](∅→∅)
* https://git.sr.ht/~akkartik/carousel.love* https://tildegit.org/akkartik/carousel.love* https://git.merveilles.town/akkartik/carousel.love* https://nest.pijul.com/akkartik/carousel.love (using the Pijul version control system)* https://git.sr.ht/~akkartik/template-carousel-mobile* https://tildegit.org/akkartik/template-carousel-mobile* https://git.merveilles.town/akkartik/template-carousel-mobile* https://nest.pijul.com/akkartik/template-carousel-mobile (using the Pijul version control system)