-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.lua
32 lines (24 loc) · 865 Bytes
/
main.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
-- SETUP ---------------------------------------------------------------------------------------------------------------
display.setDefault("background", 1)
------------------------------------------------------------------------------------------------------------------------
-- RUN GAME --
------------------------------------------------------------------------------------------------------------------------
require("Breakpoints")
local circle = display.newCircle(100, 100, 10)
circle:setFillColor(1, 0, 0)
transition.loop(circle, {
time = 1000,
x = 200,
iterations = 0,
transition = easing.inOutSine,
})
local c = 0
Runtime:addEventListener("enterFrame", function()
c = c + 1
if c % 200 == 0 then
breakpoint(1, function()
print(circle.y)
return true
end)
end
end, 0)