Search found 6 matches

by Happy5354
Wed Feb 11, 2015 5:53 am
Forum: Support and Development
Topic: Recenter if the screen size isn't the same ?
Replies: 1
Views: 1385

Recenter if the screen size isn't the same ?

Hey, I wonder how to recenter or redraw all the elements of the main.lua file, because right now my menu is drawn just one time so if I resize the window the buttons won't be in the middle again! How could i do that ? I tried with this: if ScreenW ~= love.graphics.getWidth() or ScreenH ~= love.graph...
by Happy5354
Wed Feb 11, 2015 2:42 am
Forum: Support and Development
Topic: Get Resolutions does work ?
Replies: 2
Views: 1682

Re: Get Resolutions does work ?

Yes it works!
Thanks very much !
by Happy5354
Sun Feb 08, 2015 7:59 pm
Forum: Support and Development
Topic: Get Resolutions does work ?
Replies: 2
Views: 1682

Get Resolutions does work ?

Hey, I check on Google how I can check all the resolutions and I tried this:

Code: Select all

modes = love.window.getFullscreenModes(1)
print(modes[1])
Then it just prints: "table: 0x24cb0b70" multiple times with random numbers each times.

Thanks for the help!
by Happy5354
Fri Jan 23, 2015 2:39 am
Forum: General
Topic: Need help with drawing an image!
Replies: 5
Views: 3385

Re: Need help with drawing an image!

Yeah, I checked on Google, and I guy wrote this, I forgot to remove it...
by Happy5354
Thu Jan 22, 2015 10:58 pm
Forum: General
Topic: Need help with drawing an image!
Replies: 5
Views: 3385

Re: Need help with drawing an image!

When I rename the .zip into .love and run it, I get: ' main.lua:2: Could not open file bg.png. Cannot read file '

PS: I tried it at school, and it works, and uploaded it on mega and opened it at home, worked too... But I still want to know why.

By the way I attached my .love file
by Happy5354
Thu Jan 22, 2015 3:45 am
Forum: General
Topic: Need help with drawing an image!
Replies: 5
Views: 3385

Need help with drawing an image!

Hello... I'm trying to draw a simple image, I read the filesystem page on the wiki and trying to open an image and draw it but apparently, I can't... Here's my code to open and draw the image: function love.load() picture = love.graphics.newImage("bg.jpg") end function love.update( dt ) en...