Re: Made With Love - Löve Logo Introduction (no lib)
Posted: Sat Nov 26, 2016 5:15 pm
That's really good looking. Looks nice!
Code: Select all
wWidth, wHeight = love.graphics.getDimensions()
local x = (wWidth / 2) - (374 / 2)
local y = (wHeight / 2) - (345 / 2)
x = 0
y = 0
local timeStill = 2
local timePassedStill = 0
local timeChangeSpeed = 28
local selectedStill = 1
local width = love.graphics.newImage("loveintro.png"):getWidth()
local height = love.graphics.newImage("loveintro.png"):getHeight()
local img = love.graphics.newImage("loveintro.png")
local vect = {
love.graphics.newQuad(0, 0, 374, 345, width, height),
love.graphics.newQuad(374, 0, 374, 345, width, height),
love.graphics.newQuad(748, 0, 374, 345, width, height),
love.graphics.newQuad(1122, 0, 374, 345, width, height),
love.graphics.newQuad(1496, 0, 374, 345, width, height),
love.graphics.newQuad(1870, 0, 374, 345, width, height),
love.graphics.newQuad(2244, 0, 374, 345, width, height),
love.graphics.newQuad(2618, 0, 374, 345, width, height),
love.graphics.newQuad(2992, 0, 374, 345, width, height),
love.graphics.newQuad(3366, 0, 374, 345, width, height),
love.graphics.newQuad(0, 345, 374, 345, width, height),
love.graphics.newQuad(374, 345, 374, 345, width, height),
love.graphics.newQuad(748, 345, 374, 345, width, height),
love.graphics.newQuad(1122, 345, 374, 345, width, height),
love.graphics.newQuad(1496, 345, 374, 345, width, height),
love.graphics.newQuad(1870, 345, 374, 345, width, height),
love.graphics.newQuad(2244, 345, 374, 345, width, height),
love.graphics.newQuad(2618, 345, 374, 345, width, height),
love.graphics.newQuad(2992, 345, 374, 345, width, height),
love.graphics.newQuad(3366, 345, 374, 345, width, height),
love.graphics.newQuad(0, 690, 374, 345, width, height),
love.graphics.newQuad(374, 690, 374, 345, width, height),
love.graphics.newQuad(748, 690, 374, 345, width, height),
love.graphics.newQuad(1122, 690, 374, 345, width, height),
love.graphics.newQuad(1496, 690, 374, 345, width, height),
love.graphics.newQuad(1870, 690, 374, 345, width, height),
love.graphics.newQuad(2244, 690, 374, 345, width, height),
love.graphics.newQuad(2618, 690, 374, 345, width, height),
love.graphics.newQuad(2992, 690, 374, 345, width, height),
love.graphics.newQuad(3366, 690, 374, 345, width, height),
love.graphics.newQuad(0, 1035, 374, 345, width, height),
love.graphics.newQuad(374, 1035, 374, 345, width, height),
love.graphics.newQuad(748, 1035, 374, 345, width, height),
love.graphics.newQuad(1122, 1035, 374, 345, width, height),
love.graphics.newQuad(1496, 1035, 374, 345, width, height),
love.graphics.newQuad(1870, 1035, 374, 345, width, height),
love.graphics.newQuad(2244, 1035, 374, 345, width, height),
love.graphics.newQuad(2618, 1035, 374, 345, width, height),
love.graphics.newQuad(2992, 1035, 374, 345, width, height),
love.graphics.newQuad(3366, 1035, 374, 345, width, height),
love.graphics.newQuad(0, 1380, 374, 345, width, height),
love.graphics.newQuad(374, 1380, 374, 345, width, height),
love.graphics.newQuad(748, 1380, 374, 345, width, height),
love.graphics.newQuad(1122, 1380, 374, 345, width, height),
love.graphics.newQuad(1496, 1380, 374, 345, width, height),
love.graphics.newQuad(1870, 1380, 374, 345, width, height),
love.graphics.newQuad(2244, 1380, 374, 345, width, height),
love.graphics.newQuad(2618, 1380, 374, 345, width, height),
love.graphics.newQuad(2992, 1380, 374, 345, width, height),
love.graphics.newQuad(3366, 1380, 374, 345, width, height),
love.graphics.newQuad(0, 1725, 374, 345, width, height),
love.graphics.newQuad(374, 1725, 374, 345, width, height),
love.graphics.newQuad(748, 1725, 374, 345, width, height),
love.graphics.newQuad(1122, 1725, 374, 345, width, height),
love.graphics.newQuad(1496, 1725, 374, 345, width, height),
love.graphics.newQuad(1870, 1725, 374, 345, width, height),
love.graphics.newQuad(2244, 1725, 374, 345, width, height),
love.graphics.newQuad(2618, 1725, 374, 345, width, height),
love.graphics.newQuad(2992, 1725, 374, 345, width, height),
love.graphics.newQuad(3366, 1725, 374, 345, width, height),
love.graphics.newQuad(0, 2070, 374, 345, width, height),
love.graphics.newQuad(374, 2070, 374, 345, width, height),
love.graphics.newQuad(748, 2070, 374, 345, width, height),
love.graphics.newQuad(1122, 2070, 374, 345, width, height),
love.graphics.newQuad(1496, 2070, 374, 345, width, height),
love.graphics.newQuad(1870, 2070, 374, 345, width, height),
love.graphics.newQuad(2244, 2070, 374, 345, width, height),
love.graphics.newQuad(2618, 2070, 374, 345, width, height),
love.graphics.newQuad(2992, 2070, 374, 345, width, height),
love.graphics.newQuad(3366, 2070, 374, 345, width, height),
love.graphics.newQuad(0, 2415, 374, 345, width, height),
love.graphics.newQuad(374, 2415, 374, 345, width, height),
love.graphics.newQuad(748, 2415, 374, 345, width, height),
love.graphics.newQuad(1122, 2415, 374, 345, width, height),
love.graphics.newQuad(1496, 2415, 374, 345, width, height),
love.graphics.newQuad(1870, 2415, 374, 345, width, height),
love.graphics.newQuad(2244, 2415, 374, 345, width, height),
love.graphics.newQuad(2618, 2415, 374, 345, width, height),
love.graphics.newQuad(2992, 2415, 374, 345, width, height),
love.graphics.newQuad(3366, 2415, 374, 345, width, height),
love.graphics.newQuad(0, 2760, 374, 345, width, height),
love.graphics.newQuad(374, 2760, 374, 345, width, height),
love.graphics.newQuad(748, 2760, 374, 345, width, height),
love.graphics.newQuad(1122, 2760, 374, 345, width, height),
love.graphics.newQuad(1496, 2760, 374, 345, width, height),
love.graphics.newQuad(1870, 2760, 374, 345, width, height),
love.graphics.newQuad(2244, 2760, 374, 345, width, height),
love.graphics.newQuad(2618, 2760, 374, 345, width, height),
love.graphics.newQuad(2992, 2760, 374, 345, width, height),
love.graphics.newQuad(3366, 2760, 374, 345, width, height),
love.graphics.newQuad(0, 3105, 374, 345, width, height),
love.graphics.newQuad(374, 3105, 374, 345, width, height),
love.graphics.newQuad(748, 3105, 374, 345, width, height),
love.graphics.newQuad(1122, 3105, 374, 345, width, height),
love.graphics.newQuad(1496, 3105, 374, 345, width, height),
love.graphics.newQuad(1870, 3105, 374, 345, width, height),
love.graphics.newQuad(2244, 3105, 374, 345, width, height),
love.graphics.newQuad(2618, 3105, 374, 345, width, height),
love.graphics.newQuad(2992, 3105, 374, 345, width, height),
love.graphics.newQuad(3366, 3105, 374, 345, width, height)
}
function love.load()
end
function love.update(dt)
timePassedStill = timePassedStill + timeChangeSpeed * dt
if timePassedStill >= timeStill then
timePassedStill = 0
if selectedStill == #vect then
selectedStill = selectedStill
else
selectedStill = selectedStill + 1
end
end
end
function love.draw()
love.graphics.setColor(255, 255, 255, 255)
love.graphics.draw(img, vect[selectedStill], x, y)
end