Skip to content

Commit

Permalink
Ensure fence always has at least two posts
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Dec 16, 2024
1 parent faa264f commit ae2530a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etc/assets/scene.flecs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ template FenceBoard {

template Fence {
prop width = f32: 10
const post_count = i32: $width / 3
const post_count = i32: 2 + $width / 5
const post_spacing = $width / ($post_count - 1)

with Rgb(0.15, 0.1, 0.05) {
Expand Down
2 changes: 1 addition & 1 deletion etc/flecs_explorer.js

Large diffs are not rendered by default.

Binary file modified etc/flecs_explorer.wasm
Binary file not shown.

0 comments on commit ae2530a

Please sign in to comment.