first
This commit is contained in:
35
lib/sprite-bank.ts
Normal file
35
lib/sprite-bank.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
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' },
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user