Lua Player is an application that plays back Lua scripts on the [[Sony PlayStation Portable|PSP]]. Similar to LÖVE, Lua Player allows for development of games and apps using a simpler language than C++.
== Examples ==
=== Hello World ===
[[File:luaplayer-hello-world-1.png|200px|thumb|right]]
<pre>-- create a new Color object
green = Color.new(0, 255, 0)
-- show some text on offscreen
screen:print(200, 100, "Hello World!", green)
-- flip visible and offscreen
screen.flip()
-- wait forevever
while true do
screen.waitVblankStart()
end</pre>
Save this file as <code>script.lua</code> into the same folder that Lua Player is installed to. When Lua Player is started, the image at right should be shown (blank screen with the text "Hello World!").
The PSP screen is double-buffered, which means that all drawing happens in the off-screen buffer. To make the off-screen buffer visible, <code>screen.flip()</code> is called.
== Functions ==
=== Graphics ===
* <code>Font Font.load(filename)</code> - Loads a true type font.
* <code>Font Font.createMonoSpaced()</code> - Creates an instance of the built-in mono-spaced font.