Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. state = global.rain_start_state
  2. i = 0
  3. while i < map_width()
  4. {
  5. a = 0
  6. hit_ceiling = 0
  7. while a < map_height() and hit_ceiling = 0
  8. {
  9. if collision_line(i,a+state,i,a+state+20,Obstacle, true, true) == 1
  10. {
  11. hit_ceiling = 1
  12. }
  13. draw_line_width_color(i, a+state, i, a+state+10, 1, c_aqua, c_aqua)
  14. a += 20
  15. }
  16.  
  17. i += 20
  18. state += 10
  19.  
  20. if state == 20
  21. {
  22. state = 0
  23. }
  24. }
  25. if global.rain_counter == 16
  26. {
  27. global.rain_start_state += 10
  28. if global.rain_start_state == 20
  29. {
  30. global.rain_start_state = 0
  31. }
  32. global.rain_counter = 0
  33. }
  34. else
  35. {
  36. global.rain_counter += 1
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement