chore: update conf

This commit is contained in:
Kazhnuz 2021-11-25 11:29:01 +01:00
parent ca3d486a83
commit f0819dd815
2 changed files with 14 additions and 27 deletions

View file

@ -4,11 +4,12 @@ function love.conf(t)
t.console = false -- Attach a console (boolean, Windows only) t.console = false -- Attach a console (boolean, Windows only)
t.accelerometerjoystick = false -- Enable the accelerometer on iOS and Android by exposing it as a Joystick (boolean) t.accelerometerjoystick = false -- Enable the accelerometer on iOS and Android by exposing it as a Joystick (boolean)
t.gammacorrect = false -- Enable gamma-correct rendering, when supported by the system (boolean) t.gammacorrect = false -- Enable gamma-correct rendering, when supported by the system (boolean)
t.gameversion = "0.0.7" -- The game version (different than love2D version)
t.window.title = "Sonic Bluestreak" -- The window title (string) t.window.title = "Sonic Bluestreak" -- The window title (string)
t.window.icon = nil -- Filepath to an image to use as the window's icon (string) t.window.icon = nil -- Filepath to an image to use as the window's icon (string)
t.window.width = 424 -- The window width (number) t.window.width = 424 -- The window internal width (number)
t.window.height = 240 -- The window height (number) t.window.height = 240 -- The window internal height (number)
t.window.borderless = false -- Remove all border visuals from the window (boolean) t.window.borderless = false -- Remove all border visuals from the window (boolean)
t.window.resizable = false -- Let the window be user-resizable (boolean) t.window.resizable = false -- Let the window be user-resizable (boolean)
t.window.minwidth = 1 -- Minimum window width if the window is resizable (number) t.window.minwidth = 1 -- Minimum window width if the window is resizable (number)
@ -21,6 +22,11 @@ function love.conf(t)
t.window.highdpi = false -- Enable high-dpi mode for the window on a Retina display (boolean) t.window.highdpi = false -- Enable high-dpi mode for the window on a Retina display (boolean)
t.window.x = nil -- The x-coordinate of the window's position in the specified display (number) t.window.x = nil -- The x-coordinate of the window's position in the specified display (number)
t.window.y = nil -- The y-coordinate of the window's position in the specified display (number) t.window.y = nil -- The y-coordinate of the window's position in the specified display (number)
t.window.resolution = 2 -- The default resolution
t.volume = {}
t.volume.music = 100 -- music audio volume
t.volume.sfx = 100 -- sfx audio volume
t.modules.audio = true -- Enable the audio module (boolean) t.modules.audio = true -- Enable the audio module (boolean)
t.modules.event = true -- Enable the event module (boolean) t.modules.event = true -- Enable the event module (boolean)

View file

@ -21,31 +21,12 @@
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
]] ]]
Core = require "core" require "birb"
Game = require "game"
scenes = require "scenes" scenes = require "scenes"
function love.load() function love.load(args)
core = Core(true) print(utils.table.toString(args))
game = Game() birb.start("game", args)
scenes.menus.title()
scenes.test()
end
function love.update(dt)
core:update(dt)
game:update(dt)
end
function love.draw()
core:draw()
end
function love.mousemoved(x, y, dx, dy)
core:mousemoved(x, y, dx, dy)
end
function love.mousepressed( x, y, button, istouch )
core:mousepressed(x, y, button, istouch)
end end