function love.draw()
love.graphics.print('Hello World!', 400, 300)
end
Now I have some questions, I'll try to edit this thread as I get more
1, Can you have a flash movie play in that screen? ~ On some games, theres alittle Nvidia splash screen thats played or an ATI 1, maybe an intel or an AMD splash screen might play too, then they tend to goto a menu screen, what format are these 'movies' made in?
2, How do I change that game window in a fullscreen window? ~ Solved
3, If I have my conf.lua file set to fullscreen = true, how do I position the 'hello world' text, down 10% from the top and 10% in from the left, or down 10% from the top and centered?
Regards
Last edited by RussHubs on Thu Apr 07, 2011 2:17 pm, edited 3 times in total.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
RussHubs wrote:On some games, theres alittle Nvidia splash screen thats played or an ATI 1, maybe an intel or an AMD splash screen might play too, then they tend to goto a menu screen, what format are these 'movies' made in?
No, idea. But it doesn't matter, since Löve can't play any video formats whatsoever. That said, you can fake it by using images and fade them in and out or whatever it is you want to do.
Thanks fella, I'm looking through it now, but it's still alittle complex for me, would also like to ask a question and get an answer kind of thing lol.
You never know someone else might explain things in a way even I can understand.
RussHubs wrote:On some games, theres alittle Nvidia splash screen thats played or an ATI 1, maybe an intel or an AMD splash screen might play too, then they tend to goto a menu screen, what format are these 'movies' made in?
No, idea. But it doesn't matter, since Löve can't play any video formats whatsoever. That said, you can fake it by using images and fade them in and out or whatever it is you want to do.
Ok using the code in the OP, how do I display pic1.png then pic2.png for 5 seconds each, say, they are in my 'Game' folder in the GFX/Splash folder
function love.load()
img = love.graphics.newImage("GFX/Splash/pic1.png")
img2 = love.graphics.newImage("GFX/Splash/pic2.png")
timecount = 0
end
function love.update(dt)
timecount = timecount + dt
end
function love.load()
img = love.graphics.newImage("GFX/Splash/pic1.png")
img2 = love.graphics.newImage("GFX/Splash/pic2.png")
timecount = 0
end
function love.update(dt)
timecount = timecount + dt
end
function love.draw()
if timecount < 5 then
love.graphics.draw(img, 0, 0)
else
love.graphics.draw(img2, 0, 0)
end
end
Lastly you may want to do something clever to make the images fade. Keep in mind that there isn't one single way to do all this, there are many ways.