System API
Core system functions and information.
Functions
kinetic.version
local version = kinetic.version
print("Kinetic version: " .. version) -- "1.0.0"kinetic.fps()
local fps = kinetic.fps()
print("FPS: " .. fps)kinetic.on_frame = function(delta_time)
local fps = kinetic.fps()
-- Color based on FPS
local color
if fps >= 60 then
color = {0, 255, 0} -- Green
elseif fps >= 30 then
color = {255, 255, 0} -- Yellow
else
color = {255, 0, 0} -- Red
end
kinetic.draw.text({10, 10}, color, string.format("FPS: %.0f", fps))
endkinetic.player_count()
kinetic.notify()
Complete Example
Notification Types
Tips
Next Steps
Last updated