blank screen on android, help
Posted: Tue May 07, 2019 3:08 pm
Hello
This is my first post here. I made my first small LOVE2d game. When I run app on Android device or Android Simulator, screen is blank. Game is working itself, I can hear sounds. I can touch screen, and interact with user interface. The game is working without problems on Windows, MacOS, iOS simulator, iphone SE. Problem exist on either android simulator or real android phone. I did hello world program and its working on Android. Then I did program which display png graphics. And works fine.
I can send you whole code and can you examine? I have no idea where I have to look for error. The game is really short, has 284 lines. The main part is:
function love.update(dt)
love.graphics.setCanvas(canvas)
love.graphics.clear()
putImage(table, 0, 0)
drawGrid()
putImage(note,732,400)
--cut here
--cut here
love.graphics.setCanvas()
end
function love.draw(dt)
love.graphics.setColor(1, 1, 1, 1)
love.graphics.draw(canvas,0,0,0,love.graphics.getWidth()/1024,love.graphics.getHeight()/768)
end
This is my first post here. I made my first small LOVE2d game. When I run app on Android device or Android Simulator, screen is blank. Game is working itself, I can hear sounds. I can touch screen, and interact with user interface. The game is working without problems on Windows, MacOS, iOS simulator, iphone SE. Problem exist on either android simulator or real android phone. I did hello world program and its working on Android. Then I did program which display png graphics. And works fine.
I can send you whole code and can you examine? I have no idea where I have to look for error. The game is really short, has 284 lines. The main part is:
function love.update(dt)
love.graphics.setCanvas(canvas)
love.graphics.clear()
putImage(table, 0, 0)
drawGrid()
putImage(note,732,400)
--cut here
--cut here
love.graphics.setCanvas()
end
function love.draw(dt)
love.graphics.setColor(1, 1, 1, 1)
love.graphics.draw(canvas,0,0,0,love.graphics.getWidth()/1024,love.graphics.getHeight()/768)
end