Skip to content

Instantly share code, notes, and snippets.

View msalmanrafadhlih's full-sized avatar
🎯
Focusing

Tquilla. msalmanrafadhlih

🎯
Focusing
  • Bogor, Indonesia
  • 19:03 (UTC -12:00)
View GitHub Profile
local states = {}
local timer = nil
local DVD_W, DVD_H = 300, 300
-- dvd
local function bounce(s)
s.x = s.x + s.vx
s.y = s.y + s.vy
if s.x <= s.mx or s.x + s.w >= s.mx + s.mw then