Skip to content

Commit

Permalink
image fix
Browse files Browse the repository at this point in the history
  • Loading branch information
temidaradev committed Dec 12, 2024
1 parent 6ff3816 commit 5ef33af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion i18n/README_jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var assets embed.FS

重要なのは、フォルダを作成し、すべてのタイルアイテム「.png」を次のように配置することです。

<img src="resources/image.png" height="400">
<img src="../resources/image.png" height="400">

そして、その関数は次のように簡単に使用できます: `var Tile = esset.GetMultipleAssets(assets, "path/to/your/*.png")` 1 つ以上の画像を選択しているため、`*ebiten.Image` は次のようにインデックスで選択できるスライスです: `TileComponent := asset.Tile[0]` または、そのフォルダーからランダムなアセットを取得する必要がある場合は、次のように実行できます: `TileRandom := asset.Tile[rand.Intn(len(assets.Tile))]`

Expand Down
2 changes: 1 addition & 1 deletion i18n/README_tr.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ bu embed ifadesini içe aktarma kısmından sonra ekleyin. Artık esset'i asset

Önemli olan bir klasör oluşturmak ve her bir tile öğesini (.png) şu şekilde koymaktır

<img src="./resources/image.png" height="400">
<img src="../resources/image.png" height="400">

ve sonra bu işlevi şu şekilde kolayca kullanabilirsiniz: `var Tile = esset.GetMultipleAssets(assets, "path/to/your/*.png")` 1'den fazla resim seçtiğiniz için `*ebiten.Image`'imiz şu şekilde dizine göre seçebileceğiniz bir slice'dır: `TileComponent := asset.Tile[0]` veya bu klasörden rastgele bir varlık almanız gerekiyorsa şu şekilde yapabilirsiniz: `TileRandom := asset.Tile[rand.Intn(len(assets.Tile))]`

Expand Down

0 comments on commit 5ef33af

Please sign in to comment.