--Touchy Touch
-- Use this function to perform your initial setup
function setup()
print("Hello World!")
Sprites = { }
displayMode(FULLSCREEN_NO_BUTTONS)
end
-- This function gets called once every frame
function draw()
local sprites = Sprites
-- This sets a dark background color
background(40, 40, 50)
-- This sets the line thickness
strokeWidth(5)
-- Do your drawing here
for i,v in ipairs(sprites) do
if v.Time then
if v.Time <= 1 then
table.remove(Sprites, i)
else
sprite(v.Image, v.X, v.Y)
v.Time = v.Time - 1
end
else
sprite(v.Image, v.X, v.Y)
end
end
end
function touched(touch)
-- if touch.state == BEGAN then
table.insert(Sprites, {
Image = "Documents:Hand";
X = touch.x;
Y = touch.y;
Time = 60
}
)
-- end
end
I plucked an image of a hand off of the interwebs. The problem is, it’s very high Rez. Codes has trouble rendering about 500+ of it. (It’s a test shhhh.) Is there anyway I could lower the quality of a Sprite? Thanks.