VERSIÓ 1.4.6

-[NEW] font.load()
-[NEW] font.current()
-[NEW] font.spacing()
-[NEW] font.DEFAULT
-[NEW] surf.SCREEN
This commit is contained in:
2026-03-18 20:36:14 +01:00
parent bf34c92e09
commit 779ef7acb6
8 changed files with 146 additions and 9 deletions

View File

@@ -4,6 +4,7 @@
mini = {}
---@class surf
---@field surf.SCREEN number
surf = {}
---@param w number
@@ -72,6 +73,9 @@ function surf.pixel(x, y) end
---Set the color for pixel (x,y) on the target surface.
function surf.pixel(x, y, color) end
surf.SCREEN = 0
---@class map
map = {}
@@ -543,6 +547,34 @@ function config.key(key) end
function config.folder() end
---@class font
---@field font.DEFAULT number
font = {}
---@param filename string
---@return number fnt
---Loads a font from a file
function font.load(filename) end
---@return number fnt
---Gets the currently selected font
function font.current() end
---@param fnt number
---Sets the specified font as selected
function font.current(fnt) end
---@return number value
---Gets the currently selected font's spacing
function font.spacing() end
---@param value number
---Sets the currently selected font's spacing
function font.spacing(value) end
font.DEFAULT = 0
---@class mouse
---@field mouse.LEFT number
---@field mouse.MIDDLE number