Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- startcounting = 0
- require "animation"
- if GetGlobal("DebugSwitcher") == 0 then
- makewalls = require "wallmaker"
- elseif GetGlobal("DebugSwitcher") == 1 then
- makewalls = require "wallmakerdebug"
- end
- local ink = CreateProjectile('Ink/1', 1450, 80)
- ink.sprite.SetAnimation({"Ink/2", "Ink/3", "Ink/3", "Ink/4", "Ink/3", "Ink/2", "Ink/1"}, 0.1)
- inks = {}
- bgs = {}
- movethings = require "movemaker"
- gonnadebug = require "debugstuff"
- roomthings = require "roomstuff"
- npcthings = require "npcmaker"
- Audio.LoadFile("void")
- room_size_x = 2330 -- Width of room image.
- room_size_y = 960 -- Height of room image.
- playeroffsetx = -159 -- Changes player's starting position.
- playeroffsety = -215
- roomthings.MakeARoom('Void', room_size_x, room_size_y, playeroffsetx, playeroffsety)
- gonnadebug.MakeAGrid()
- -------------------------------
- -----Making All The Walls!-----
- -------------------------------
- makewalls.PlaceLeftWall(345, 238, 4)
- makewalls.PlaceRightWall(1985, 238, 4)
- makewalls.PlaceTopWall(341, 558, 52)
- makewalls.PlaceBottomWall(343, 323, 52)
- makewalls.PlaceTLCWall(341, 478, 2)
- makewalls.PlaceBLCWall(341, 408, 2)
- -------------------------------
- ---------End Of Walls!---------
- -------------------------------
- function Update()
- CheckStuff()
- ink.sprite.SendToTop()
- ------------------------
- -------Your Stuff-------
- ------------------------
- table.insert(inks, ink)
- table.insert(bgs, bg)
- if movethings.PlayerIsAt(1650, 2000, -1000, 1000) == true then -- (lower x, upper x, lower y, upper y)
- movex_left = 0
- movex_right = 0
- movey_up = 0
- movey_down = 0
- SetGlobal("Endtro", 1)
- startcounting = startcounting + 1
- end
- if pressing_up > 0 and pressing_left > 0 then
- ink.Move(movex_left, movey_up)
- elseif pressing_up > 0 and pressing_right > 0 then
- ink.Move(movex_right, movey_up)
- elseif pressing_down > 0 and pressing_left > 0 then
- ink.Move(movex_left, movey_down)
- elseif pressing_down > 0 and pressing_right > 0 then
- ink.Move(movex_right, movey_down)
- elseif pressing_down > 0 then
- ink.Move(0, movey_down)
- elseif pressing_up > 0 then
- ink.Move(0, movey_up)
- elseif pressing_left > 0 then
- ink.Move(movex_left, 0)
- elseif pressing_right > 0 then
- ink.Move(movex_right, 0)
- end
- if startcounting == 30 then
- Audio.Volume(0.65)
- elseif startcounting == 45 then
- Audio.Volume(0.60)
- elseif startcounting == 60 then
- Audio.Volume(0.55)
- elseif startcounting == 75 then
- Audio.Volume(0.50)
- elseif startcounting == 90 then
- Audio.Volume(0.45)
- elseif startcounting == 105 then
- Audio.Volume(0.40)
- elseif startcounting == 120 then
- Audio.Volume(0.35)
- elseif startcounting == 135 then
- Audio.Volume(0.30)
- elseif startcounting == 150 then
- Audio.Volume(0.25)
- elseif startcounting == 165 then
- Audio.Volume(0.20)
- elseif startcounting == 180 then
- Audio.Volume(0.15)
- elseif startcounting == 195 then
- Audio.Volume(0.10)
- elseif startcounting == 210 then
- Audio.Volume(0.05)
- elseif startcounting == 225 then
- Audio.Volume(0)
- elseif startcounting == 300 then
- local bg = CreateProjectile('transition', Player.x, Player.y)
- elseif startcounting == 330 then
- bg.sprite.set('bg')
- elseif startcounting == 360 then
- bg.sprite.set('transition')
- end
- ------------------------
- ----End Of Your Stuff---
- ------------------------
- MoveStuff()
- end
- function OnHit()
- end
- function CheckStuff()
- gonnadebug.DoTheDebug()
- movethings.SetMovements()
- makewalls.CheckWall()
- end
- function MoveStuff()
- makewalls.MoveWall()
- movethings.MoveAllTheThings(room)
- gonnadebug.MoveTheGrid()
- gonnadebug.SwitchDebugMode()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement