phigros.tools

Skins and hit sounds

A skin is a mod in a folder, with its pictures and sounds next to its init.lua:

mods/
  myskin/
    init.lua
    tap.png
    drag.png
    hold.png
    hit.png
    tap.ogg
-- init.lua
skin.note("tap", "tap.png")      -- tap, drag, flick, or tap_multi for notes hit at the same time
skin.note("drag", "drag.png")
skin.note("hold", "hold.png")    -- a hold's body, hold_head and hold_tail for its ends
skin.effect("hit.png", { columns = 8, rows = 4 }) -- the hit effect, as a grid of frames
hitsound("tap", "tap.ogg")       -- tap (holds too), drag or flick
skin.line({ ap = "#ffd27f", fc = "#7fd4ff", normal = "#ffffff" }) -- the judge line's colours

Pictures are PNG or JPG, scaled to fit inside the game's note. A hold's body is as wide as the game's and stretched over the hold.

The hit effect's frames are read from the top left one, row by row. It also takes seconds (how long it plays), scale (1 is as wide as the game's effect), perfect and good (a colour for each, like "#ffec9f") and sparks = false to hide the game's sparks around it.

Sounds are of any format Android plays: OGG, MP3, WAV...

The judge line colours are for an all perfect run (ap), a full combo (fc) and everything else (normal).

A skin only changes how the chart looks and sounds, never what it tells the player: notes stay where the game puts them.

To turn a skin on and off from the settings, see Settings.