Fixes, disabled the funny note script
This commit is contained in:
parent
b34203bf3c
commit
82c5ed4c69
@ -6,7 +6,7 @@ local lastChange = 0
|
||||
|
||||
local amp = 50
|
||||
|
||||
local enabled = true
|
||||
local enabled = false
|
||||
|
||||
function module.onCreate()
|
||||
lastChange = 0
|
||||
|
@ -285,7 +285,7 @@ local function state(songName, songDifficulty)
|
||||
if not playing then
|
||||
for index, module in next, modules do
|
||||
if module.onUpdate then
|
||||
module.onUpdate(dt)
|
||||
module.onUpdate(dt, 0)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -286,6 +286,10 @@ function module.drawUI()
|
||||
quad.flipped = true
|
||||
quad.offset.x = -quad.offset.x
|
||||
end
|
||||
if sprite.flipY and not quad.flippedY then
|
||||
quad.flippedY = true
|
||||
quad.offset.y = - quad.offset.y
|
||||
end
|
||||
|
||||
local cameraOffset = sprite.ui and module.myTypes.Vector2() or module.cameraPosition or module.myTypes.Vector2()
|
||||
|
||||
@ -300,6 +304,10 @@ function module.drawUI()
|
||||
quad.flipped = true
|
||||
quad.offset.x = -quad.offset.x
|
||||
end
|
||||
if rect.flipY and not quad.flippedY then
|
||||
quad.flippedY = true
|
||||
quad.offset.y = - quad.offset.y
|
||||
end
|
||||
|
||||
local cameraOffset = rect.ui and module.myTypes.Vector2() or module.cameraPosition or module.myTypes.Vector2()
|
||||
|
||||
|
@ -2,7 +2,7 @@ local myTypes = require("modules.types")
|
||||
local rollingBGTank
|
||||
local bgTankX = 200
|
||||
local bgTankY = 50
|
||||
local watchtower, audience1, audience2, audience3, audience4, audience5, audience6
|
||||
local watchtower, audience1, audience2, audience3, audience4, audience5, audience6, bgTankRotate
|
||||
|
||||
return {
|
||||
onCreate = function(song)
|
||||
@ -58,7 +58,7 @@ return {
|
||||
rollingBGTank:PlayAnimation("BG tank w lighting instance 1", 24, true)
|
||||
rollingBGTank.modifier = 0.5
|
||||
rollingBGTank.layer = -3
|
||||
rollingBGTank.flipX = true
|
||||
rollingBGTank.flipY = true
|
||||
|
||||
local tankGround = myTypes.Image("images/tank/tankGround.png")
|
||||
tankGround.position = myTypes.Vector2(-420, -150)
|
||||
@ -123,10 +123,10 @@ return {
|
||||
|
||||
--zero fucking idea what im doing
|
||||
onUpdate = function(dt, elapsed)
|
||||
bgTankX = math.cos(math.rad(elapsed / 1000)) * 200
|
||||
bgTankY = math.sin(math.rad(elapsed / 1000)) * 200
|
||||
bgTankRotate = elapsed / (1000 * 20)
|
||||
bgTankX = math.cos(math.rad(elapsed / 100)) * 500
|
||||
bgTankY = math.sin(math.rad(elapsed / 100)) * 500
|
||||
bgTankRotate = elapsed / 5000
|
||||
rollingBGTank.position = myTypes.Vector2(bgTankX, bgTankY)
|
||||
rollingBGTank.rotation = -bgTankRotate
|
||||
rollingBGTank.rotation = bgTankRotate --testing
|
||||
end
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user