chore: update conf
This commit is contained in:
parent
ca3d486a83
commit
f0819dd815
2 changed files with 14 additions and 27 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
function love.load(args)
|
||||
print(utils.table.toString(args))
|
||||
birb.start("game", args)
|
||||
scenes.menus.title()
|
||||
end
|
Loading…
Reference in a new issue