Hey guys! Just working on a new space shooter, and I made this while playing around. Kind of reminds me of light speed from Star Wars.
-- Space
-- Use this function to perform your initial setup
function setup()
space = image(WIDTH*2,HEIGHT*2)
setContext(space)
fill(224, 232, 234, 255)
for i = 1, 700 do
ellipse(math.random(WIDTH*2),math.random(HEIGHT*2),math.random(3,7))
end
setContext()
end
-- This function gets called once every frame
function draw()
-- This sets a dark background color
background(40, 40, 50)
-- This sets the line thickness
strokeWidth(5)
-- Do your drawing here
translate(WIDTH/2+math.random(-3,3),HEIGHT/2+math.random(-3,3))
for i = 1,30 do
rotate(ElapsedTime+i)
sprite(space,0,0)
end
end