Compare commits

...

2 Commits

Author SHA1 Message Date
hf ab8bde5bd0 Merge pull request 'Add new canvas' (#71) from sallbet/pixelplanet-fork:canvases into master
Reviewed-on: #71
2023-08-02 13:02:20 +00:00
sallbet 7013601f1f
Add new canvas 2023-08-02 15:50:24 +03:00
5 changed files with 93 additions and 1 deletions

BIN
public/loading9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
public/preview9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -308,5 +308,50 @@
"cds": 900000,
"req": "top",
"sd": "2022-01-06"
},
"9": {
"ident": "r",
"colors": [
[ 196, 196, 196 ],
[ 109, 0, 26 ],
[ 190, 0, 57 ],
[ 255, 69, 0 ],
[ 255, 168, 0 ],
[ 255, 214, 53 ],
[ 255, 248, 184 ],
[ 0, 163, 104 ],
[ 0, 204, 120 ],
[ 126, 237, 86 ],
[ 0, 117, 111 ],
[ 0, 158, 170 ],
[ 0, 204, 192 ],
[ 36, 80, 164 ],
[ 54, 144, 234 ],
[ 81, 233, 244 ],
[ 73, 58, 193 ],
[ 106, 92, 255 ],
[ 148, 179, 255 ],
[ 129, 30, 159 ],
[ 180, 74, 192 ],
[ 228, 171, 255 ],
[ 222, 16, 127 ],
[ 255, 56 , 129 ],
[ 255, 153, 170 ],
[ 109, 72, 47 ],
[ 156, 105, 38 ],
[ 255, 180, 112 ],
[ 0, 0, 0 ],
[ 81, 82, 82 ],
[ 137, 141, 144 ],
[ 212, 215, 217 ],
[ 255, 255, 255 ]
],
"cli": 1,
"size": 4096,
"bcd": 300000,
"cds": 300000,
"ranked": false,
"req": 0,
"sd": "2023-08-01"
}
}

View File

@ -24,6 +24,7 @@ function getCanvases(t) {
6: t`PixelCanvas`,
7: t`1bit`,
8: t`Top10`,
9: t`r/place`,
};
const canvasDesc = {
0: t`Our main canvas, a huge map of the world. Place everywhere you like`,
@ -34,6 +35,7 @@ function getCanvases(t) {
6: t`Mirror of PixelCanvas`,
7: t`Black and White canvas`,
8: t`A canvas for the most active players from the the previous day. Daily ranking updates at 00:00 UTC.`,
9: t`Copy of r/place 2023 canvas. Will be present for a while.`,
};
/*
* no edit below here needed when adding/removing canvas

View File

@ -11,7 +11,7 @@ export const DEFAULT_SCALE = 3;
// default canvas that is first assumed, before real canvas data
// gets fetched via api/me
export const DEFAULT_CANVAS_ID = '0';
export const DEFAULT_CANVAS_ID = '9';
export const DEFAULT_CANVASES = {
0: {
ident: 'd',
@ -58,6 +58,51 @@ export const DEFAULT_CANVASES = {
req: -1,
sd: '2020-01-08',
},
9: {
"ident": "r",
"colors": [
[ 196, 196, 196 ],
[ 109, 0, 26 ],
[ 190, 0, 57 ],
[ 255, 69, 0 ],
[ 255, 168, 0 ],
[ 255, 214, 53 ],
[ 255, 248, 184 ],
[ 0, 163, 104 ],
[ 0, 204, 120 ],
[ 126, 237, 86 ],
[ 0, 117, 111 ],
[ 0, 158, 170 ],
[ 0, 204, 192 ],
[ 36, 80, 164 ],
[ 54, 144, 234 ],
[ 81, 233, 244 ],
[ 73, 58, 193 ],
[ 106, 92, 255 ],
[ 148, 179, 255 ],
[ 129, 30, 159 ],
[ 180, 74, 192 ],
[ 228, 171, 255 ],
[ 222, 16, 127 ],
[ 255, 56 , 129 ],
[ 255, 153, 170 ],
[ 109, 72, 47 ],
[ 156, 105, 38 ],
[ 255, 180, 112 ],
[ 0, 0, 0 ],
[ 81, 82, 82 ],
[ 137, 141, 144 ],
[ 212, 215, 217 ],
[ 255, 255, 255 ]
],
"cli": 1,
"size": 4096,
"bcd": 300000,
"cds": 300000,
"ranked": false,
"req": 0,
"sd": "2023-08-01"
}
};
export const TILE_LOADING_IMAGE = './loading.png';