36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
export interface Sprite {
|
|
id: string;
|
|
name: string;
|
|
url: string;
|
|
}
|
|
|
|
export type SpritePosition = 'pos1' | 'pos2' | 'pos3' | 'pos4' | 'pos5' | 'pos6' | 'pos7' | 'pos8';
|
|
|
|
export const SPRITE_POSITIONS: SpritePosition[] = ['pos1', 'pos2', 'pos3', 'pos4', 'pos5', 'pos6', 'pos7', 'pos8'];
|
|
|
|
export const POSITION_MAP: Record<SpritePosition, number> = {
|
|
pos1: 5,
|
|
pos2: 17,
|
|
pos3: 30,
|
|
pos4: 42,
|
|
pos5: 55,
|
|
pos6: 67,
|
|
pos7: 80,
|
|
pos8: 92,
|
|
};
|
|
|
|
export const INITIAL_SPRITE_BANK: Record<string, Sprite[]> = {
|
|
Agnieszka: [
|
|
{ id: 'happy', name: 'Happy', url: 'https://placehold.co/400x600/ff4d4d/ffffff?text=Agnieszka+Happy' },
|
|
{ id: 'sad', name: 'Sad', url: 'https://placehold.co/400x600/ff4d4d/ffffff?text=Agnieszka+Sad' },
|
|
{ id: 'angry', name: 'Angry', url: 'https://placehold.co/400x600/ff4d4d/ffffff?text=Agnieszka+Angry' },
|
|
{ id: 'neutral', name: 'Neutral', url: 'https://placehold.co/400x600/ff4d4d/ffffff?text=Agnieszka+Neutral' },
|
|
],
|
|
Player: [
|
|
{ id: 'normal', name: 'Normal', url: 'https://placehold.co/400x600/4d79ff/ffffff?text=Player' },
|
|
],
|
|
Teacher: [
|
|
{ id: 'neutral', name: 'Neutral', url: 'https://placehold.co/400x600/4dff4d/ffffff?text=Teacher' },
|
|
]
|
|
};
|