Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Dec 13, 2023
1 parent 46d3adb commit cb63b37
Show file tree
Hide file tree
Showing 3 changed files with 11,642 additions and 8,622 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ export function mapSystem(layer: PhaserLayer) {
for (let y = 0; y < 50; y++) {
const coord = { x, y };
// Get a noise value between 0 and 100
const seed = Math.floor(((snoise([x / MAP_AMPLITUDE, 0, y / MAP_AMPLITUDE]) + 1) / 2) * 100);
const seed = Math.floor(
((snoise([x / MAP_AMPLITUDE, 0, y / MAP_AMPLITUDE]) + 1) / 2) *
100
);

if (seed > 70) {
// This would be the highest 'elevation'
Expand Down
140 changes: 72 additions & 68 deletions packages/create-dojo/bin/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cb63b37

Please sign in to comment.