-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up title screen + Remove SRPG5 logos More asset changes Finish up SRPG Background and add more assets Prompt user for auto switch for SRPG6 Add Died/Felled Add SRPG6 Menu Music Add Sound Effects Change event overlay background Update SRPG6 gameover audio Lock Style Clean up whitespace Change date
- Loading branch information
Showing
66 changed files
with
396 additions
and
140 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,22 +1,75 @@ | ||
-- assume that all human players failed | ||
local img = "failed text.png" | ||
local failed = true | ||
|
||
-- loop through all available human players | ||
for player in ivalues(GAMESTATE:GetHumanPlayers()) do | ||
-- if any of them passed, we want to display the "cleared" graphic | ||
if not STATSMAN:GetCurStageStats():GetPlayerStageStats(player):GetFailed() then | ||
img = "cleared text.png" | ||
failed = false | ||
end | ||
end | ||
|
||
return Def.ActorFrame { | ||
Def.Quad{ | ||
InitCommand=function(self) self:FullScreen():diffuse(Color.Black) end, | ||
OnCommand=function(self) self:sleep(0.2):linear(0.5):diffusealpha(0) end, | ||
}, | ||
if ThemePrefs.Get("VisualStyle") ~= "SRPG6" then | ||
local img = failed and "failed text.png" or "cleared text.png" | ||
|
||
LoadActor(img)..{ | ||
InitCommand=function(self) self:Center():zoom(0.8):diffusealpha(0) end, | ||
OnCommand=function(self) self:accelerate(0.4):diffusealpha(1):sleep(0.6):decelerate(0.4):diffusealpha(0) end | ||
return Def.ActorFrame { | ||
Def.Quad{ | ||
InitCommand=function(self) self:FullScreen():diffuse(Color.Black) end, | ||
OnCommand=function(self) self:sleep(0.2):linear(0.5):diffusealpha(0) end, | ||
}, | ||
|
||
LoadActor(img)..{ | ||
InitCommand=function(self) self:Center():zoom(0.8):diffusealpha(0) end, | ||
OnCommand=function(self) self:accelerate(0.4):diffusealpha(1):sleep(0.6):decelerate(0.4):diffusealpha(0) end | ||
} | ||
} | ||
else | ||
local af = Def.ActorFrame { | ||
InitCommand=function(self) | ||
self:xy(_screen.cx, _screen.cy) | ||
end, | ||
Def.Quad{ | ||
InitCommand=function(self) | ||
self:zoomto(_screen.w, 100):diffuse(Color.Black):diffusealpha(0):fadetop(0.2):fadebottom(0.2) | ||
end, | ||
OnCommand=function(self) | ||
self:linear(0.25):diffusealpha(0.7):sleep(2):linear(0.25):diffusealpha(0) | ||
end, | ||
}, | ||
} | ||
} | ||
|
||
if failed then | ||
af[#af+1] = Def.Sprite { | ||
Texture=THEME:GetPathG("", "_VisualStyles/SRPG6/YouDied.png"), | ||
InitCommand=function(self) self:zoom(0.36):diffusealpha(0) end, | ||
OnCommand=function(self) | ||
self:linear(0.25):diffusealpha(1):linear(2):zoom(0.38):linear(0.25):diffusealpha(0):zoom(0.39) | ||
SOUND:PlayOnce(THEME:GetPathS("", "SRPG6-YouDied.ogg")) | ||
end | ||
} | ||
else | ||
local image = THEME:GetPathG("", "_VisualStyles/SRPG6/EnemyFelled.png") | ||
if not GAMESTATE:IsCourseMode() and GAMESTATE:GetCurrentSong():GetLastSecond() > 16 * 60 then | ||
image = THEME:GetPathG("", "_VisualStyles/SRPG6/GreatEnemyFelled.png") | ||
end | ||
|
||
af[#af+1] = Def.Sprite { | ||
Texture=image, | ||
InitCommand=function(self) self:zoomx(0.4):zoomy(0.38):diffusealpha(0) end, | ||
OnCommand=function(self) | ||
self:linear(0.25):diffusealpha(0.15):decelerate(2):zoomx(0.44):linear(0.25):diffusealpha(0) | ||
SOUND:PlayOnce(THEME:GetPathS("", "SRPG6-EnemyFelled.ogg")) | ||
end | ||
} | ||
|
||
af[#af+1] = Def.Sprite { | ||
Texture=image, | ||
InitCommand=function(self) self:zoom(0.38):diffusealpha(0) end, | ||
OnCommand=function(self) | ||
self:linear(0.25):diffusealpha(1):linear(2):linear(0.25):diffusealpha(0) | ||
end | ||
} | ||
end | ||
|
||
return af | ||
end |
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
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
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 @@ | ||
_dark bg |
103 changes: 103 additions & 0 deletions
103
BGAnimations/ScreenPromptToSetSrpgVisualStyle overlay.lua
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,103 @@ | ||
local text_width = 420 | ||
|
||
local _zoom = { | ||
active = WideScale(1.15,1.1), | ||
inactive = WideScale(0.55,0.5) | ||
} | ||
local active_index = 0 | ||
local choice_actors = {} | ||
local af | ||
|
||
local InputHandler = function(event) | ||
if not event.PlayerNumber or not event.button then return false end | ||
|
||
if event.type == "InputEventType_FirstPress" then | ||
if event.GameButton == "MenuRight" or event.GameButton == "MenuLeft" then | ||
-- old active choice loses focus | ||
choice_actors[active_index]:diffuse(1,1,1,1):finishtweening():linear(0.1):zoom(_zoom.inactive) | ||
-- update active_index | ||
active_index = (active_index + (event.GameButton=="MenuRight" and 1 or -1)) % 2 | ||
-- new active choice gains focus | ||
choice_actors[active_index]:diffuse(PlayerColor(PLAYER_2)):finishtweening():linear(0.1):zoom(_zoom.active) | ||
--play sound | ||
af:queuecommand("DirectionButton") | ||
|
||
elseif event.GameButton == "Start" then | ||
-- if the player wants to change to the SRPG6 style. | ||
if active_index == 0 then | ||
SL.SRPG6:ActivateVisualStyle() | ||
-- Set the event so that this screen doesn't show up again. | ||
else | ||
ThemePrefs.Set("LastActiveEvent", "SRPG6") | ||
end | ||
|
||
local top_screen = SCREENMAN:GetTopScreen() | ||
top_screen:SetNextScreenName("ScreenTitleMenu"):StartTransitioningScreen("SM_GoToNextScreen") | ||
end | ||
end | ||
end | ||
|
||
local t = Def.ActorFrame{ OnCommand=function(self) af=self; SCREENMAN:GetTopScreen():AddInputCallback(InputHandler) end } | ||
|
||
t[#t+1] = LoadFont("Common Normal")..{ | ||
Text=ScreenString("Paragraph1"), | ||
InitCommand=function(self) | ||
self:xy(_screen.cx, 90):_wrapwidthpixels(text_width):diffusealpha(0):zoom(WideScale(2.15,2)) | ||
end, | ||
OnCommand=function(self) self:linear(0.15):diffusealpha(1) end | ||
} | ||
|
||
t[#t+1] = LoadFont("Common Normal")..{ | ||
Text=ScreenString("Paragraph2"), | ||
InitCommand=function(self) | ||
self:xy(_screen.cx, 350):_wrapwidthpixels(text_width):diffusealpha(0):zoom(WideScale(1.15,1)) | ||
end, | ||
OnCommand=function(self) self:linear(0.15):diffusealpha(1) end | ||
} | ||
|
||
local choices_af = Def.ActorFrame{ | ||
InitCommand=function(self) self:diffusealpha(0):y(225) end, | ||
OnCommand=function(self) self:sleep(0.333):linear(0.15):diffusealpha(1) end, | ||
} | ||
|
||
choices_af[#choices_af+1] = Def.ActorFrame{ | ||
InitCommand=function(self) | ||
self:x(_screen.cx-80):diffuse( PlayerColor(PLAYER_2) ):zoom(_zoom.active) | ||
choice_actors[0] = self | ||
end, | ||
|
||
LoadFont("Common Bold")..{ | ||
Text=THEME:GetString("ScreenPromptToResetPreferencesToStock","Yes"), | ||
InitCommand=function(self) self:zoom(1.1) end | ||
}, | ||
LoadFont("Common Normal")..{ | ||
Text=ScreenString("YesInfo"), | ||
InitCommand=function(self) self:y(32) end, | ||
} | ||
} | ||
|
||
|
||
choices_af[#choices_af+1] = Def.ActorFrame{ | ||
InitCommand=function(self) | ||
self:x(_screen.cx+80):zoom(_zoom.inactive) | ||
choice_actors[1] = self | ||
end, | ||
|
||
LoadFont("Common Bold")..{ | ||
Text=THEME:GetString("ScreenPromptToResetPreferencesToStock","No"), | ||
InitCommand=function(self) self:zoom(1.1) end | ||
}, | ||
LoadFont("Common Normal")..{ | ||
Text=ScreenString("NoInfo"), | ||
InitCommand=function(self) self:y(32) end, | ||
} | ||
} | ||
|
||
t[#t+1] = choices_af | ||
|
||
-- sound effect | ||
t[#t+1] = LoadActor( THEME:GetPathS("ScreenSelectMaster", "change") )..{ | ||
DirectionButtonCommand=function(self) self:play() end | ||
} | ||
|
||
return t |
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
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
Oops, something went wrong.