Made With Love - Löve Logo Introduction (no lib)
Re: Made With Love - Löve Logo Introduction (no lib)
That's really good looking. Looks nice!
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
Re: Made With Love - Löve Logo Introduction (no lib)
Just what I was looking for!
Hell yeah!
Awesome work man!
Hell yeah!
Awesome work man!
Re: Made With Love - Löve Logo Introduction (no lib)
That's 600 kilobytes just for short splash screen and in low resolution. Could you make a script that renders it in real time using small handful of higher resolution assets?
Re: Made With Love - Löve Logo Introduction (no lib)
Wops, it takes quite a few secs to load.
Any suggestions about how to make it load faster?
I'm using his spritesheet cause I can't draw.
Yeah I know, I make calculations on x and y and then I set them on "0", but aside that I have performance issues!
Any suggestions about how to make it load faster?
I'm using his spritesheet cause I can't draw.
Yeah I know, I make calculations on x and y and then I set them on "0", but aside that I have performance issues!
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
- zorg
- Party member
- Posts: 3470
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: Made With Love - Löve Logo Introduction (no lib)
I'm with raidho here actually; why not just have 3 separate images (or 3 sprites in a batch, i.e. one image), the whale, the blush stickers, the löve bubble, then use löve itself for fading/additional animation, with code?
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Who is online
Users browsing this forum: Bing [Bot] and 2 guests