A simple, flexible organisational library for use with the LÖVE game engine.
LÖVE 0.11, Middleclass 4.1.1, and camera/mouse changes.
Full changelog:
Camera:worldPosition
and Camera:screenPosition
to transform points between world and screen space according to the camera's properties.love.window.updateConstants
. Should be called within love.resize
to update the width/height constants.love.window.updateMode
(LÖVE 0.11), which updates the width/height constants.love.mouse.getWorld___
functions to use Camera:worldPosition
thus also rotating the point.love.mouse.getRotated___
functions and love.mouse.switchToRotated
to point to their World
counterparts for the sake of backwards compatibility.World
not using RGBA values when resetting colour after drawing an entity.LÖVE 0.10, Middleclass 4, most modules/extensions now bundled, camera and tween reworks, and a few other changes.
Full changelog:
Camera
now uses centre-based coordinates.processCoordinate
from Camera
and added bindX
, bindY
, and bind
.Camera
is no longer automatic.Camera
bounds are now kept in a simpler { x1, y1, x2, y2 }
table.addLayer
or setupLayers
.World
.World
no longer requires entities to have active
set to true
in order to update. For an entity to be ignored, active
must now be explicitly false
.input.wheel
as part of 0.10 compatibility.PhysicalEntity:drawShape
with support for polygons and circles.tweens
module.AttrTween
with Tween
, removing the former.Tween
and made existing ones public.Tween:reset
.delay
functions to use internal Delay
class.Entity:delay
and Camera:delay
to tweens
module.Compatibility with LÖVE 0.9.x
table.copy
love.graphics.setMode
to love.window.setMode
love.graphics.oldSetMode
ammo.default
. ammo.world
reverts to this when it is set to nil
.World:setupLayers
; allows functions to elements in the table argument.love.graphics.setMode
.LinkedList:clear
.Entity
(move
, getPosition
, setPosition
, getSize
, and setSize
).Entity.width
, Entity.height
, and the corresponding parameters from Entity:initialize
.World
.LinkedList
(bringForward
, sendBackward
, bringToFront
, and sendToBack
).ammo.version
.ammo.update
no longer sets _G.dt
.World:setupLayer
, as it wasn't working properly.oldSetMode
is now stored in love.graphics.oldSetMode
.