diff --git a/debug.sh b/debug.sh new file mode 100755 index 0000000..8231d84 --- /dev/null +++ b/debug.sh @@ -0,0 +1 @@ +love ./examples DEBUGLEVEL=4 \ No newline at end of file diff --git a/examples/conf.lua b/examples/conf.lua index 10f282c..d7b88cb 100644 --- a/examples/conf.lua +++ b/examples/conf.lua @@ -1,47 +1,47 @@ function love.conf(t) - t.identity = "city.kobold.Birb" -- The name of the save directory (string) - t.version = "11.1" -- The LÖVE version this game was made for (string) - 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.debugLevel = 4 -- Debug level mode : 0=Error only, 3=Everything. + t.identity = "city.kobold.Birb" -- The name of the save directory (string) + t.version = "11.1" -- The LÖVE version this game was made for (string) + 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.7.0" -- The game version (different than love2D version) - t.window.title = "Birb Engine Examples" -- 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 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) - t.window.minheight = 1 -- Minimum window height if the window is resizable (number) - t.window.fullscreen = false -- Enable fullscreen (boolean) + t.window.title = "Birb Examples" -- 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 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) + t.window.minheight = 1 -- Minimum window height if the window is resizable (number) + t.window.fullscreen = false -- Enable fullscreen (boolean) t.window.fullscreentype = "exclusive" -- Choose between "desktop" fullscreen or "exclusive" fullscreen mode (string) - t.window.vsync = true -- Enable vertical sync (boolean) - t.window.msaa = 0 -- The number of samples to use with multi-sampled antialiasing (number) - t.window.display = 1 -- Index of the monitor to show the window in (number) - 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.window.vsync = true -- Enable vertical sync (boolean) + t.window.msaa = 0 -- The number of samples to use with multi-sampled antialiasing (number) + t.window.display = 1 -- Index of the monitor to show the window in (number) + 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) - t.modules.graphics = true -- Enable the graphics module (boolean) - t.modules.image = true -- Enable the image module (boolean) - t.modules.joystick = true -- Enable the joystick module (boolean) - t.modules.keyboard = true -- Enable the keyboard module (boolean) - t.modules.math = true -- Enable the math module (boolean) - t.modules.mouse = true -- Enable the mouse module (boolean) - t.modules.physics = true -- Enable the physics module (boolean) - t.modules.sound = true -- Enable the sound module (boolean) - t.modules.system = true -- Enable the system module (boolean) - t.modules.timer = true -- Enable the timer module (boolean), Disabling it will result 0 delta time in love.update - t.modules.touch = true -- Enable the touch module (boolean) - t.modules.video = true -- Enable the video module (boolean) - t.modules.window = true -- Enable the window module (boolean) - t.modules.thread = true -- Enable the thread module (boolean) + t.modules.audio = true -- Enable the audio module (boolean) + t.modules.event = true -- Enable the event module (boolean) + t.modules.graphics = true -- Enable the graphics module (boolean) + t.modules.image = true -- Enable the image module (boolean) + t.modules.joystick = true -- Enable the joystick module (boolean) + t.modules.keyboard = true -- Enable the keyboard module (boolean) + t.modules.math = true -- Enable the math module (boolean) + t.modules.mouse = true -- Enable the mouse module (boolean) + t.modules.physics = true -- Enable the physics module (boolean) + t.modules.sound = true -- Enable the sound module (boolean) + t.modules.system = true -- Enable the system module (boolean) + t.modules.timer = true -- Enable the timer module (boolean), Disabling it will result 0 delta time in love.update + t.modules.touch = true -- Enable the touch module (boolean) + t.modules.video = true -- Enable the video module (boolean) + t.modules.window = true -- Enable the window module (boolean) + t.modules.thread = true -- Enable the thread module (boolean) end diff --git a/examples/main.lua b/examples/main.lua index 622cf65..1efcb52 100644 --- a/examples/main.lua +++ b/examples/main.lua @@ -22,13 +22,11 @@ ]] require "birb" -Game = require "game" + scenes = require "scenes" -function love.load() - birb.startCore(3) - game = Game() - game:read(1) - +function love.load(args) + print(utils.table.toString(args)) + birb.start("game", args) scenes.MainMenu() end diff --git a/launch.sh b/launch.sh new file mode 100755 index 0000000..d6c35f4 --- /dev/null +++ b/launch.sh @@ -0,0 +1 @@ +love ./examples \ No newline at end of file