Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Applies physics to a falling object.
-- main.lua
local physics = require("physics")
physics.start()
local ball = display.newCircle(display.contentCenterX, 50, 30)
physics.addBody(ball, "dynamic", {radius=30, bounce=0.8})
local ground = display.newRect(display.contentCenterX, display.contentHeight - 50, display.contentWidth, 50)
physics.addBody(ground, "static")Solar2D (formerly Corona SDK) is a free, open-source, cross-platform 2D game and app development framework using Lua scripting. It focuses on rapid development and performance for mobile, desktop, and HTML5 applications.
Origin & Creator
Originally developed as Corona SDK by Ansca Mobile in 2009, it was later renamed Solar2D and made open-source in 2020.
Industrial Note
Solar2D is popular for rapid 2D mobile development, small-scale games, casual apps, and educational tools where lightweight Lua scripting and cross-platform deployment are valued.