This repository was archived by the owner on Oct 19, 2019. It is now read-only.
forked from mkosler/LOVELuaDoc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlove.lua
163 lines (133 loc) · 4.45 KB
/
love.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
---
-- The root module which contains all the other modules.
-- Clearly the loveliest module of all.
--
-- When beginning to write games using LÖVE, the most important parts of the API
-- are the callbacks: love.load to do one-time setup of your game, love.update
-- which is used to manage your game's state frame-to-frame, and love.draw which
-- is used to render the game state onto the screen.
--
-- More interactive games will override additional callbacks in order to handle
-- input from the user, and other aspects of a full-featured game.
--
-- @module love
--
---
-- Provides an interface to create noise with the user's speakers.
-- @field [parent = #love] audio#audio audio
--
---
-- Manages events, like keypresses.
-- @field [parent = #love] event#event event
--
---
-- Provides an interface to the user's filesystem.
-- @field [parent = #love] filesystem#filesystem filesystem
--
---
-- Allows you to work with fonts.
-- @field [parent = #love] font#font font
--
---
-- Drawing of shapes and images, management of screen geometry.
-- @field [parent = #love] graphics#graphics graphics
--
---
-- Provides an interface to decode encoded image data.
-- @field [parent = #love] image#image image
--
---
-- Provides an interface to the user's joystick.
-- @field [parent = #love] joystick#joystick joystick
--
---
-- Provides an interface to the user's keyboard.
-- @field [parent = #love] keyboard#keyboard keyboard
--
---
-- Provides an interface to the user's mouse.
-- @field [parent = #love] mouse#mouse mouse
--
---
-- Provides access to information about the user's system.
-- @field [parent = #love] system#system system
--
---
-- Provides an interface for modifying and retrieving information about the program's window.
-- @field [parent = #love] window#window window
--
---
-- Can simulate 2D rigid body physics in a realistic manner.
-- @field [parent = #love] physics#physics physics
--
---
-- This module is responsible for decoding sound files.
-- @field [parent = #love] sound#sound sound
--
---
-- Allows you to work with threads.
-- @field [parent = #love] thread#thread thread
--
---
-- Provides an interface to the user's clock.
-- @field [parent = #love] timer#timer timer
--
---
-- Callback function used to draw on the screen every frame.
-- @function [parent = #love] draw
---
-- Callback function triggered when window receives or loses focus.
-- @function [parent = #love] focus
-- @param #boolean f Window focus.
---
-- Called when a joystick button is pressed.
-- @function [parent = #love] joystickpressed
-- @param #number joystick The joystick number.
-- @param #number button The button number.
---
-- Called when a joystick button is released.
-- @function [parent = #love] joystickreleased
-- @param #number joystick The joystick number.
-- @param #number button The button number.
---
-- Callback function triggered when a key is pressed.
-- @function [parent = #love] keypressed
-- @param key Character of the key pressed.
-- @param #boolean isrepeat Whether this keypress event is a repeat.
---
-- Callback function triggered when a key is released.
-- @function [parent = #love] keyreleased
-- @param key Character of the key pressed.
-- @param #number unicode The unicode number of the key pressed.
---
-- This function is called exactly once at the beginning of the game.
-- @function [parent = #love] load
-- @param #table arg Command line arguments given to the game.
---
-- Callback function triggered when a mouse button is pressed.
-- @function [parent = #love] mousepressed
-- @param #number x Mouse x position.
-- @param #number y Mouse y position.
-- @param button Mouse button pressed.
---
-- Callback function triggered when a mouse button is released.
-- @function [parent = #love] mousereleased
-- @param #number x Mouse x position.
-- @param #number y Mouse y position.
-- @param button Mouse button pressed.
---
-- Callback function triggered when the game is closed.
-- @function [parent = #love] quit
-- @return #boolean Abort quitting. if true, do not close the game.
---
-- The main function, containing the main loop. A sensible default is used when left out.
-- @function [parent = #love] run
---
-- Callback function used to update the state of the game every frame.
-- @function [parent = #love] update
-- @param #number dt Time since the last update in seconds.
---
-- Callback function triggered when window receives or loses mouse focus
-- @function [parent = #love] mousefocus
-- @param #boolean f Window mouse focus.
return nil