Skip to content

Commit

Permalink
11.1, baby
Browse files Browse the repository at this point in the history
  • Loading branch information
sirskunkalot committed Sep 13, 2018
1 parent 26d2917 commit 70c5746
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 50 deletions.
6 changes: 3 additions & 3 deletions .rockspec
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package = "LOVE2D"
version = "0.10.2"
version = "0.11.1"
flags = { ee = true }
description = {
summary = "LOVE2D 0.10.2 Execution Environment",
detailed = [[ LOVE2D 0.10.2 Execution Environment Support ]],
summary = "LOVE2D 0.11.1 Execution Environment",
detailed = [[ LOVE2D 0.11.1 Execution Environment Support ]],
licence = "zlib/libpng",
homepage = "http://www.love2d.org",
}
Expand Down
Binary file modified api.zip
Binary file not shown.
15 changes: 10 additions & 5 deletions templates/default/conf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ function love.conf(t)
-- See https://www.love2d.org/wiki/Config_Files for more information.

-- t.identity = nil -- The name of the save directory (string)
-- t.version = "0.10.2" -- The LÖVE version this game was made for (string)
-- t.appendidentity = false -- Search files in source directory before save directory (boolean)
-- t.version = "11.0" -- The LÖVE version this game was made for (string)
-- t.console = false -- Attach a console (boolean, Windows only)
-- t.accelerometerjoystick = true -- Enable the accelerometer on iOS and Android by exposing it as a Joystick (boolean)
-- t.externalstorage = false -- True to save files (and read from the save directory) in external storage on Android (boolean)
-- t.gammacorrect = false -- Enable gamma-correct rendering, when supported by the system (boolean)


-- t.audio.mixwithsystem = true -- Keep background music playing when opening LOVE (boolean, iOS and Android only)

-- t.window.title = "Untitled" -- The window title (string)
-- t.window.icon = nil -- Filepath to an image to use as the window's icon (string)
-- t.window.width = 800 -- The window width (number)
Expand All @@ -19,15 +22,17 @@ function love.conf(t)
-- t.window.minheight = 1 -- Minimum window height if the window is resizable (number)
-- t.window.fullscreen = false -- Enable fullscreen (boolean)
-- t.window.fullscreentype = "desktop" -- Choose between "desktop" fullscreen or "exclusive" fullscreen mode (string)
-- t.window.vsync = true -- Enable vertical sync (boolean)
-- t.window.vsync = 1 -- Vertical sync mode (number)
-- 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.modules.audio = true -- Enable the audio module (boolean)
-- t.modules.data = true -- Enable the data module (boolean)
-- t.modules.event = true -- Enable the event module (boolean)
-- t.modules.font = true -- Enable the font 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)
Expand All @@ -37,9 +42,9 @@ function love.conf(t)
-- 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.thread = true -- Enable the thread 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
53 changes: 11 additions & 42 deletions templates/default/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,19 @@
-- Feel free to delete the callbacks you don't need,
-- and visit https://www.love2d.org/wiki/love if you need more.

-- for rectangle example
local x, y, w, h = 20, 20, 60, 20

-- Load some default values for our rectangle.
function love.load()

end

function love.draw()
-- Draw a coloured rectangle.
love.graphics.setColor(0, 100, 100);
love.graphics.rectangle('fill', x, y, w, h);

x, y, w, h = 20, 20, 60, 20
end


-- Increase the size of the rectangle every frame.
function love.update(dt)
-- Grow the rectangle.
w = w + 1
h = h + 1

end


function love.keypressed(key, isrepeat)

end

function love.keyreleased(key)

w = w + 1
h = h + 1
end

function love.textinput(text)

end

function love.mousepressed(x, y, button)

end

function love.mousemoved(x, y, dx, dy)

end

function love.mousereleased(x, y, button)


-- Draw a coloured rectangle.
function love.draw()
love.graphics.setColor(0, 0.4, 0.4)
love.graphics.rectangle("fill", x, y, w, h)
end


0 comments on commit 70c5746

Please sign in to comment.