Hey guys,
I am a beginner at this stuff but I managed to create a small project with the help of @saturn031000. I would really like it if y’all would edit it, make it better, and then post it back. Thx
Here is the code:
--# Main
-- Bouncy Ball
supportedOrientations(LANDSCAPE_ANY)
-- Use this function to perform your initial setup
function setup()
FillColor=color(0, 103, 255, 255)
BackColor=color(13, 255, 0, 255)
StrokeColor=color(255, 0, 5, 255)
parameter.number("Mov",0,1024,Mov)
parameter.number("A",0,HEIGHT,A)
parameter.color("FillColor", FillColor)
parameter.color("BackColor", BackColor)
parameter.color("StrokeColor", StrokeColor)
displayMode(OVERLAY)
print("BUNGEE JUMPING!!!!")
V=7
Mov=WIDTH/2
A=HEIGHT/2
VA=10
end
-- This function gets called once every frame
function touched(touch)
if touch.state==ENDED then
V=-V
VA=-VA
end
end
function draw()
-- This sets a dark background color
background(BackColor)
fill(FillColor)
stroke(StrokeColor)
-- This sets the line thickness
-- FillColor=math.random(0, 255)
strokeWidth(5)
fontSize(100)
font("Copperplate-Bold")
text("Whee!", WIDTH/2, 700)
-- Do your drawing here
line(0,HEIGHT/2,Mov,A)
line(WIDTH,HEIGHT/2,Mov,A)
ellipse(Mov, A, 50)
-- sprite("Space Art:Asteroid Large", Mov, A)
Mov = Mov + V
A = A + VA
if A>HEIGHT-25 or A<25 then
VA=-VA
end
if Mov>WIDTH-25 or Mov<25 then
V=-V
end
end
Hope you like it
Thx
@sparrownor1