Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- timer = 0
- Arena.Resize(250,130)
- bluebones = {}
- regularbones = {}
- Encounter["wavetimer"] = 7.0
- blue = require "Libraries/bluesoul"
- blue.Initialize()
- function Update()
- blue.Update()
- timer = timer + 1
- if timer == 30 then
- local bluebone1 = CreateProjectile('attacks/bones/large', 125, -60)
- bluebone1.sprite.color = {0,255,255}
- table.insert(bluebones,bluebone1)
- end
- if timer == 60 then
- local regularbone1 = CreateProjectile('attacks/bones/normal', 125, -30)
- table.insert(regularbones,regularbone1)
- end
- if timer == 90 then
- local bluebone2 = CreateProjectile('attacks/bones/large', 125, -60)
- bluebone2.sprite.color = {0,255,255}
- table.insert(bluebones,bluebone2)
- end
- if timer == 120 then
- local regularbone2 = CreateProjectile('attacks/bones/normal', 125, -30)
- table.insert(regularbones,regularbone2)
- end
- if timer == 150 then
- local bluebone3 = CreateProjectile('attacks/bones/large', 125, -60)
- bluebone3.sprite.color = {0,255,255}
- table.insert(bluebones,bluebone3)
- end
- if timer == 180 then
- local regularbone3 = CreateProjectile('attacks/bones/normal', 125, -30)
- table.insert(regularbones,regularbone3)
- end
- for i=1, #bluebones do
- local bluebone1 = bluebones[i]
- local bluebone2 = bluebones[i]
- local bluebone3 = bluebones[i]
- if bluebones[i].isactive then
- bluebones[i].Move(-3,0)
- if bluebones[i].x <= -125 then
- bluebones[i].Remove()
- end
- end
- function OnHit(bluebone1) if Player.isMoving then Player.Hurt(1,0.01) end end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement