init project with sprite and bare l5 for mockup
This commit is contained in:
commit
1dee952026
4 changed files with 3956 additions and 0 deletions
3918
l5-mockup/L5.lua
Normal file
3918
l5-mockup/L5.lua
Normal file
File diff suppressed because it is too large
Load diff
19
l5-mockup/README.txt
Normal file
19
l5-mockup/README.txt
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Welcome to L5
|
||||
|
||||
This is an example L5 project containing the L5.lua library and a starter main.lua file.
|
||||
|
||||
In order to use L5 and run your software you must have Love2d installed on your computer. Refer to the https://L5lua.org/download page or https://L5lua.org/tutorials for more information on installing Love2d on your machine.
|
||||
|
||||
You do not need to edit L5.lua but it must be in your project folder. It is extensively commented, so you should feel welcome to read the source code.
|
||||
|
||||
main.lua is the name of your own program code. We've started you with a couple basic lines. At the top is 'require("L5")', which tells your program to use the L5 library. Following that are setup() and draw() functions you can complete.
|
||||
|
||||
For more information on getting started with L5, visit https://L5lua.org/tutorials
|
||||
|
||||
An online reference to the L5 library is available at https://L5lua.org/reference
|
||||
|
||||
L5 is built in community. For more information and to contribute, report bugs, etc., visit https://l5lua.org/contributing/
|
||||
|
||||
## License
|
||||
|
||||
The L5 library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 2.1.
|
||||
19
l5-mockup/main.lua
Normal file
19
l5-mockup/main.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
require("L5")
|
||||
|
||||
function setup()
|
||||
size(400, 400)
|
||||
|
||||
-- Set the program title
|
||||
windowTitle("Basic sketch")
|
||||
|
||||
-- Sets print command output to display in window
|
||||
printToScreen()
|
||||
|
||||
describe('Draws a yellow background')
|
||||
end
|
||||
|
||||
function draw()
|
||||
-- Fills the background with the color yellow
|
||||
background(255, 215, 0)
|
||||
end
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue