Skip to content
Michael Ebens edited this page Jun 22, 2018 · 6 revisions

Below is information about each file in Ammo and what it does.

Root Folder

init.lua

Loads Middleclass and the Ammo library. The only difference between loading this file and core/init.lua is that in the former, Middleclass is loaded beforehand.

modules.lua

Loads all included extension modules. The physics module will only be loaded if love.physics is present.

core

core/init.lua

Loads all the other files and sets up the Module: ammo module. Note that if you haven't already defined love.update, it will be set to ammo.update (as in love.update = ammo.update). The same goes for love.draw and ammo.draw.

core/extensions.lua

Adds and overrides a number of functions in Lua and LÖVE's API. See the API Extensions page for more details.

core/Camera.lua

Defines the Camera class.

core/LinkedList.lua

Defines the LinkedList class.

core/Vector.lua

Defines the Vector class.

core/Entity.lua

Defines the Entity class.

core/World.lua

Defines the World class.

core/Sound.lua

Defines the Sound class.

assets

A simple asset management module.

input

An input-handling module.

physics

Physics wrappers for World and Entity.

tweens

Provides the Delay and Tween classes and associated hooks into the Entity class.