exch-bms2 / beatoraja

Cross-platform rhythm game based on Java and libGDX.
GNU General Public License v3.0
623 stars 146 forks source link

FEATURE: Visualize random lane pattern in result screen #767

Closed sr8e closed 7 months ago

sr8e commented 7 months ago

English version is below

要約

新機能の追加: リザルトでランダムの配置が見られるようにする

目的

本家IIDXのライトニングモデルのプレミアムエリアでできるように、レーンを入れ替えるタイプのランダムオプションが選択されたとき、リザルト画面にランダムの配置を表示する。

変更

注意

purpose

As in premium area of IIDX Lightning model, show the random pattern in result screen when random option (which swaps lanes) is used.

changes

notice

sr8e commented 7 months ago

スキンに関する参考 reference about skin

スキンの定義はこんな感じになると思います skin definition will be like this:

-- image source
table.insert(skin.source,  {id = "random-pattern", path = "../random_pattern.png"})

-- image definitions
table.insert(skin.image, {id = "random-pattern-bg", src = "random-pattern", x = 0, y = 0, w = 528, h = 100})
local img_ids_key = {}
local img_ids_scr = {}  
for i = 0, 8 do
  table.insert(img_ids_key, "random-pattern-key"..i)
  table.insert(img_ids_scr, "random-pattern-scr"..i)
  table.insert(skin.image, {id = "random-pattern-key"..i, src = "random-pattern", x = 40 + i * 61, y = 101, w = 60, h = 100})
  table.insert(skin.image, {id = "random-pattern-scr"..i, src = "random-pattern", x = i * 101, y = 202, w = 100, h = 100})
end

-- imageset definitions
for i = 0, 6 do
  table.insert(skin.imageset, {id = "random-pattern-set"..i, images = img_ids_key, ref = 450 + i})
end
table.insert(skin.imageset, {id = "random-pattern-set-scr", images = img_ids_scr, ref = 459})

-- destinations
table.insert(skin.destination, {id = "random-pattern-bg", dst = {{x = 700, y = 300, w = 528, h = 100}}})
for i = 0, 6 do
  table.insert(skin.destination, {id = "random-pattern-set"..i, dst = {{x = 801 + i * 61, y = 300, w = 60, h = 100}}})
end
table.insert(skin.destination, {id = "random-pattern-set-scr", dst = {{x = 700, y = 300, w = 100, h = 100}} })

画像のリソースはこういう形です(インデックス0の部分は透過画像) image resource will be like: (the area corresponds to index of 0 is transparent) random_pattern

するとこうなります then this come out: random_pattern_visualize