Skip to content

Commit

Permalink
ALOT WOAH LOL
Browse files Browse the repository at this point in the history
  • Loading branch information
nebulazorua committed Jun 8, 2021
1 parent d1775d1 commit f32fd62
Show file tree
Hide file tree
Showing 29 changed files with 911 additions and 193 deletions.
1 change: 1 addition & 0 deletions Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
<!--<haxedef name="FLX_NO_SOUND_SYSTEM" />-->

<!--Disable the Flixel core focus lost screen-->

<haxedef name="FLX_NO_FOCUS_LOST_SCREEN" />

<!--Disable the Flixel core debugger. Automatically gets set whenever you compile in release mode!-->
Expand Down
268 changes: 220 additions & 48 deletions assets/preload/data/retrorelease/modchart.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
local function require(module)
local file = debug.getinfo(1).source
local directory = file:sub(2,#file-12)
-- TODO: _FILEDIRECTORY
return require(directory .. module)
local file = debug.getinfo(1).source
local directory = file:sub(2,#file-12)
-- TODO: _FILEDIRECTORY
return getfenv().require(directory .. module)
end
local function newSpriteLG(graphic,x,y,behind)
local sprite = newSprite(x,y,behind)
sprite:loadGraphic(graphic)
return sprite
end

require("background").create()
require("background")()
local tween = require("tween")

dad:changeCharacter("garcelloghosty") -- CACHE IT
dad:changeCharacter("garcellodead")

local tightSteps={262,902,1862}
local strums = {
leftPlrNote,
Expand All @@ -31,32 +39,29 @@ function isStepTight(step)
return false
end


local whitebg = newSprite('WhiteBG',200,500,true)
local blackbg = newSprite('BlackFade',200,500,true)
local whitefade = newSprite('WhiteBG',200,500,false)
local blackfade = newSprite('BlackFade',200,500, false)
local fading = newSprite('Fading',40,443,true)
local smoke = newSprite('smoke',20,443,false)

local whitebg = newSpriteLG('WhiteBG',200,500,true)
local blackbg = newSpriteLG('BlackFade',200,500,true)
local whitefade = newSpriteLG('WhiteBG',200,500,false)
local blackfade = newSpriteLG('BlackFade',200,500, false)
local fullSmoke = newSpriteLG('smoke',20,443,false)

smoke2.alpha = 0

whitebg.alpha = 0
whitebg:setScale(4)


blackbg.alpha = 1
blackbg:setScale(4)

fading.alpha = 0
fading:setScale(2)

blackfade.alpha = 0
blackfade:setScale(4)

whitefade.alpha = 0
whitefade:setScale(4)

smoke.alpha = 0
smoke:setScale(2)
fullSmoke.alpha = 0
fullSmoke:setScale(2)

bf.alpha = 0
gf.alpha = 0
Expand All @@ -74,6 +79,7 @@ local DAFINALE = false;
local garcellomilfuwu = false;

local tweens = {}
local fadeCounter=0;

function update(elapsed)
local currentBeat = (songPosition / 1000)*(bpm/60)
Expand All @@ -82,32 +88,50 @@ function update(elapsed)
strums[i].alpha=0
end
end
for i = 1,#tweens do
tweens[i]:update(elapsed)
local tweening={}
for i = #tweens,1,-1 do
local done = tweens[i]:update(elapsed);
if(done)then
table.remove(tweens,i)
end
end
if(zoom)then
gameCam.zoom=2;
end
smoke.x = smoke.x+3*math.sin(currentBeat)
fullSmoke.x = fullSmoke.x+3*math.sin(currentBeat)

for i=1,#strums do
if(swayingsmall or swayingmed)then
strums[i].xOffset = 32*math.sin((currentBeat + i))
strums[i].yOffset = 10*math.cos((currentBeat + i))+10
end
if(swayingbig)then
strums[i].xOffset = 32*math.sin((currentBeat + i))
strums[i].yOffset = 28*math.cos((currentBeat + i))+10
end
if(swayingepic)then
strums[i].xOffset = 32*math.sin((currentBeat + i*.5)*math.pi)
strums[i].yOffset = 28*math.cos((currentBeat + i*.5)*math.pi)+10
if(swayingsmall or swayingmed or swayingbig or swayingepic)then
for i=1,#strums do
if(swayingsmall)then
strums[i].xOffset = 32*math.sin(currentBeat)
strums[i].yOffset = 10*math.cos(currentBeat)+10
end
if(swayingmed)then
strums[i].xOffset = 32*math.sin((currentBeat + i))
strums[i].yOffset = 10*math.cos((currentBeat + i))+10
end
if(swayingbig)then
strums[i].xOffset = 32*math.sin((currentBeat + i))
strums[i].yOffset = 28*math.cos((currentBeat + i))+10
end
if(swayingepic)then
strums[i].xOffset = 32*math.sin((currentBeat + i*.5)*math.pi)
strums[i].yOffset = 28*math.cos((currentBeat + i*.5)*math.pi)+10
end
end
end

if(DAFINALE)then
HUDCam.angle = 5 * math.cos(currentBeat)
end
if(curStep>=2390)then
fadeCounter=fadeCounter+elapsed
end
if(curStep>=2390 and fadeCounter>=0.1)then
fadeCounter=0;
dad.alpha=dad.alpha-0.05;
iconP2.alpha=iconP2.alpha-0.05;
end
end

function beatHit()
Expand All @@ -123,28 +147,15 @@ function dadNoteHit()
end

function stepHit(step)
--[[
if(curStep == 2176)
{
remove(dad);
dad = new Character(dad.x, dad.y, 'garcelloghosty');
add(dad);
}
if(curStep == 2392)
{
dad.animation.play('coolguy');
}
]]
if(isStepTight(step))then
lastTightMan=step;
dad.disabledDance=true;
dad:playAnim"tightass"
elseif(step>=lastTightMan+20)then
elseif(step==lastTightMan+10)then
dad.disabledDance=false;
end
if(step==16)then
hide=false
hideStrums=false
table.insert(tweens,tween.new(0.6,gf,{alpha=1},'linear'))
HUDCam.y = 0
HUDCam.x = 0
Expand All @@ -167,8 +178,169 @@ function stepHit(step)
if(step==112)then
table.insert(tweens,tween.new(2,dad,{y=100},'linear'))
table.insert(tweens,tween.new(0.6,blackbg,{alpha=0},'outCirc'))
table.insert(tweens,tween.new(0.6,smoke2,{alpha=1},'inCirc'))
end
if(step==144)then
garcellomilfuwu=false;
end
if(step == 262)then
table.insert(tweens,tween.new(0.01,blackbg,{alpha=1},'inCirc'))
table.insert(tweens,tween.new(0.01,smoke2,{alpha=0},'outCirc'))
table.insert(tweens,tween.new(0.01,whitefade,{alpha=1},'inCirc'))
zoom = true
for i=5,8 do
table.insert(tweens,tween.new(0.2,strums[i],{alpha=0},'outCirc'))
end
end
if(step==263)then
table.insert(tweens,tween.new(0.2,whitefade,{alpha=0},'outCirc'))
end
if(step==272)then
zoom=false;
garcellomilfuwu=true;
table.insert(tweens,tween.new(0.01,blackbg,{alpha=0},'outCirc'))
table.insert(tweens,tween.new(0.01,smoke2,{alpha=1},'inCirc'))
table.insert(tweens,tween.new(0.01,whitefade,{alpha=1},'inCirc'))
swayingsmall=true;
for i=1,#strums do
table.insert(tweens,tween.new(0.01,strums[i],{alpha=1},'inCirc'))
end
end
if(step==273)then
table.insert(tweens,tween.new(0.7,whitefade,{alpha=0},'outCirc'))
end
if(step==528 or step==656)then
garcellomilfuwu=not garcellomilfuwu;
end
if(step==902)then
table.insert(tweens,tween.new(0.1,blackbg,{alpha=1},'inCirc'))
table.insert(tweens,tween.new(0.1,smoke2,{alpha=0},'outCirc'))
garcellomilfuwu=false;
for i=1,#strums do
table.insert(tweens,tween.new(0.1,strums[i],{alpha=0},'outCirc'))
end
end
if(step==912)then
garcellomilfuwu=true
swayingsmall=false
swayingmed=true;
table.insert(tweens,tween.new(0.01,blackbg,{alpha=0},'outCirc'))
table.insert(tweens,tween.new(0.01,smoke2,{alpha=1},'inCirc'))
table.insert(tweens,tween.new(0.01,whitefade,{alpha=1},'inCirc'))
for i=1,#strums do
table.insert(tweens,tween.new(0.01,strums[i],{alpha=1},'inCirc'))
end
end
if(step==913)then
table.insert(tweens,tween.new(0.2,whitefade,{alpha=0},'outCirc'))
end
if(step==1184)then
garcellomilfuwu=false
end
if(step==1200)then
table.insert(tweens,tween.new(0.6,blackfade,{alpha=1},'inCirc'))
table.insert(tweens,tween.new(0.6,dad,{alpha=0},'outCirc'))
for i=1,#strums do
table.insert(tweens,tween.new(0.5,strums[i],{alpha=0},'outCirc'))
end
end
if(step==1216)then
table.insert(tweens,tween.new(0.01,bf,{alpha=0},'outCirc'))
table.insert(tweens,tween.new(0.01,gf,{alpha=0},'outCirc'))
table.insert(tweens,tween.new(0.01,blackbg,{alpha=1},'inCirc'))
zoom=true
end
if(step==1228)then
table.insert(tweens,tween.new(0.01,blackfade,{alpha=0},'outCirc'))
table.insert(tweens,tween.new(0.01,dad,{alpha=1},'inCirc'))
for i=1,4 do
table.insert(tweens,tween.new(0.01,strums[i],{alpha=1},'inCirc'))
end
end
if(step==1232)then
garcellomilfuwu=true
swayingmedium=false;
swayingbig=true;
table.insert(tweens,tween.new(0.01,blackbg,{alpha=0},'outCirc'))
table.insert(tweens,tween.new(0.01,bf,{alpha=1},'inCirc'))
table.insert(tweens,tween.new(0.01,gf,{alpha=1},'inCirc'))
table.insert(tweens,tween.new(0.01,whitefade,{alpha=1},'inCirc'))
table.insert(tweens,tween.new(0.01,fullSmoke,{alpha=1},'inCirc'))
for i=5,8 do
table.insert(tweens,tween.new(0.01,strums[i],{alpha=1},'inCirc'))
end
zoom=false
end
if(step==1233)then
table.insert(tweens,tween.new(0.4,whitefade,{alpha=0},'outCirc'))
end
if(step==1488 or step==1616)then
garcellomilfuwu = not garcellomilfuwu
end
if(step==1862)then
table.insert(tweens,tween.new(0.1,fullSmoke,{alpha=0},'outCirc'))
table.insert(tweens,tween.new(0.1,smoke2,{alpha=0},'outCirc'))
table.insert(tweens,tween.new(0.1,blackbg,{alpha=1},'inCirc'))
garcellomilfuwu=false
for i=1,#strums do
table.insert(tweens,tween.new(0.01,strums[i],{alpha=0},'outCirc'))
end
end
if(step==1872)then
table.insert(tweens,tween.new(0.01,blackbg,{alpha=0},'outCirc'))
table.insert(tweens,tween.new(0.01,whitefade,{alpha=1},'inCirc'))
table.insert(tweens,tween.new(0.01,fullSmoke,{alpha=1},'inCirc'))
table.insert(tweens,tween.new(0.01,smoke2,{alpha=1},'inCirc'))
garcellomilfuwu=true
swayingsmall=false
swayingmed=false
swayingbig=false
swayingepic=true

for i=1,#strums do
table.insert(tweens,tween.new(0.01,strums[i],{alpha=1},'inCirc'))
end
end
if(step==1873)then
table.insert(tweens,tween.new(0.4,whitefade,{alpha=0},'outCirc'))
end
if(step==2016)then
DAFINALE=true
end
if(step==2144)then
DAFINALE=false
table.insert(tweens,tween.new(1,HUDCam,{angle=0},'outQuad'))
swayingepic=false
garcellomilfuwu=false;
table.insert(tweens,tween.new(7,smoke2,{alpha=0},'outCirc'))
table.insert(tweens,tween.new(2,fullSmoke,{alpha=0},'outCirc'))
for i=1,#strums do
table.insert(tweens,tween.new(1,strums[i],{xOffset=0,yOffset=0},'outQuad'))
end
end
if(step==2160)then
table.insert(tweens,tween.new(7,fadingAlley,{alpha=1},'inCirc'))
table.insert(tweens,tween.new(7,fadingBg,{alpha=1},'inCirc'))
table.insert(tweens,tween.new(7,smoke,{alpha=0},'outCirc'))
table.insert(tweens,tween.new(7,smoke2,{alpha=0},'outCirc'))
end
if(step==2176)then
dad:changeCharacter"garcelloghosty"
iconP2:playAnim("garcelloghosty");
end
if(step==2392)then
dad.disabledDance=true;
dad:playAnim("farewell",true)
print("goodbye")
table.insert(tweens,tween.new(1.5,leftDadNote,{xOffset=-100,yOffset=178,angle=-60,alpha=0},'linear'))
table.insert(tweens,tween.new(1.5,downDadNote,{yOffset=212,alpha=0},'linear'))
table.insert(tweens,tween.new(1.5,upDadNote,{xOffset=50,yOffset=310,angle=30,alpha=0},'linear'))
table.insert(tweens,tween.new(1.5,rightDadNote,{xOffset=100,yOffset=482,angle=60,alpha=0},'linear'))
end
if(step==2432)then
table.insert(tweens,tween.new(2,blackfade,{alpha=1},'inCirc'))
for i = 1,4 do
table.insert(tweens,tween.new(2,strums[i],{alpha=0},'outCirc'))
end
end
end
Binary file added assets/preload/images/arrows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/preload/images/arrows.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<TextureAtlas imagePath="arrows.png">
<!-- Created with Adobe Animate version 21.0.5.40714 -->
<!-- http://www.adobe.com/products/animate.html -->
<SubTexture name="arrow left0000" x="0" y="0" width="48" height="85"/>
<SubTexture name="arrow push left0000" x="58" y="0" width="42" height="75"/>
<SubTexture name="arrow push right0000" x="110" y="0" width="41" height="74"/>
<SubTexture name="arrow right0000" x="161" y="0" width="47" height="85"/>
</TextureAtlas>
Binary file added assets/preload/images/checkbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions assets/preload/images/checkbox.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<TextureAtlas imagePath="confirm.png">
<!-- Created with Adobe Animate version 18.0.1.115 -->
<!-- http://www.adobe.com/products/animate.html -->
<SubTexture name="confirm0000" x="0" y="0" width="157" height="157" frameX="0" frameY="0" frameWidth="168" frameHeight="157"/>
<SubTexture name="confirm0001" x="0" y="0" width="157" height="157" frameX="0" frameY="0" frameWidth="168" frameHeight="157"/>
<SubTexture name="confirm0002" x="157" y="0" width="157" height="157" frameX="0" frameY="0" frameWidth="168" frameHeight="157"/>
<SubTexture name="confirm0003" x="157" y="0" width="157" height="157" frameX="0" frameY="0" frameWidth="168" frameHeight="157"/>
<SubTexture name="confirm0004" x="314" y="0" width="157" height="157" frameX="0" frameY="0" frameWidth="168" frameHeight="157"/>
<SubTexture name="confirm0005" x="314" y="0" width="157" height="157" frameX="0" frameY="0" frameWidth="168" frameHeight="157"/>
<SubTexture name="confirm0006" x="0" y="157" width="157" height="157" frameX="0" frameY="0" frameWidth="168" frameHeight="157"/>
<SubTexture name="confirm0007" x="0" y="157" width="157" height="157" frameX="0" frameY="0" frameWidth="168" frameHeight="157"/>
<SubTexture name="confirm0008" x="157" y="157" width="157" height="157" frameX="0" frameY="0" frameWidth="168" frameHeight="157"/>
<SubTexture name="confirm0009" x="157" y="157" width="157" height="157" frameX="0" frameY="0" frameWidth="168" frameHeight="157"/>
<SubTexture name="confirm0010" x="314" y="157" width="157" height="157" frameX="0" frameY="0" frameWidth="168" frameHeight="157"/>
<SubTexture name="confirm0011" x="314" y="157" width="157" height="157" frameX="0" frameY="0" frameWidth="168" frameHeight="157"/>
<SubTexture name="confirm0012" x="0" y="314" width="160" height="157" frameX="0" frameY="0" frameWidth="168" frameHeight="157"/>
<SubTexture name="confirm0013" x="160" y="314" width="168" height="157"/>
<SubTexture name="confirm0014" x="160" y="314" width="168" height="157"/>
<SubTexture name="confirm0015" x="328" y="314" width="161" height="157" frameX="0" frameY="0" frameWidth="168" frameHeight="157"/>
<SubTexture name="confirm0016" x="328" y="314" width="161" height="157" frameX="0" frameY="0" frameWidth="168" frameHeight="157"/>
<SubTexture name="confirm0017" x="0" y="471" width="161" height="157" frameX="0" frameY="0" frameWidth="168" frameHeight="157"/>
<SubTexture name="confirm0018" x="0" y="471" width="161" height="157" frameX="0" frameY="0" frameWidth="168" frameHeight="157"/>
</TextureAtlas>
Binary file added assets/preload/images/checkboxThingie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f32fd62

Please sign in to comment.