1
0
Fork 0
mirror of https://github.com/Reuh/ubiquitousse.git synced 2025-10-27 17:19:31 +00:00

input: Add multidimensional inputs to replace pointer special case, improve documentation

This commit is contained in:
Étienne Fildadut 2022-09-20 01:10:39 +09:00
parent 7ad5c2d641
commit 8b994608a2
18 changed files with 1490 additions and 264 deletions

View file

@ -43,7 +43,7 @@
-- TODO: handle nineSliceBorders when drawing entities
-- TODO: Once stable in LDtk: handle parallax when drawing layers, multiple worlds per file
--- LÖVE wrappers/placeholder
-- LÖVE wrappers/placeholder
let lg = (love or {}).graphics
let newQuad
if lg then
@ -56,7 +56,7 @@ end
let cache
--- json helpers
-- json helpers
let json_decode
do
let r, json = pcall(require, "json")
@ -70,7 +70,7 @@ let readJson = (file)
return t
end
--- color helpers
-- color helpers
let parseColor = (str)
local r, g, b = str:match("^#(..)(..)(..)")
r, g, b = tonumber(r, 16), tonumber(g, 16), tonumber(b, 16)