better line-wrap onboarding screens
Dependencies
- [2]
MJ6KKFVTgive example panes a name - [3]
NV4WC3K4new example: interactivity - [4]
OOSUBWKXsubject people to a tutorial - [5]
X7MRZ5CLsome copy changes - [6]
J6O7HP7Jnew example: draw and update callbacks
Change contents
- replacement in 0078-Example_panes at line 9
"-- 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.",'-- Some examples; feel free to delete.','-- First example: you can perform','-- simple calculations.','', - edit in 0078-Example_panes at line 14
'',"-- 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
'-- print() calls show up in the area below.',"-- Hit 'run' and then scroll through the results.",'for i=1,20 do print(i) end','-- 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
'-- 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
'-- A checkerboard','-- Notice Safe_width and Safe_height for the bounds of the screen.','-- 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
'-- 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.','-- 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
'-- 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','-- 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
'points, line, rectangle, polygon, circle, arc, ellipse = g.points, g.line, g.rectangle, g.polygon, g.circle, g.arc, g.ellipse','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
"-- 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',"-- Hit 'run', Now they're available to other",'-- panes.',