Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "Libraries/CYK/Sandboxing/WaveBegin" -- NEEDED FOR CYK TO RUN PROPERLY
- Encounter["wavetimer"] = 10
- gblaster = require "Libraries/gaster_blasters"
- blue = require "Libraries/bluesoul"
- spawntimer = 0
- blastertable = {}
- blue.Initialize()
- blue.Dir("down")
- platforms = {}
- platform1 = CreateProjectile("platforms1_4", 50,0)
- platform2 = CreateProjectile("platforms1_4", -50,0)
- platform1.SetVar("safe",true)
- platform2.SetVar("safe",true)
- platform1.SetVar("speed",1)
- platform2.SetVar("speed",1)
- platform1.SetVar("vely",0)
- platform2.SetVar("vely",0)
- platform1["noGraze"] = true
- platform2["noGraze"] = true
- table.insert(platforms, platform1)
- table.insert(platforms, platform2)
- blue.enableFakePlayer = true
- blue.platformhitbox = -3
- function Update()
- spawntimer = spawntimer + 1
- blue.Update()
- blue.CheckIfGrounded()
- blue.platforms = platforms
- if spawntimer % 60 == 0 then
- level = math.random(100)
- if level > 50 then
- local blaster = gblaster.New(600,600,520,230,270,0)
- else
- local blaster = gblaster.New(600,600,520,305,270,0)
- end
- table.insert(blastertable, blaster)
- end
- gblaster.Update()
- end
- function OnHit(bullet)
- safe = bullet.GetVar('safe')
- if safe == nil then
- return "150%"
- end
- end
- require "Libraries/CYK/Sandboxing/WaveEnd" -- NEEDED FOR CYK TO RUN PROPERLY
Add Comment
Please, Sign In to add comment