Skip to content

MikuAuahDark/love2d-tl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

love2d-tl

LOVE

Teal type definition for LÖVE, an awesome framework you can use to make 2D games in Lua. Based on definitions provided by love-api.

Note that this does not include type definition of bit, FFI, LuaSocket, ENet, and utf8 libraries!

Blacklisted Functions

Lists of function (variants) that are currently blacklisted due to limitations in generate_tl.lua:

Usage

You need to cast at various places due to Teal lacking record inheritance (see #4). Example simple usage.

function love.load()
	global myimage = love.graphics.newImage("path/to/image.png")
	local imageW, imageH = (myimage as love.graphics.Texture):getDimensions()
	print("Width", imageW, "Height", imageH)
end

function love.draw()
	love.graphics.draw(myimage as love.graphics.Drawable)
end

About

Teal Type Definitions for LÖVE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages