fold variables for screen dimensions into the app framework
[?]
May 23, 2022, 1:45 AM
IRV65LZPHFLLYPTMLTDO6OJDHVZQJ6MFXZ45IRXRDSRSEQNO5DIACDependencies
- [2]
AVTNUQYRbasic test-enabled framework - [3]
2RXZ3PGObeginning of a new approach to scroll+wrap - [4]
2C7CTIQYmake space for multiple kinds of width - [5]
DLQMM265scroll past first page - [6]
JVRL5TWLstore device-independent coordinates inside drawings - [7]
V5TP27FPctrl-+ and ctrl-- to adjust font size - [8]
ZNLTRNNKhighlight another global - [9]
JCSLDGAHbeginnings of support for multiple shapes - [10]
242L3OQXbugfix: ensure Cursor_line is always on a text line - [11]
AVQ5MC5Dfinish uppercasing all globals - [12]
ESETRNLBbugfix: printing the first part of a line at the bottom made it seem non-wrapping - [13]
OTIBCAUJlove2d scaffold - [14]
Y6FTGOHJsimpler - [15]
UWNHC4AAredo y computations - [16]
HDC3AAQPsilly reason my screenshots had an ugly black line down the left - [17]
XX7G2FFJintermingle freehand line drawings with text - [18]
7IKRRESBlonger names for indices in long loops - [19]
OIB2QPRCstart remembering where the cursor is drawn in px - [20]
DXT4QTAHa few more integer coordinates - [21]
2POFQQLWkeep cursor on screen when pressing 'down'
Change contents
- replacement in main.lua at line 66
Screen_width, Screen_height, Screen_flags = love.window.getMode()App.screen.width, App.screen.height = love.window.getMode() - replacement in main.lua at line 68
Screen_width = Screen_width-100Screen_height = Screen_height-100love.window.setMode(Screen_width, Screen_height)App.screen.width = App.screen.width-100App.screen.height = App.screen.height-100love.window.setMode(App.screen.width, App.screen.height) - replacement in main.lua at line 78
Line_width = math.floor(Screen_width/2/40)*40Line_width = math.floor(App.screen.width/2/40)*40 - replacement in main.lua at line 117
love.graphics.rectangle('fill', 0, 0, Screen_width-1, Screen_height-1)love.graphics.rectangle('fill', 0, 0, App.screen.width-1, App.screen.height-1) - replacement in main.lua at line 126
if y + math.floor(15*Zoom) > Screen_height then break endif y + math.floor(15*Zoom) > App.screen.height then break end - replacement in main.lua at line 236
local y = Screen_heightlocal y = App.screen.height