Skip to content

Commit

Permalink
Change story
Browse files Browse the repository at this point in the history
  • Loading branch information
jankuss committed Jan 25, 2021
1 parent 9f2dcbb commit ba924ca
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions storybook/stories/Room.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
WallFurniture,
RoomCamera,
Avatar,
FloorFurniture,
} from "@jankuss/shroom";

import { createShroom } from "./common/createShroom";
Expand Down Expand Up @@ -496,6 +497,14 @@ export function TestTileClick() {
`,
});

const furniture = new FloorFurniture({
roomX: 5,
roomY: 5,
roomZ: 0,
type: "club_sofa",
direction: 2,
});

const avatar = new Avatar({
look:
"hd-180-1.hr-828-61.ha-1012-110.he-1604-62.ea-1404-62.fa-1204-62.ch-255-66.lg-280-110.sh-305-62",
Expand All @@ -512,10 +521,7 @@ export function TestTileClick() {
};

room.addRoomObject(avatar);

setTimeout(() => {
room.destroy();
}, 5000);
room.addRoomObject(furniture);

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

0 comments on commit ba924ca

Please sign in to comment.