Skip to content

Commit

Permalink
Add story for hidden walls
Browse files Browse the repository at this point in the history
  • Loading branch information
jankuss committed Dec 7, 2020
1 parent 264b042 commit 1a1c99e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions storybook/stories/Room.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,27 @@ export function AngledRoom() {
});
}

export function HiddenWalls() {
return createShroom(({ application, shroom }) => {
const room = Room.create(shroom, {
tilemap: `
xxx000
xxx000
xxx000
000000
000000
000000
`,
});

room.x = application.screen.width / 2 - room.roomWidth / 2;
room.y = application.screen.height / 2 - room.roomHeight / 2;
room.hideWalls = true;

application.stage.addChild(room);
});
}

export default {
title: "Room",
};

0 comments on commit 1a1c99e

Please sign in to comment.