mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
Add so many easter eggs
This commit is contained in:
parent
8a85033b0f
commit
39f34c15b1
7 changed files with 45 additions and 9 deletions
BIN
public/lightbar-images/barn.png
Normal file
BIN
public/lightbar-images/barn.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
BIN
public/lightbar-images/camera.png
Normal file
BIN
public/lightbar-images/camera.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
BIN
public/lightbar-images/cock.png
Normal file
BIN
public/lightbar-images/cock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
public/lightbar-images/egg.png
Normal file
BIN
public/lightbar-images/egg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
BIN
public/lightbar-images/popcorn.png
Normal file
BIN
public/lightbar-images/popcorn.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
public/lightbar-images/turkey.png
Normal file
BIN
public/lightbar-images/turkey.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
|
@ -144,7 +144,7 @@ function ParticlesCanvas() {
|
||||||
canvas.height = canvas.scrollHeight;
|
canvas.height = canvas.scrollHeight;
|
||||||
|
|
||||||
// Basic particle config
|
// Basic particle config
|
||||||
const particleCount = 260;
|
const particleCount = 265;
|
||||||
let imageParticleCount = particleCount;
|
let imageParticleCount = particleCount;
|
||||||
|
|
||||||
// Holiday overrides
|
// Holiday overrides
|
||||||
|
@ -179,14 +179,14 @@ function ParticlesCanvas() {
|
||||||
imageOverride = [
|
imageOverride = [
|
||||||
{
|
{
|
||||||
image: "/lightbar-images/ghost.png",
|
image: "/lightbar-images/ghost.png",
|
||||||
sizeRange: [28, 31] as [number, number],
|
sizeRange: [20, 33] as [number, number],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: "/lightbar-images/pumpkin.png",
|
image: "/lightbar-images/pumpkin.png",
|
||||||
sizeRange: [28, 31] as [number, number],
|
sizeRange: [25, 35] as [number, number],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
imageParticleCount = particleCount * 0.09;
|
imageParticleCount = particleCount * 0.0879;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fish easter egg
|
// Fish easter egg
|
||||||
|
@ -214,22 +214,58 @@ function ParticlesCanvas() {
|
||||||
imageOverride = [
|
imageOverride = [
|
||||||
{
|
{
|
||||||
image: "/lightbar-images/weed.png",
|
image: "/lightbar-images/weed.png",
|
||||||
sizeRange: [29, 33] as [number, number],
|
sizeRange: [32, 40] as [number, number],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
imageParticleCount = particleCount / 6.34;
|
imageParticleCount = particleCount / 6.25;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Kitty easter egg
|
// Kitty easter egg
|
||||||
const shouldShowCat = Math.floor(Math.random() * 75) < 18;
|
const shouldShowCat = Math.floor(Math.random() * 45) > 224;
|
||||||
if (shouldShowCat) {
|
if (shouldShowCat) {
|
||||||
imageOverride = [
|
imageOverride = [
|
||||||
{
|
{
|
||||||
image: "/lightbar-images/cat.png",
|
image: "/lightbar-images/cat.png",
|
||||||
sizeRange: [30, 36] as [number, number],
|
sizeRange: [30, 38] as [number, number],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
imageParticleCount = particleCount / 6.7;
|
imageParticleCount = particleCount / 6.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Movie & popcorn easter egg
|
||||||
|
const shouldShowParaphernalia = Math.floor(Math.random() * 75) > 130;
|
||||||
|
if (shouldShowParaphernalia) {
|
||||||
|
imageOverride = [
|
||||||
|
{
|
||||||
|
image: "/lightbar-images/camera.png",
|
||||||
|
sizeRange: [24, 32] as [number, number],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
image: "/lightbar-images/popcorn.png",
|
||||||
|
sizeRange: [18, 27] as [number, number],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
imageParticleCount = particleCount / 7.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Chicken easter egg
|
||||||
|
const shouldShow4thDecor = Math.floor(Math.random() * 750) > 130;
|
||||||
|
if (shouldShow4thDecor) {
|
||||||
|
imageOverride = [
|
||||||
|
{
|
||||||
|
image: "/lightbar-images/cock.png",
|
||||||
|
sizeRange: [25, 32] as [number, number],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
image: "/lightbar-images/egg.png",
|
||||||
|
sizeRange: [18, 24] as [number, number],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
image: "/lightbar-images/barn.png",
|
||||||
|
sizeRange: [32, 38] as [number, number],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
imageParticleCount = particleCount / 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
// HOIST THE SAIL (of particles)!
|
// HOIST THE SAIL (of particles)!
|
||||||
|
|
Loading…
Reference in a new issue