Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imagine a pop'n default noteskin. #1342

Merged
merged 6 commits into from
Jan 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
.vscode
.vs
.idea
*.kdev4
/.kdev4
/[Bb]uild
/out/

Expand Down
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions NoteSkins/popn/default/Key Receptor.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
-- the funniest move around.
local button = Var "Button"

-- making sure the player isn't on downscroll
-- then doing a flip.
local flip = GAMESTATE:GetPlayerState(PLAYER_1):GetCurrentPlayerOptions():Reverse() == 1

local t = Def.ActorFrame {
Def.Sprite {
Texture = "_receptor",
Frame0000 = 0,
Delay0000 = 1,
InitCommand = function(self)
-- i love scaling textures
self:diffuse(color(colors[button])):zoomx(0.5)
if not flip then
self:rotationx(180)
end
end
},
Def.Sprite {
Texture = "_flash",
Frame0000 = 0,
Delay0000 = 1,
InitCommand = function(self)
self:diffuse(color(colors[button])):diffusealpha(0):zoomx(0.5)
if not flip then
self:rotationx(180)
end
end,
PressCommand = function(self)
self:diffusealpha(0.25)
end,
LiftCommand = function(self)
self:accelerate(0.25):diffusealpha(0)
end
}
}
return t
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions NoteSkins/popn/default/Key Tap Explosion Bright.redir
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_blank
1 change: 1 addition & 0 deletions NoteSkins/popn/default/Key Tap Explosion Dim.redir
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Key Tap Explosion Bright
14 changes: 14 additions & 0 deletions NoteSkins/popn/default/Key Tap Lift.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
local t = Def.ActorFrame {
Def.Sprite {
Texture = NOTESKIN:GetPath("", "lift")

Frame0000 = 0,
Delay0000 = 1,

InitCommand = function(self)
self:zoomx(0.5)
end
}
}

return t
19 changes: 19 additions & 0 deletions NoteSkins/popn/default/Key Tap Note.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-- i keep telling myself this is the funniest thing i've seen.
local button = Var "Button"

local t = Def.ActorFrame {
Def.Sprite {
-- because there's not really a point of putting snaps on it,
-- if you actually want it to have snaps, use 0.74.0+ or
-- contact me.
Texture = "_bar",
Frame0000 = 0,
Delay0000 = 1,

InitCommand = function(self)
-- have to zoom these by a half because notefield is a fcuk.
self:diffuse(color(colors[button])):zoomx(0.5)
end
},
}
return t
73 changes: 73 additions & 0 deletions NoteSkins/popn/default/NoteSkin.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
local ret = ... or {}

-- doing a global color move so i can just not repeat these lines of code,
-- which is probably dumb but i'll take responsibility for it.
colors = {
["Left White"] = "#ffffff",
["Left Yellow"] = "#ffff00",
["Left Green"] = "#00ff00",
["Left Blue"] = "#0000ff",
["Red"] = "#ff0000",
["Right Blue"] = "#0000ff",
["Right Green"] = "#00ff00",
["Right Yellow"] = "#ffff00",
["Right White"] = "#ffffff",
}

-- i am not gonna make separate textures for these, feel free to make some if you want to not do this.
ret.RedirTable = {
["Left White"] = "Key",
["Left Yellow"] = "Key",
["Left Green"] = "Key",
["Left Blue"] = "Key",
["Red"] = "Key",
["Right Blue"] = "Key",
["Right Green"] = "Key",
["Right Yellow"] = "Key",
["Right White"] = "Key",
}

local OldRedir = ret.Redir

ret.Redir = function(sButton, sElement)
sButton, sElement = OldRedir(sButton, sElement)

--Point the head files back to the tap note
if string.find(sElement, "Head") or sElement == "Tap Fake" then
sElement = "Tap Note"
end

sButton = ret.RedirTable[sButton]

return sButton, sElement
end

local OldFunc = ret.Load
function ret.Load()
local t = OldFunc()

-- The main "Explosion" part just loads other actors; don't rotate
-- it. The "Hold Explosion" part should not be rotated.
if Var "Element" == "Explosion" or Var "Element" == "Roll Explosion" then
t.BaseRotationZ = nil
end
return t
end

-- where did ret.PartsToRotate go, to the dance store?
-- anyways you will not need it.

ret.Blank = {
["Hold Explosion"] = true,
["Roll Explosion"] = true,
["Hold Topcap Active"] = true,
["Hold Topcap Inactive"] = true,
["Roll Topcap Active"] = true,
["Roll Topcap Inactive"] = true,
["Hold Tail Active"] = true,
["Hold Tail Inactive"] = true,
["Roll Tail Active"] = true,
["Roll Tail Inactive"] = true
}

return ret
4 changes: 4 additions & 0 deletions NoteSkins/popn/default/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Deco - sonicjoplus

This skin is made so people can finally get to experience pop'n with a (mildly decent) skin.
Do whatever you will with this.
Binary file added NoteSkins/popn/default/_bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NoteSkins/popn/default/_flash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NoteSkins/popn/default/_receptor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NoteSkins/popn/default/lift.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions NoteSkins/popn/default/metrics.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[Global]
FallbackNoteSkin=common

[NoteDisplay]
TapNoteAnimationIsVivid=0
DrawHoldHeadForTapsOnSameRow=1
TapNoteAnimationLength=1 // none of these matter because Lua is handling the animation, not sprites.
TapAdditionAnimationLength=1
TapMineAnimationLength=1
TapLiftAnimationLength=1
TapFakeAnimationLength=1
HoldHeadAnimationLength=1
HoldTopCapAnimationLength=1
HoldBottomCapAnimationLength=1
HoldBodyAnimationLength=1
HoldTailAnimationLength=1

StartDrawingHoldBodyOffsetFromHead=0
StopDrawingHoldBodyOffsetFromTail=0

HoldLetGoGrayPercent=.25

HoldHeadIsAboveWavyParts=1
HoldTailIsAboveWavyParts=1

ReverseDrawOrder=111111111
FlipHeadAndTailWhenReverse=1
FlipHoldBodyWhenReverse=1

TapNoteAdditionTextureCoordOffsetX=0
TapNoteAdditionTextureCoordOffsetY=0
TapNoteNoteColorTextureCoordSpacingX=0
TapNoteNoteColorTextureCoordSpacingY=0
TapFakeNoteColorTextureCoordSpacingX=0
TapFakeNoteColorTextureCoordSpacingY=0
HoldHeadNoteColorTextureCoordSpacingX=0
HoldHeadNoteColorTextureCoordSpacingY=0

TapFakeNoteOpacityMultiplier=0.25
Loading