Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- state = global.rain_start_state
- i = 0
- while i < map_width()
- {
- a = 0
- hit_ceiling = 0
- while a < map_height() and hit_ceiling = 0
- {
- if collision_line(i,a+state,i,a+state+20,Obstacle, true, true) == 1
- {
- hit_ceiling = 1
- }
- draw_line_width_color(i, a+state, i, a+state+10, 1, c_aqua, c_aqua)
- a += 20
- }
- i += 20
- state += 10
- if state == 20
- {
- state = 0
- }
- }
- if global.rain_counter == 16
- {
- global.rain_start_state += 10
- if global.rain_start_state == 20
- {
- global.rain_start_state = 0
- }
- global.rain_counter = 0
- }
- else
- {
- global.rain_counter += 1
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement