Scenography is a library (A Lua Module) that allows using Scene and various utilities with the LÖVE framework.
- You should start by downloading/cloning/etc this repo
- This repo is now ready to be used as a project folder
- the Scene's file are in the
src/
folder of the project, and each scene have his own folder (the name of the folder IS THE SAME as the name of the scene's file) - The documentation and various examples of a Scene's file is in the Scene0.lua's file, so you should check it out first.
- all your assets should preferably be put in the rsrc's folder, according of the type (ex: assets, shader, sounds, etc).
- That's it! It should works properly in a small LÖVE 2D project 👍.
- Use this following structure:
local Scene1 = {} local Scenography = require("libs/Scenography/Scenography") function Scene1.Load() -- Put some code here... end function Scene1.Update() -- Put some code here... end function Scene1.Draw() -- Put some code here... end return Scene1
notes: The Scene's name can be anything that you want, but it should be the same as the scene folder's name and Scene file's name.
The documentation is in the Scene0.lua's file
(it contains various example, and its the default's starting scene in Scenography)
- The MIT License, read the
LICENSE.txt
file for details.
- I made this little project just for fun and in spare time. I updated it as my experiment for the Experimentation's Jam 1, where I implemented
Camera.lua
andGameObject.lua
to the project.