-
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Magnus Oblerion edited this page Apr 9, 2024
·
11 revisions
Welcome to the love2d.js wiki!
wiki no longer be update -> manual.pdf
- This framework work with javascript, not lua.
- love.graphics.setFont(name) work with name of font ("arial","ani","consola").
It can't load ttf file in this time. - love.window.setMode() can't set fullscreen.
- love.graphics.print(text,x,y,r,sx) sx can set only font size
- some limitation due at your browsers can do and can't do
- love.load()
- love.update()
- love.draw()
- love.keypressed(key,code,repeat)
- love.keyreleased(key,code,repeat)
- love.mousepressed(x,y,button,istouch)
- love.mousereleased(x,y,button,istouch)
- love.graphics_setColor(r,g,b,a)
- love.graphics_setAlpha(a)
- love.graphics_getColor()
- love.graphics_setFont(font)
- love.graphics_print(text,x,y,r,sx)
- love.graphics_rectangle(mode,x,y,w,h)
- love.graphics_circle(mode,x,y,radius)
- love.graphics_line(x,y,x2,y2)
- love.graphics_newImage(filename)
- love.graphics_newVideo(filename)
- love.graphics_newQuad(x,y,w,h)
- love.graphics_draw(object,[quad,]x,y,r,sx,sy)
- love.graphics_scale(w,h)
- love.audio_newSource(filename,type)
- love.audio_play(object)
- love.audio_pause(object)
- love.audio_stop(object)
- love.audio_setVolume(volume)
- love.audio_getVolume()