coronalabs / corona

Solar2D Game Engine main repository (ex Corona SDK)
https://solar2d.com/
MIT License
2.54k stars 273 forks source link

Game show a black screen #697

Closed PedroLucas201441 closed 7 months ago

PedroLucas201441 commented 7 months ago

Describe the bug When i try run my game its show a black screen and in the simulator show the code what im want Preview: image

Logs: 08:21:28.719 WARNING: Failed to find image '/icon.png' 08:21:28.719 ERROR: Runtime error 08:21:28.719 ?:0: attempt to index a nil value 08:21:28.719 stack traceback: 08:21:28.719 ?: in main chunk 08:21:40.223 Application closed with exit code: 0

Result: image

To Reproduce Steps to reproduce the behavior: try run this code

local myicon = display.newImageRect( "/icon.png",57, 57 ) myicon.x = display.contentCenterX myicon.y = display.contentCenterY

Target platform and where build was made:

Additional context Add any other context about the problem here.

whole test project or build.settings Please attach project your issue can be reproduced on to speed up debugging