Advertisement
otorp2

while loop ball

Dec 27th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. extends Sprite
  2.  
  3. extends Sprite
  4.  
  5. var circlex = 0
  6. var scr_width = 400
  7. var scr_height = 400
  8. func _ready():
  9. set_process(true)
  10. pass
  11.  
  12. func _process(delta):
  13. update()
  14. pass
  15.  
  16.  
  17. func _draw():
  18. circlex = 0
  19. while circlex < scr_width:
  20. draw_circle(Vector2(circlex,scr_height/2),5,Color(255,0,0))
  21. circlex = circlex + 20
  22. print(circlex)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement