Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Encounter["wavetimer"] = 12
- t = 0
- b = {}
- types = {}
- function Update()
- t = t + 1
- if t%15 == 0 then
- local type1 = CreateProjectile( 'green/arrows/arrow1' , 120 , 60 )
- local type2 = CreateProjectile( 'green/arrows/arrow1' , 120 , 0 )
- local type3 = CreateProjectile( 'green/arrows/arrow1' , 120 , -60 )
- local type4 = CreateProjectile( 'green/arrows/arrow1' , 120 , 30 )
- local type5 = CreateProjectile( 'green/arrows/arrow1' , 120 , -30 )
- local type6 = CreateProjectile( 'green/arrows/arrow1' , 120 , 15 )
- local type7 = CreateProjectile( 'green/arrows/arrow1' , 120 , -15 )
- local type8 = CreateProjectile( 'green/arrows/arrow1' , 120 , 45 )
- local type9 = CreateProjectile( 'green/arrows/arrow1' , 120 , -45 )
- table.insert(types,type1)
- table.insert(types,type2)
- table.insert(types,type3)
- table.insert(types,type4)
- table.insert(types,type5)
- table.insert(types,type6)
- table.insert(types,type7)
- table.insert(types,type8)
- table.insert(types,type9)
- local bullet = types[math.random(#types)]
- table.insert(b,bullet)
- end
- for i = 1 , #b do
- local bullet = b[i]
- if bullet.isactive then
- bullet.Move( -4 , 0 )
- Audio.PlaySound("ding")
- if bullet.x < -80 then
- bullet.Remove()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement