better line-wrap onboarding screens

akkartik
Nov 23, 2023, 4:53 PM
MRI3JAQI322CZPZPI6S3BZUB5QARAAXMLV7I27PGRTQXAKFQPBAAC

Dependencies

  • [2] MJ6KKFVT give example panes a name
  • [3] NV4WC3K4 new example: interactivity
  • [4] OOSUBWKX subject people to a tutorial
  • [5] X7MRZ5CL some copy changes
  • [6] J6O7HP7J new example: draw and update callbacks

Change contents

  • replacement in 0078-Example_panes at line 9
    [2.222][2.222:534]()
    "-- Some examples; feel free to delete them and they'll never return.",
    '-- First example: you can perform simple calculations.',
    "-- (scroll down if you're on a small screen..)",
    "-- Try hitting the 'run' button above.",
    "-- When you're done, tap on the right margin to go to the next example.",
    [2.222]
    [2.534]
    '-- Some examples; feel free to delete.',
    '-- First example: you can perform',
    '-- simple calculations.',
    '',
  • edit in 0078-Example_panes at line 14
    [2.544]
    [2.544]
    '',
    "-- Try hitting the 'run' button above.",
    "-- When you're done, tap on the",
    '-- right margin to go to the next',
    '-- example.',
  • replacement in 0078-Example_panes at line 24
    [2.575][2.575:714]()
    '-- print() calls show up in the area below.',
    "-- Hit 'run' and then scroll through the results.",
    'for i=1,20 do print(i) end',
    [2.575]
    [2.714]
    '-- print() calls show up in the area',
    "-- below. Hit 'run' and then try scrolling",
    '-- through the results.',
    'for i=1,20 do',
    ' print(i)',
    'end',
  • edit in 0078-Example_panes at line 37
    [2.832]
    [2.832]
    '-- The editor will disappear. Hit show',
    "-- to bring it back.",
  • edit in 0078-Example_panes at line 40
    [2.875][2.875:880](),[2.880][3.687:694](),[3.687][3.687:694](),[3.694][2.881:1019]()
    },
    },
    {
    name='color',
    lines={
    '-- some color',
    'love.graphics.setColor(1,0,0)',
    "love.graphics.rectangle('fill', 100,100, 200,300)",
  • replacement in 0078-Example_panes at line 45
    [2.1053][2.1053:1150]()
    '-- A checkerboard',
    '-- Notice Safe_width and Safe_height for the bounds of the screen.',
    [2.1053]
    [2.1150]
    '-- A larger drawing: A checkerboard',
    '-- Notice Safe_width and Safe_height',
    '-- for the bounds of the screen.',
  • replacement in 0078-Example_panes at line 64
    [2.1499][2.1499:1879]()
    '-- For animations, you can define various functions that will get called for you.',
    '-- LÖVE supports functions of the form love.*,',
    '-- for example, love.draw, love.update, etc.',
    "-- You can't define those directly because Carousel Shell needs to define them for its UI, but you can define your own under car.*,",
    '-- for example, car.draw, car.update, etc.',
    [2.1499]
    [2.1879]
    '-- For animations, you can define various',
    '-- functions that will get called for you.',
    '-- LÖVE looks for functions called',
    '-- love.draw, love.update, etc.',
    "-- You can't define those directly (they",
    '-- contain Carousel code), but you can',
    '-- define car.draw, car.update,etc.',
  • replacement in 0078-Example_panes at line 86
    [2.2221][2.2221:2728]()
    '-- For interactivity, LÖVE provides functions like love.keypressed, love.mousepressed, etc.',
    '-- As before, define the corresponding car.keypressed, car.mousepressed, etc.',
    "-- A pane's interactive events only activate when the editor is hidden using the 'hide' button above.",
    "-- Try running this example and then pressing and holding the mouse and pressing and releasing keys.",
    '-- Then try hiding the editor and again pressing and holding the mouse and pressing and releasing keys',
    [2.2221]
    [2.2728]
    '-- For interactivity, LÖVE provides',
    '-- functions like love.keypressed,',
    '-- love.mousepressed, etc.',
    '-- As before, define car.keypressed,',
    '-- car.mousepressed, etc.',
    '-- These interactive events only activate',
    '-- when the editor is hidden using the',
    "-- 'hide' button above.",
    '--',
    '-- Try running this example and then',
    '-- pressing and holding the mouse and',
    '-- typing keys.',
    '-- Then try again after hiding the editor.',
  • replacement in 0078-Example_panes at line 131
    [2.3363][2.3363:3495]()
    'points, line, rectangle, polygon, circle, arc, ellipse = g.points, g.line, g.rectangle, g.polygon, g.circle, g.arc, g.ellipse',
    [2.3363]
    [2.3495]
    'points, line = g.points, g.line',
    'rectangle, polygon = g.rectangle, g.polygon',
    'circle, arc, ellipse = g.circle, g.arc, g.ellipse',
  • replacement in 0078-Example_panes at line 135
    [2.3551][2.3551:3784]()
    "-- Enough abbreviations, let's draw.",
    'color(1,0,0) bgColor(0,1,0)',
    'line(100,100, 200,300)',
    "circle('fill', 200,100, 30)",
    '-- once you load this pane, the abbreviations here will be available in any other pane',
    [2.3551]
    [2.3784]
    "-- Hit 'run', Now they're available to other",
    '-- panes.',