Hello! I followed this video on Youtube to make a simple Hello World code, and typed exactly what was in the video, which was
function love.load()
end
function love.draw()
love.graphics.print("Hello World")
end
In the same video, the code seemed to work, while on my computer, it only shows a black screen.
Here is a link to the video: [youtube]https://www.youtube.com/watch?v=FUiz1kL0QtI[/youtube]
I am not sure what is missing, as I am a complete beginner to this, and plan to learn in order to develop 3DS homebrew, using the LovePotion framework.
Thank you in advance!
Black Screen when Dropping .love on Love2D
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 4
- Joined: Thu Aug 09, 2018 5:22 pm
Black Screen when Dropping .love on Love2D
Last edited by DrawnOutBeats on Sat Aug 11, 2018 2:06 am, edited 1 time in total.
Re: Black Screen when Dropping .love on Love2D
Are you sure that this code is written in a file called main.lua, and that file is in the root of the .love you dropped?
-
- Prole
- Posts: 4
- Joined: Thu Aug 09, 2018 5:22 pm
Re: Black Screen when Dropping .love on Love2D
Does the no game screen work for you?
I suspect you're having this issue: viewtopic.php?t=85309
Just in case, try a rectangle. Instead of the love.graphics.print line, try love.graphics.rectangle("fill", 10, 10, 100, 100)
Is your graphics card an old Radeon? If so, it's apparently a problem in the driver.
I suspect you're having this issue: viewtopic.php?t=85309
Just in case, try a rectangle. Instead of the love.graphics.print line, try love.graphics.rectangle("fill", 10, 10, 100, 100)
Is your graphics card an old Radeon? If so, it's apparently a problem in the driver.
-
- Prole
- Posts: 4
- Joined: Thu Aug 09, 2018 5:22 pm
Re: Black Screen when Dropping .love on Love2D
....Yup. its an old Radeon. Is there anything I can do to fix this issue? Or am I gonna have to take apart my laptop to replace the GPU?
Re: Black Screen when Dropping .love on Love2D
Looks like the rectangle did work? Maybe look for newer drivers, then.
-
- Prole
- Posts: 4
- Joined: Thu Aug 09, 2018 5:22 pm
Re: Black Screen when Dropping .love on Love2D
I looked into that, and apparently I have the newest driver. I think my best plan of action is to run the program on my 3ds each time i add text somewhere, using the Lovepotion program, in order to debug it.
Re: Black Screen when Dropping .love on Love2D
If your goal is to have just some debugging info maybe you could use https://love2d.org/wiki/love.graphics.newImageFont ? I believe it'd work, although not 100% sure.
Who is online
Users browsing this forum: Google [Bot] and 2 guests