-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add music data, location data, music autoplays on entrance to location
- Loading branch information
Showing
8 changed files
with
94 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
import { DataProps } from './types'; | ||
import { DataProps, Location } from './types'; | ||
|
||
export type Data = DataProps & { | ||
image: string; | ||
scale?: number; // only allow uniform scaling | ||
location: Location; | ||
}; | ||
|
||
export const BackgroundData: Data[] = [ | ||
{ x: 0, y: 0, image: 'town' }, | ||
{ x: 500, y: -1100, image: 'clock_outside' }, | ||
{ x: 500, y: -2400, image: 'clock_inner', skipLighting: true }, | ||
{ x: 2300, y: 0, image: 'forest' }, | ||
{ x: 4400, y: 100, image: 'lake' }, | ||
{ x: -2200, y: -170, image: 'mansion_outside' }, | ||
{ x: -2000, y: -1320, image: 'mansion_inside', skipLighting: true }, | ||
{ x: -3200, y: 1300, image: 'alchemy_lab', scale: 0.9, skipLighting: true }, | ||
{ x: 1600, y: -700, image: 'library', skipLighting: true }, | ||
{ x: 0, y: 0, image: 'town', location: Location.Town }, | ||
{ x: 500, y: -1100, image: 'clock_outside', location: Location.ClockOutside }, | ||
{ x: 500, y: -2400, image: 'clock_inner', location: Location.ClockInner, skipLighting: true }, | ||
{ x: 2300, y: 0, image: 'forest', location: Location.Forest }, | ||
{ x: 4400, y: 100, image: 'lake', location: Location.Lake }, | ||
{ x: -2200, y: -170, image: 'mansion_outside', location: Location.MansionOutside }, | ||
{ x: -2000, y: -1320, image: 'mansion_inside', location: Location.MansionInside, skipLighting: true }, | ||
{ x: -3200, y: 1300, image: 'alchemy_lab', location: Location.AlchemyLab, scale: 0.9, skipLighting: true }, | ||
{ x: 1600, y: -700, image: 'library', location: Location.Library, skipLighting: true }, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Location, MusicType } from './types'; | ||
|
||
interface Data { | ||
locations: Location[]; | ||
volume: number; | ||
} | ||
|
||
export const MusicData: Record<MusicType, Data> = { | ||
[MusicType.Intro]: { | ||
locations: [], | ||
volume: 0.5, | ||
}, | ||
|
||
[MusicType.Town]: { | ||
locations: [Location.Town], | ||
volume: 0.5, | ||
}, | ||
|
||
[MusicType.Clock]: { | ||
locations: [Location.ClockInner, Location.ClockOutside], | ||
volume: 0.5, | ||
}, | ||
|
||
[MusicType.Forest]: { | ||
locations: [Location.Forest, Location.Lake], | ||
volume: 0.5, | ||
}, | ||
|
||
[MusicType.Mansion]: { | ||
locations: [Location.MansionInside, Location.MansionOutside, Location.AlchemyLab], | ||
volume: 0.5, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters