Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Balls Example
70 bytes added
,
04:35, 27 August 2013
even better now.
Line 59:
Line 59:
txt2 = "not moving anything"
txt2 = "not moving anything"
for i,ball in ipairs(ballsTable) do
for i,ball in ipairs(ballsTable) do
+
+
ball.isActive = false
+
+
cursor.set("pointer")
+
if math.abs(ball.x+ball.r/2-x) <= ball.r/1.8 and math.abs(ball.y+ball.r/2-y) <= ball.r/1.8 then
if math.abs(ball.x+ball.r/2-x) <= ball.r/1.8 and math.abs(ball.y+ball.r/2-y) <= ball.r/1.8 then
ball.isActive = true
ball.isActive = true
+
cursor.set("hand pointer")
+
trackedBall = ball
trackedBall = ball
−
else
+
break
−
ball.isActive = false
end
end
end
end
Adriweb
Bureaucrats
,
Administrators
935
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version