-
Notifications
You must be signed in to change notification settings - Fork 0
/
pikachu.ts
33 lines (32 loc) · 3.6 KB
/
pikachu.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
function displayPikachuRun() {
let list_colors_number = [[22, 2, 21, 1, 1, 1, 20, 1, 1, 1, 1, 20, 1, 2, 1, 19, 1, 3, 1, 18, 1, 4, 1, 17, 1, 3, 1, 1, 17, 1, 2, 1, 1, 11, 2, 5, 1, 2, 1, 12, 3, 2, 3, 4, 1, 10, 1, 1, 1, 1, 2, 2, 1, 3, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 9, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 3, 8, 1, 1, 4, 1, 1, 3, 2, 10, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1], [1, 9, 1, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, 8, 1, 1, 1, 1, 2, 1, 7, 1, 1, 8, 1, 1, 1, 1, 3, 1, 6, 1, 1, 1, 8, 1, 1, 3, 2, 1, 5, 1, 1, 1, 3, 1, 1, 3, 3, 1, 3, 1, 4, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 5, 5, 1, 1, 1, 3, 3, 2, 1, 1, 1, 10, 1, 2, 1, 1, 1, 1, 4, 1, 1, 12, 2, 1, 2, 1, 1, 1, 1, 1, 1, 18, 1, 1], [1, 1, 1, 19, 1, 1, 1, 1, 21, 2, 15]];
let list_colors = [[0, 1, 0, 1, 2, 1, 0, 1, 3, 2, 1, 0, 4, 2, 1, 0, 5, 2, 1, 0, 5, 2, 1, 0, 5, 2, 1, 6, 0, 1, 2, 1, 6, 0, 6, 0, 1, 2, 6, 0, 6, 0, 1, 2, 1, 0, 6, 1, 6, 0, 1, 2, 1, 6, 4, 1, 0, 6, 2, 7, 6, 1, 2, 5, 6, 2, 1, 0, 6, 7, 6, 2, 5, 6, 5, 3, 1, 6, 1, 6, 0, 6, 3, 6, 5, 2, 7, 6, 0, 6, 5, 3, 2, 7, 3, 2, 7, 5, 6, 2], [1, 0, 6, 3, 7, 2, 5, 6, 1, 5, 7, 5, 6, 0, 5, 7, 3, 1, 7, 5, 7, 6, 0, 6, 2, 7, 2, 5, 7, 4, 2, 6, 0, 6, 2, 6, 7, 4, 2, 3, 2, 6, 0, 6, 8, 6, 7, 9, 6, 7, 3, 4, 3, 6, 0, 6, 5, 8, 2, 4, 7, 6, 8, 7, 2, 4, 6, 0, 6, 2, 4, 2, 7, 8, 2, 3, 6, 0, 6, 3, 6, 5, 4, 3, 2, 4, 6, 0, 6, 0, 6, 1, 5, 3, 4, 5, 6, 0, 6, 3], [2, 3, 6, 0, 6, 2, 3, 6, 0, 6, 0]];
let palette_colors = [64512, 30976, 63106, 58753, 52354, 47936, 14656, 63296, 60033, 65503];
let width = 24;
let height = 27;
let nombre_occurence: number = (list_colors.length - 1) * (list_colors[0].length) + list_colors[list_colors.length - 1].length;
return {
listOfColorNumber: list_colors_number,
listOfColor: list_colors,
paletteOfColors: palette_colors,
width: width,
height: height,
numberOfOccurence: nombre_occurence
};
}
function displayPikachuStay() {
let list_colors_number = [[4, 2, 18, 3, 18, 1, 1, 1, 6, 3, 8, 1, 1, 1, 1, 4, 5, 4, 2, 2, 1, 2, 1, 3, 1, 1, 1, 2, 4, 1, 1, 1, 2, 1, 1, 5, 1, 2, 1, 3, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 1, 2, 1, 1, 1, 1, 1, 6, 1, 1, 2, 1, 1, 1, 3, 1, 1, 1, 1, 8, 1, 2, 1, 4, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 7, 1], [1, 1, 1, 1, 2, 1, 3, 1, 1, 1, 3, 1, 1, 1, 2, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 1, 1, 5, 1, 1, 1, 4, 2, 2, 1, 1, 3, 5, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 8, 1, 1, 3, 1, 2, 1, 1, 1, 1, 1, 8, 1, 1, 4, 2, 2, 1, 1, 10, 1, 1, 1, 1, 4, 1, 1, 1, 11, 2, 1, 3, 2, 1, 15, 2, 1, 1, 1, 1, 17, 3, 10]];
let list_colors = [[0, 1, 0, 1, 0, 1, 2, 1, 0, 1, 0, 1, 3, 4, 1, 0, 1, 0, 2, 0, 1, 4, 1, 0, 1, 5, 2, 1, 0, 2, 5, 2, 0, 1, 5, 1, 3, 4, 1, 0, 2, 6, 5, 2, 0, 1, 6, 5, 3, 4, 5, 3, 4, 1, 0, 2, 5, 3, 5, 2, 0, 1, 5, 4, 5, 1, 0, 2, 6, 5, 3, 5, 2, 0, 6, 4, 6, 2, 5, 3, 5, 7, 2, 1, 3, 4, 3, 6, 1, 2, 3, 5, 2, 1, 0, 1, 3, 1, 4, 3], [5, 1, 3, 6, 1, 2, 0, 1, 8, 1, 4, 9, 1, 4, 3, 5, 6, 3, 5, 2, 0, 1, 6, 3, 7, 4, 1, 8, 5, 3, 2, 6, 3, 2, 0, 1, 3, 7, 3, 8, 3, 5, 6, 1, 0, 1, 5, 4, 6, 5, 6, 5, 4, 3, 2, 1, 0, 2, 6, 3, 6, 4, 5, 3, 7, 2, 1, 0, 1, 7, 3, 6, 3, 6, 1, 0, 1, 7, 3, 7, 3, 5, 7, 1, 0, 1, 2, 7, 5, 1, 0, 1, 2, 6, 7, 1, 0, 1, 0]];
let palette_colors = [64512, 14656, 30976, 63106, 63296, 58753, 47936, 52354, 60033, 65503];
let width = 21;
let height = 21;
let nombre_occurence: number = (list_colors.length - 1) * (list_colors[0].length) + list_colors[list_colors.length - 1].length;
return {
listOfColorNumber: list_colors_number,
listOfColor: list_colors,
paletteOfColors: palette_colors,
width: width,
height: height,
numberOfOccurence: nombre_occurence
};
}