Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
雲のエリアのキャラクターとの会話シナリオを追加する
Browse files Browse the repository at this point in the history
  • Loading branch information
calmery committed Feb 25, 2021
1 parent f63b67d commit f16e254
Show file tree
Hide file tree
Showing 3 changed files with 328 additions and 129 deletions.
4 changes: 4 additions & 0 deletions src/components/Exhibition/3d.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ export const Exhibition3d: React.FC<{
(actions: string[]) => {
actions.forEach((action) => {
switch (action) {
case "open_okusuri_land":
window.open("https://okusuri.land", "_blank");
return;

case "pancake":
setPlayerAccessory("pancake");
return;
Expand Down
183 changes: 64 additions & 119 deletions src/data/cloud.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { MAID_SCENARIOS } from "./clouds/scenarios";
import { ABOUT_THIS_WORLD } from "./common/scenarios";
import {
CALMERY_CHAN_SCENARIOS,
FLOWER_SHEEP_SCENARIOS,
HITSUGI_SCENARIOS,
MAID_SCENARIOS,
NEMINKO_SCENARIOS,
NONEME_SCENARIOS,
PC_SCENARIOS,
WATER_SHEEP_SCENARIOS,
} from "./clouds/scenarios";
import { Area } from "~/types/exhibition";

const area: Area = {
Expand Down Expand Up @@ -50,6 +58,48 @@ const area: Area = {
},
objects: {
characters: [
{
id: "neminko",
name: "",
position: {
x: -11.25,
y: 6.1,
z: -6.5,
},
rotation: {
x: 0,
y: -200,
z: 0,
},
scale: {
x: 0.5,
y: 0.5,
z: 0.5,
},
scenarios: NEMINKO_SCENARIOS,
url: "/objects/areas/cloud/neminko_sleeping.glb",
},
{
id: "pc",
name: "",
position: {
x: -7,
y: 6.1,
z: 2.25,
},
rotation: {
x: 0,
y: 0,
z: 0,
},
scale: {
x: 1,
y: 1,
z: 1,
},
scenarios: PC_SCENARIOS,
url: "/objects/areas/cloud/pc.glb",
},
{
id: "noneme_sitting",
name: "",
Expand All @@ -64,12 +114,12 @@ const area: Area = {
z: 0,
},
scale: {
x: 0.25,
y: 0.25,
z: 0.25,
x: 0.22,
y: 0.22,
z: 0.22,
},
scenarios: [],
url: "/objects/characters/noneme_sitting.glb",
scenarios: NONEME_SCENARIOS,
url: "/objects/areas/cloud/noneme_sitting.glb",
},
{
id: "flower_sheep",
Expand All @@ -89,31 +139,7 @@ const area: Area = {
y: 0.2,
z: 0.2,
},
scenarios: [
{
branches: [
{
message: "行く",
scenarios: [
{
actions: ["move_to_meadow"],
message: "…",
},
],
},
{
message: "止めとく",
scenarios: [
{
message: "…",
},
],
},
],
name: null,
message: "どうやら草原に連れて行ってくれるようだ。",
},
],
scenarios: FLOWER_SHEEP_SCENARIOS,
url: "/objects/characters/flower_sheep.glb",
},
{
Expand All @@ -134,36 +160,12 @@ const area: Area = {
y: 0.2,
z: 0.2,
},
scenarios: [
{
branches: [
{
message: "行く",
scenarios: [
{
actions: ["move_to_sea"],
message: "…",
},
],
},
{
message: "止めとく",
scenarios: [
{
message: "…",
},
],
},
],
name: null,
message: "どうやら水中遺跡に連れて行ってくれるようだ。",
},
],
scenarios: WATER_SHEEP_SCENARIOS,
url: "/objects/characters/water_sheep.glb",
},
{
id: "ameri",
name: "あめり",
id: "calmery_chan",
name: "かるめりちゃん",
position: {
x: 15.05,
y: 6.155,
Expand All @@ -179,8 +181,8 @@ const area: Area = {
y: 0.25,
z: 0.25,
},
scenarios: [],
url: "/objects/characters/ameri.glb",
scenarios: CALMERY_CHAN_SCENARIOS,
url: "/objects/characters/calmery_chan.glb",
},
{
id: "maid",
Expand Down Expand Up @@ -221,28 +223,7 @@ const area: Area = {
y: 0.5,
z: 0.5,
},
scenarios: [
{
branches: [
{
message: "好きなお菓子のはなし",
scenarios: [
{
message: "…私はグミが好き。",
},
{
message: "食感がグミグミしてて何だか気持ちいいから…。",
},
],
},
{
message: "この世界について",
scenarios: ABOUT_THIS_WORLD,
},
],
message: "………ここは甘いにおいがする。",
},
],
scenarios: HITSUGI_SCENARIOS,
url: "/objects/characters/hitsugi.glb",
},
],
Expand Down Expand Up @@ -320,42 +301,6 @@ const area: Area = {
},
url: "/objects/areas/cloud/clouds.glb",
},
{
position: {
x: 0,
y: 0,
z: 0,
},
rotation: {
x: 0,
y: 0,
z: 0,
},
scale: {
x: 1,
y: 1,
z: 1,
},
url: "/objects/areas/cloud/neminko_sleeping.glb",
},
{
position: {
x: 0,
y: 0,
z: 0,
},
rotation: {
x: 0,
y: 0,
z: 0,
},
scale: {
x: 1,
y: 1,
z: 1,
},
url: "/objects/areas/cloud/pc.glb",
},
{
position: {
x: 0,
Expand Down
Loading

0 comments on commit f16e254

Please sign in to comment.