Commit 26f63325 authored by Ben Heard's avatar Ben Heard 🖥
Browse files

First running version

parent 4ffb9383
......@@ -39,3 +39,5 @@ luac.out
*.x86_64
*.hex
# include all lovelib files
!/lovelib/*
@ECHO OFF
start "" "%~dp0\lovelib\love" "%~dp0\game"
\ No newline at end of file
function love.conf(t)
t.identity = ".battleforassegar" -- The name of the save directory (string)
t.version = "0.9.2" -- The LÖVE version this game was made for (string)
t.console = true -- Attach a console (boolean, Windows only)
t.window.title = "battleforassegar" -- The window title (string)
t.window.icon = nil -- Filepath to an image to use as the window's icon (string)
t.window.width = 1024 -- The window width (number)
t.window.height = 720 -- The window height (number)
t.window.borderless = false -- Remove all border visuals from the window (boolean)
t.window.resizable = true -- Let the window be user-resizable (boolean)
t.window.minwidth = 300 -- Minimum window width if the window is resizable (number)
t.window.minheight = 150 -- Minimum window height if the window is resizable (number)
t.window.fullscreen = false -- Enable fullscreen (boolean)
t.window.fullscreentype = "normal" -- Choose between "normal" fullscreen or "desktop" fullscreen mode (string)
t.window.vsync = true -- Enable vertical sync (boolean)
t.window.fsaa = 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.srgb = false -- Enable sRGB gamma correction when drawing to the screen (boolean)
t.window.x = 100 -- The x-coordinate of the window's position in the specified display (number)
t.window.y = 100 -- The y-coordinate of the window's position in the specified display (number)
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.window = true -- Enable the window module (boolean)
t.modules.thread = true -- Enable the thread module (boolean)
end
\ No newline at end of file
function love.load()
x = 500
y = 500
end
function love.draw(dt)
-- dt is deltaTime (how much time has passed)
love.graphics.print("Hello World!", x, y)
end
function love.update(dt)
if love.keyboard.isDown("a", "left") then
x = x - 5
end
if love.keyboard.isDown("d", "right") then
x = x + 5
end
if love.keyboard.isDown("w", "up") then
y = y - 5
end
if love.keyboard.isDown("s", "down") then
y = y + 5
end
end
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment