This repository has been archived by the owner on Dec 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MOD CHART ENGINE N SHIT ALSO RETROSPECTER RELEASE IS HERE FOR TESTING
- Loading branch information
1 parent
26c1794
commit 59ddec6
Showing
41 changed files
with
1,598 additions
and
394 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"song":{"player2":"dad","player1":"bf","speed":1.6,"needsVoices":true,"sectionLengths":[],"song":"Bopeebo","notes":[{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[0,2,0],[600,3,450],[1050,3,600]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[2400,2,0],[3000,3,450],[3450,3,600]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[4800,1,300],[5400,0,300],[6000,3,300]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[7200,1,300],[7800,0,300],[8400,3,300]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[9600,1,150],[10200,3,0],[10500,0,0],[10800,1,450]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[12000,1,150],[12600,3,0],[12900,0,0],[13200,1,450]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[14400,3,0],[14700,1,0],[15300,0,0],[15600,2,300]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[16800,3,0],[17100,1,0],[17700,0,0],[18000,2,300]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[19200,0,0],[19500,3,0],[19800,1,750]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[21600,0,0],[21900,3,0],[22200,1,750]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[24000,1,0],[24300,3,0],[24600,0,750]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[26700,3,0],[27000,0,750],[26400,1,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[28800,2,0],[29100,3,0],[29400,0,1050]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[31200,2,0],[31500,3,0],[31800,0,1050]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[33600,0,0],[33900,3,0],[34500,2,0],[34800,1,450]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[36000,0,0],[36300,3,0],[36900,2,0],[37200,1,450]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[38400,2,450],[39000,3,300],[39600,0,450]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[40800,2,450],[41400,3,300],[42000,0,450]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[43200,1,0],[43800,2,0],[44400,1,0],[44550,1,0],[44700,1,0],[45000,2,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[45600,1,0],[46200,2,0],[46800,1,0],[46950,1,0],[47100,1,0],[47400,2,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[48000,2,450],[48600,3,300],[49200,0,450]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[50400,2,450],[51000,3,300],[51600,0,450]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[52800,3,1650]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[55200,3,1650]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[57600,2,0],[57900,3,0],[58200,0,1050]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[60000,2,0],[60300,3,0],[60600,0,1050],[62100,6,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[62400,0,0],[62700,3,0],[63300,2,0],[63600,1,450],[64500,6,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[64800,0,0],[65100,3,0],[65700,2,0],[66000,1,450]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[67200,2,0],[67500,3,0],[67800,0,0],[68100,2,0],[68400,1,450]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[69600,2,0],[69900,3,0],[70200,0,0],[70500,2,0],[70800,1,450],[71700,6,0]]},{"mustHitSection":false,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[72000,0,0],[72300,3,0],[72900,2,0],[73200,1,450],[74100,6,0]]},{"mustHitSection":true,"typeOfSection":0,"lengthInSteps":16,"sectionNotes":[[74400,0,0],[74700,3,0],[75300,2,0],[75600,1,450]]},{"lengthInSteps":16,"bpm":100,"changeBPM":false,"mustHitSection":true,"sectionNotes":[],"typeOfSection":0},{"lengthInSteps":16,"bpm":100,"changeBPM":false,"mustHitSection":true,"sectionNotes":[],"typeOfSection":0,"altAnim":false}],"bpm":100,"sections":0,"validScore":true}} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
function createBG() | ||
print(getfenv(2)) | ||
setfenv(0,getfenv(2)); -- so its in the env of the requirer | ||
local bg = newSprite(-500,-170,true); | ||
bg:loadGraphic("background/garStagebgAlt"); | ||
bg.scrollFactorX = .7; | ||
bg.scrollFactorY = .7; | ||
bg.active = false; | ||
bg.antialiasing = true; | ||
print'bg' | ||
|
||
local smoke = newSprite(0,-290,true); | ||
smoke:setFrames("background/garSmoke") | ||
smoke.alpha=.3; | ||
smoke:setScale(1.7); | ||
smoke:addAnimByPrefix("garsmoke","smokey",13) | ||
smoke:playAnim("garsmoke") | ||
smoke.scrollFactorX = .7; | ||
smoke.scrollFactorY = .7; | ||
print'smoke' | ||
|
||
local alley = newSprite(-500,-200,true) | ||
alley:loadGraphic("background/garStagealt"); | ||
alley.antialiasing=true; | ||
alley.scrollFactorX = .9; | ||
alley.scrollFactorY = .9; | ||
alley.active=false; | ||
print'alley' | ||
|
||
local corpse = newSprite(-230,540,true) | ||
corpse:loadGraphic"background/gardead" | ||
corpse.antialiasing=true | ||
corpse.scrollFactorX=.9 | ||
corpse.scrollFactorY=.9 | ||
corpse.active=false; | ||
print'corpse' | ||
|
||
local smoke2 = newSprite(0,0); | ||
smoke2:setFrames("background/garSmoke") | ||
smoke2:setScale(1.6); | ||
smoke2:addAnimByPrefix("garsmoke","smokey",13) | ||
smoke2:playAnim("garsmoke") | ||
smoke2.scrollFactorX = 1.1; | ||
smoke2.scrollFactorY = 1.1; | ||
print'smoke2' | ||
|
||
iconP2:loadGraphic("icons",true,150,150) | ||
iconP2:addAnim("garcellodead",{0,1},0,false,false); | ||
iconP2:playAnim("garcellodead"); | ||
|
||
defaultCamZoom = .9 | ||
end | ||
|
||
return createBG; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<TextureAtlas imagePath="garSmoke.png"> | ||
<!-- Created with Adobe Animate version 20.0.0.17400 --> | ||
<!-- http://www.adobe.com/products/animate.html --> | ||
<SubTexture name="smokey instance 0001" x="6912" y="3376" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0002" x="5632" y="3376" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0003" x="4352" y="3376" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0004" x="3072" y="3376" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0005" x="1792" y="3376" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0006" x="512" y="3376" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0007" x="6912" y="2656" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0008" x="5632" y="2656" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0009" x="4352" y="2656" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0010" x="3072" y="2656" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0011" x="1792" y="2656" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0012" x="512" y="2656" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0013" x="6912" y="1936" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0014" x="5632" y="1936" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0015" x="4352" y="1936" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0016" x="3072" y="1936" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0017" x="1792" y="1936" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0018" x="512" y="1936" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0019" x="6912" y="1216" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0020" x="5632" y="1216" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0021" x="4352" y="1216" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0022" x="3072" y="1216" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0023" x="1792" y="1216" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0024" x="512" y="1216" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0025" x="6912" y="496" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0026" x="5632" y="496" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0027" x="4352" y="496" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0028" x="3072" y="496" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0029" x="1792" y="496" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
<SubTexture name="smokey instance 0030" x="512" y="496" width="1280" height="720" frameX="-70" frameY="-120" frameWidth="1280" frameHeight="720"/> | ||
</TextureAtlas> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
local function require(module) | ||
local file = debug.getinfo(1).source | ||
local directory = file:sub(2,#file-12) | ||
-- TODO: _FILEDIRECTORY | ||
return require(directory .. module) | ||
end | ||
|
||
require("background").create() | ||
local tween = require("tween") | ||
|
||
local tightSteps={262,902,1862} | ||
local strums = { | ||
leftPlrNote, | ||
downPlrNote, | ||
upPlrNote, | ||
rightPlrNote, | ||
leftDadNote, | ||
downDadNote, | ||
upDadNote, | ||
rightDadNote, | ||
} | ||
local hideStrums = true; | ||
local zoom = false; | ||
|
||
function isStepTight(step) | ||
for i = 1,#tightSteps do | ||
if(tightSteps[i]==step)then | ||
return true | ||
end | ||
end | ||
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) | ||
|
||
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) | ||
|
||
bf.alpha = 0 | ||
gf.alpha = 0 | ||
dad.alpha = 0 | ||
dad.y = -600 | ||
|
||
HUDCam.y = 1000 | ||
HUDCam.x = 0 | ||
|
||
local swayingsmall = false | ||
local swayingmed = false | ||
local swayingbig = false | ||
local swayingepic = false | ||
local DAFINALE = false; | ||
local garcellomilfuwu = false; | ||
|
||
local tweens = {} | ||
|
||
function update(elapsed) | ||
local currentBeat = (songPosition / 1000)*(bpm/60) | ||
if(hideStrums)then | ||
for i = 1,#strums do | ||
strums[i].alpha=0 | ||
end | ||
end | ||
for i = 1,#tweens do | ||
tweens[i]:update(elapsed) | ||
end | ||
if(zoom)then | ||
gameCam.zoom=2; | ||
end | ||
smoke.x = smoke.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 | ||
end | ||
end | ||
|
||
if(DAFINALE)then | ||
HUDCam.angle = 5 * math.cos(currentBeat) | ||
end | ||
end | ||
|
||
function beatHit() | ||
if(garcellomilfuwu)then | ||
gameCam.zoom = 1; | ||
end | ||
end | ||
|
||
local lastTightMan=0; | ||
|
||
function dadNoteHit() | ||
dad.disabledDance=false; | ||
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 | ||
dad.disabledDance=false; | ||
end | ||
if(step==16)then | ||
hide=false | ||
table.insert(tweens,tween.new(0.6,gf,{alpha=1},'linear')) | ||
HUDCam.y = 0 | ||
HUDCam.x = 0 | ||
end | ||
if(step==48)then | ||
table.insert(tweens,tween.new(0.6,bf,{alpha=1},'linear')) | ||
for i=1,4 do | ||
--tweenFadeIn(i,1, 0.6) | ||
table.insert(tweens,tween.new(0.6,strums[i],{alpha=1},'inCirc')) | ||
end | ||
end | ||
if(step==80)then | ||
table.insert(tweens,tween.new(1.5,dad,{alpha=1},'linear')) | ||
table.insert(tweens,tween.new(2,dad,{y=100},'linear')) | ||
garcellomilfuwu=true; | ||
for i=5,8 do | ||
table.insert(tweens,tween.new(0.6,strums[i],{alpha=1},'inCirc')) | ||
end | ||
end | ||
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')) | ||
end | ||
if(step==144)then | ||
garcellomilfuwu=false; | ||
end | ||
end |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.