start supporting LÖVE v12

[?]
Oct 10, 2023, 3:00 AM
6VJTQKW7YJ7E3WRNSTFYULUDHHTYAE4JELX4J55LO75X4FDM3JZAC

Dependencies

  • [2] TSK2OXU2 .
  • [3] IM6GSGVZ fix some arg names
  • [4] 4SR3Z4Y3 document the version of LÖVE I've been using
  • [5] GFXWHTE6 mouse wheel support
  • [6] 66X36NZN a little more prose describing manual_tests
  • [7] TVCPXAAU rename
  • [8] KKMFQDR4 editing source code from within the app
  • [9] R5QXEHUI somebody stop me
  • [10] BULPIBEG beginnings of a module for the text editor
  • [11] LXTTOB33 extract a couple of files
  • [12] BJ5X5O4A let's prevent the text cursor from ever getting on a drawing
  • [13] BLWAYPKV extract a module
  • [14] 4YDBYBA4 clean up memory leak experiments
  • [15] OGUV4HSA remove some memory leaks from rendered fragments
  • [16] OTIBCAUJ love2d scaffold
  • [17] CE4LZV4T drop last couple of manual tests
  • [18] XX7G2FFJ intermingle freehand line drawings with text
  • [19] 6LJZN727 handle chords
  • [20] FS2ITYYH record a known issue
  • [21] D2GCFTTT clean up repl functionality
  • [22] 3QNOKBFM beginnings of a test harness
  • [23] VHQCNMAR several more modules
  • [24] ZNLTRNNK highlight another global
  • [25] T4FRZSYL delete an ancient, unused file
  • [26] KMSL74GA support selections in the source editor
  • [27] RSZD5A7G forgot to add json.lua
  • [28] LNUHQOGH start passing in Editor_state explicitly
  • [29] SGMA5JLE save the list of tests in repo
  • [30] 2L5MEZV3 experiment: new edit namespace
  • [31] AVTNUQYR basic test-enabled framework
  • [32] TLOAPLBJ add a license
  • [33] UH4YWHW5 button framework is at the app level
  • [34] K2X6G75Z start writing some tests for drawings
  • [35] VXORMHME delete experimental REPL
  • [36] N2NUGNN4 include a brief reference enabling many useful apps
  • [37] ED4Z6ORC cleaner API for file-system access
  • [38] 73OCE2MC after much struggle, a brute-force undo
  • [39] PP2IIHL6 stop putting button state in a global
  • [*] WQOSZSUE warn on unused commandline args

Change contents

  • file deletion: conf.lua (----------)
    [6.2][4.78:110](),[4.110][4.29:29]()
    function love.conf(t)
    t.version = '11.4'
    end
  • edit in main.lua at line 71
    [2.115]
    [41.82]
    end
    end
    function App.version_check()
    -- available modes: run, error
    Error_message = nil
    Error_count = 0
    -- we'll reuse error mode on load for an initial version check
    local supported_versions = {'11.4', '12.0'} -- put the recommended version first
    local minor_version
    Major_version, minor_version = love.getVersion()
    Version = Major_version..'.'..minor_version
    if array.find(supported_versions, Version) == nil then
    Current_app = 'error'
    Error_message = ("This app doesn't support version %s; please use version %s. Press any key to try it with this version anyway."):format(Version, supported_versions[1])
    print(Error_message)
    -- continue initializing everything; hopefully we won't have errors during initialization
  • replacement in main.lua at line 156
    [6.1373][6.188322:188353]()
    if Current_app == 'run' then
    [6.1373]
    [6.188353]
    if Current_app == 'error' then
    love.graphics.setColor(0,0,1)
    love.graphics.rectangle('fill', 0,0, App.screen.width, App.screen.height)
    love.graphics.setColor(1,1,1)
    love.graphics.printf(Error_message, 40,40, 600)
    elseif Current_app == 'run' then
  • edit in main.lua at line 192
    [6.188858]
    [6.188858]
    if Current_app == 'error' then
    if chord == 'C-c' then
    love.system.setClipboardText(Error_message)
    end
    return
    end
  • edit in main.lua at line 233
    [6.1512]
    [6.189873]
    if Current_app == 'error' then return end
  • edit in main.lua at line 249
    [3.57]
    [6.190224]
    if Current_app == 'error' then return end
  • edit in main.lua at line 265
    [6.190617]
    [6.190617]
    if Current_app == 'error' then return end
  • edit in main.lua at line 277
    [6.190979]
    [6.190979]
    if Current_app == 'error' then return end
  • edit in main.lua at line 288
    [5.925]
    [5.925]
    if Current_app == 'error' then return end
  • edit in main.lua at line 299
    [6.191282]
    [6.191282]
    if Current_app == 'error' then return end
  • edit in app.lua at line 11
    [6.54]
    [6.209765]
    App.version_check()