I’m a noob to Solar2D. I just want to display a rectangle.
This is my only code in main.lua :
local bird = display.newRect(100,200,20,20)
I get this result from ZeroBrane Studio when I run it.
“attempt to index global ‘display’ (a nil value)”
but it works fine in Corona Simulator.
Why does it not run in ZeroBrane Studio?