Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. blanc = Color.new(255,255,255)
  2. x_ligne = 100
  3. y_ligne = 125
  4. compteur = 0
  5.  
  6. while true do
  7.      screen:clear()
  8.      
  9.      screen:drawLine(65,100, x_ligne, y_ligne, blanc )
  10.      
  11.      if compteur == 0  then
  12.          y_ligne = y_ligne-1
  13.      end
  14.      if y_ligne < 60 then compteur = 1 end
  15.      if compteur == 1  then
  16.          y_ligne = y_ligne+1
  17.      end
  18.      if y_ligne > 125 then compteur = 0 end
  19.      
  20.      screen:flip()
  21.      screen.waitVblankStart()
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement