Skip to content

Commit

Permalink
chore: renamed variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanyLeonic committed May 5, 2024
1 parent 449d6ce commit bdf5d06
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions game-source-redux/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
</script>

<main>
{#each { length: height } as _, j}
{#each { length: width } as _, i}
{#each { length: height } as _, y}
{#each { length: width } as _, x}
<div
id={`tile-${j}-${i}`}
class={`tile ${(i + j) % 2 == 0 ? "tile-even" : "tile-odd"}`}
style={`width: ${cube_size}px; height: ${cube_size}px; position: absolute; top: ${cube_size * j}px; left: ${cube_size * i}px;`}
id={`tile-${y}-${x}`}
class={`tile ${(x + y) % 2 == 0 ? "tile-even" : "tile-odd"}`}
style={`width: ${cube_size}px; height: ${cube_size}px; position: absolute; top: ${cube_size * y}px; left: ${cube_size * x}px;`}
></div>
{/each}
{/each}
Expand Down

0 comments on commit bdf5d06

Please sign in to comment.