Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- blanc = Color.new(255,255,255)
- x_ligne = 100
- y_ligne = 125
- compteur = 0
- while true do
- screen:clear()
- screen:drawLine(65,100, x_ligne, y_ligne, blanc )
- if compteur == 0 then
- y_ligne = y_ligne-1
- end
- if y_ligne < 60 then compteur = 1 end
- if compteur == 1 then
- y_ligne = y_ligne+1
- end
- if y_ligne > 125 then compteur = 0 end
- screen:flip()
- screen.waitVblankStart()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement