From f0819dd8156cbbf40d4191edd03593ee4a2630b4 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Thu, 25 Nov 2021 11:29:01 +0100 Subject: [PATCH] chore: update conf --- sonic-bluestreak.love/conf.lua | 10 ++++++++-- sonic-bluestreak.love/main.lua | 31 ++++++------------------------- 2 files changed, 14 insertions(+), 27 deletions(-) diff --git a/sonic-bluestreak.love/conf.lua b/sonic-bluestreak.love/conf.lua index f1db3da..e4a618e 100644 --- a/sonic-bluestreak.love/conf.lua +++ b/sonic-bluestreak.love/conf.lua @@ -4,11 +4,12 @@ function love.conf(t) 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.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.icon = nil -- Filepath to an image to use as the window's icon (string) - t.window.width = 424 -- The window width (number) - t.window.height = 240 -- The window height (number) + t.window.width = 424 -- The window internal width (number) + t.window.height = 240 -- The window internal height (number) 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.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.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.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.event = true -- Enable the event module (boolean) diff --git a/sonic-bluestreak.love/main.lua b/sonic-bluestreak.love/main.lua index 83c5003..33c58d6 100644 --- a/sonic-bluestreak.love/main.lua +++ b/sonic-bluestreak.love/main.lua @@ -21,31 +21,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -Core = require "core" -Game = require "game" +require "birb" scenes = require "scenes" -function love.load() - core = Core(true) - game = Game() - - 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 +function love.load(args) + print(utils.table.toString(args)) + birb.start("game", args) + scenes.menus.title() +end \ No newline at end of file