diff --git a/css/style.css b/css/style.css index 468dea8..27830ef 100644 --- a/css/style.css +++ b/css/style.css @@ -4,11 +4,11 @@ @font-face { font-family: comic-sans; - src: url("/assets/fonts/comic-sans.ttf"); + src: url("/src/assets/fonts/comic-sans.ttf"); } @font-face { font-family: vhs; - src: url("/assets/fonts/vhs.ttf"); + src: url("/src/assets/fonts/vhs.ttf"); } :root { @@ -40,13 +40,13 @@ body { font-size: var(--font-size); background: var(--background); - cursor: url("/assets/images/ui/cursor.png") 0 0, auto !important; + cursor: url("/src/assets/images/ui/cursor.png") 0 0, auto !important; } ::-webkit-scrollbar { display: none; } *[contenteditable]:hover, input:hover { - cursor: url("/assets/images/ui/cursor-text.png") 9 15, auto; + cursor: url("/src/assets/images/ui/cursor-text.png") 9 15, auto; } /* Section */ @@ -179,7 +179,7 @@ code { margin: 30px 0; align-items: stretch; - background-image: url("/assets/images/ui/cheque.png"); + background-image: url("/src/assets/images/ui/cheque.png"); font-size: 18px; font-family: var(--mono-font); image-rendering: pixelated; @@ -194,7 +194,7 @@ code { left: 0; bottom: calc(100% - 1px); - background-image: url("/assets/images/ui/cheque-top.png"); + background-image: url("/src/assets/images/ui/cheque-top.png"); } .cheque::after { scale: -1; @@ -222,7 +222,7 @@ code { justify-content: center; text-align: center; - background-image: url(/assets/images/ui/paper.png); + background-image: url("/src/assets/images/ui/paper.png"); background-size: 100% 100%; font-family: var(--fancy-font); font-size: 18px; @@ -237,7 +237,7 @@ code { margin: 30px 0; - background-image: url("/assets/images/ui/panel.png"); + background-image: url("/src/assets/images/ui/panel.png"); font-size: 16px; font-family: var(--vhs-font); color: var(--white); @@ -253,7 +253,7 @@ code { left: 0; bottom: calc(100% - 1px); - background-image: url("/assets/images/ui/panel-top.png"); + background-image: url("/src/assets/images/ui/panel-top.png"); } .panel::after { scale: -1; @@ -360,7 +360,7 @@ button { font-size: var(--font-size); border: none; - cursor: url("/assets/images/ui/cursor-pointer.png") 7 0, auto; + cursor: url("/src/assets/images/ui/cursor-pointer.png") 7 0, auto; } button img, button .icon { @@ -384,7 +384,7 @@ button .icon { width: 20px; height: 20px; padding: 0; - background-image: url("/assets/images/ui/smiley-button.png"); + background-image: url("/src/assets/images/ui/smiley-button.png"); image-rendering: pixelated; } .physical-button { @@ -400,7 +400,7 @@ button .icon { font-family: var(--vhs-font); font-size: 18px; background-color: transparent; - background-image: url("/assets/images/ui/physical-button.png"); + background-image: url("/src/assets/images/ui/physical-button.png"); background-size: 180px 60px; background-position: 0 0; image-rendering: pixelated; @@ -410,7 +410,7 @@ button .icon { } .physical-button.small { width: 60px; - background-image: url("/assets/images/ui/small-physical-button.png"); + background-image: url("/src/assets/images/ui/small-physical-button.png"); background-size: 120px 60px; } .physical-button.small:active { @@ -433,7 +433,7 @@ input { a { color: var(--blue); text-decoration: none; - cursor: url("/assets/images/ui/cursor-pointer.png") 7 0, auto; + cursor: url("/src/assets/images/ui/cursor-pointer.png") 7 0, auto; } a:hover { text-decoration: underline; @@ -491,7 +491,7 @@ a:hover .pointer { width: 40px; height: 30px; - background-image: url("/assets/images/ui/speed.png"); + background-image: url("/src/assets/images/ui/speed.png"); background-size: 80px 30px; background-position: 0 0; } @@ -511,7 +511,7 @@ a:hover .pointer { /* Fancy things */ .substance { - background: url("/assets/images/ui/substance.png"); + background: url("/src/assets/images/ui/substance.png"); animation: substance 10s linear infinite; } .rainbow-text { @@ -579,7 +579,7 @@ a:hover .pointer { width: 32px; height: 32px; - background-image: url("/assets/images/ui/play.png"); + background-image: url("/src/assets/images/ui/play.png"); background-size: 64px 32px; background-position: 0 0; pointer-events: none; diff --git a/index.html b/index.html index acaac24..8facf64 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + @@ -17,7 +17,7 @@
please wait utill this THING is ready... - skull + skull
@@ -42,7 +42,7 @@
cog cog @@ -94,15 +94,15 @@
github - pointer + pointer telegram - pointer + pointer vk - pointer + pointer
@@ -176,7 +176,7 @@

*** bogdanov ***

- love me + love me
@@ -197,8 +197,8 @@

*** bogdanov ***

- - + +
@@ -211,26 +211,26 @@

*** bogdanov ***

- thumb up - thumb up - thumb up - thumb up - thumb up - thumb up + thumb up + thumb up + thumb up + thumb up + thumb up + thumb up
- - vcr - lags - tv + + vcr + lags + tv --:--
- footer + footer diff --git a/assets/audios/click.mp3 b/src/assets/audios/click.mp3 similarity index 100% rename from assets/audios/click.mp3 rename to src/assets/audios/click.mp3 diff --git a/assets/audios/cola.mp3 b/src/assets/audios/cola.mp3 similarity index 100% rename from assets/audios/cola.mp3 rename to src/assets/audios/cola.mp3 diff --git a/assets/audios/goofy-throw-1.mp3 b/src/assets/audios/goofy-throw-1.mp3 similarity index 100% rename from assets/audios/goofy-throw-1.mp3 rename to src/assets/audios/goofy-throw-1.mp3 diff --git a/assets/audios/goofy-throw-2.mp3 b/src/assets/audios/goofy-throw-2.mp3 similarity index 100% rename from assets/audios/goofy-throw-2.mp3 rename to src/assets/audios/goofy-throw-2.mp3 diff --git a/assets/audios/nerd.mp3 b/src/assets/audios/nerd.mp3 similarity index 100% rename from assets/audios/nerd.mp3 rename to src/assets/audios/nerd.mp3 diff --git a/assets/audios/raaah.mp3 b/src/assets/audios/raaah.mp3 similarity index 100% rename from assets/audios/raaah.mp3 rename to src/assets/audios/raaah.mp3 diff --git a/assets/audios/sad.mp3 b/src/assets/audios/sad.mp3 similarity index 100% rename from assets/audios/sad.mp3 rename to src/assets/audios/sad.mp3 diff --git a/assets/audios/scream.mp3 b/src/assets/audios/scream.mp3 similarity index 100% rename from assets/audios/scream.mp3 rename to src/assets/audios/scream.mp3 diff --git a/assets/audios/slide.mp3 b/src/assets/audios/slide.mp3 similarity index 100% rename from assets/audios/slide.mp3 rename to src/assets/audios/slide.mp3 diff --git a/assets/audios/spring.mp3 b/src/assets/audios/spring.mp3 similarity index 100% rename from assets/audios/spring.mp3 rename to src/assets/audios/spring.mp3 diff --git a/assets/audios/tada.mp3 b/src/assets/audios/tada.mp3 similarity index 100% rename from assets/audios/tada.mp3 rename to src/assets/audios/tada.mp3 diff --git a/assets/audios/tear-1.mp3 b/src/assets/audios/tear-1.mp3 similarity index 100% rename from assets/audios/tear-1.mp3 rename to src/assets/audios/tear-1.mp3 diff --git a/assets/audios/tear-2.mp3 b/src/assets/audios/tear-2.mp3 similarity index 100% rename from assets/audios/tear-2.mp3 rename to src/assets/audios/tear-2.mp3 diff --git a/assets/audios/throw-1.mp3 b/src/assets/audios/throw-1.mp3 similarity index 100% rename from assets/audios/throw-1.mp3 rename to src/assets/audios/throw-1.mp3 diff --git a/assets/audios/throw-2.mp3 b/src/assets/audios/throw-2.mp3 similarity index 100% rename from assets/audios/throw-2.mp3 rename to src/assets/audios/throw-2.mp3 diff --git a/assets/audios/yell.mp3 b/src/assets/audios/yell.mp3 similarity index 100% rename from assets/audios/yell.mp3 rename to src/assets/audios/yell.mp3 diff --git a/assets/fonts/comic-sans.ttf b/src/assets/fonts/comic-sans.ttf similarity index 100% rename from assets/fonts/comic-sans.ttf rename to src/assets/fonts/comic-sans.ttf diff --git a/assets/fonts/vhs.ttf b/src/assets/fonts/vhs.ttf similarity index 100% rename from assets/fonts/vhs.ttf rename to src/assets/fonts/vhs.ttf diff --git a/assets/gifs/bridge.gif b/src/assets/gifs/bridge.gif similarity index 100% rename from assets/gifs/bridge.gif rename to src/assets/gifs/bridge.gif diff --git a/assets/gifs/clock.gif b/src/assets/gifs/clock.gif similarity index 100% rename from assets/gifs/clock.gif rename to src/assets/gifs/clock.gif diff --git a/assets/gifs/flower.gif b/src/assets/gifs/flower.gif similarity index 100% rename from assets/gifs/flower.gif rename to src/assets/gifs/flower.gif diff --git a/assets/gifs/lags.gif b/src/assets/gifs/lags.gif similarity index 100% rename from assets/gifs/lags.gif rename to src/assets/gifs/lags.gif diff --git a/assets/gifs/love-me.gif b/src/assets/gifs/love-me.gif similarity index 100% rename from assets/gifs/love-me.gif rename to src/assets/gifs/love-me.gif diff --git a/assets/gifs/me.gif b/src/assets/gifs/me.gif similarity index 100% rename from assets/gifs/me.gif rename to src/assets/gifs/me.gif diff --git a/assets/gifs/new-year.gif b/src/assets/gifs/new-year.gif similarity index 100% rename from assets/gifs/new-year.gif rename to src/assets/gifs/new-year.gif diff --git a/assets/gifs/skull.gif b/src/assets/gifs/skull.gif similarity index 100% rename from assets/gifs/skull.gif rename to src/assets/gifs/skull.gif diff --git a/assets/gifs/summer.gif b/src/assets/gifs/summer.gif similarity index 100% rename from assets/gifs/summer.gif rename to src/assets/gifs/summer.gif diff --git a/assets/gifs/table.gif b/src/assets/gifs/table.gif similarity index 100% rename from assets/gifs/table.gif rename to src/assets/gifs/table.gif diff --git a/assets/gifs/thumb-up.gif b/src/assets/gifs/thumb-up.gif similarity index 100% rename from assets/gifs/thumb-up.gif rename to src/assets/gifs/thumb-up.gif diff --git a/assets/gifs/wow.gif b/src/assets/gifs/wow.gif similarity index 100% rename from assets/gifs/wow.gif rename to src/assets/gifs/wow.gif diff --git a/assets/images/clouds/1.png b/src/assets/images/clouds/1.png similarity index 100% rename from assets/images/clouds/1.png rename to src/assets/images/clouds/1.png diff --git a/assets/images/clouds/10.png b/src/assets/images/clouds/10.png similarity index 100% rename from assets/images/clouds/10.png rename to src/assets/images/clouds/10.png diff --git a/assets/images/clouds/11.png b/src/assets/images/clouds/11.png similarity index 100% rename from assets/images/clouds/11.png rename to src/assets/images/clouds/11.png diff --git a/assets/images/clouds/12.png b/src/assets/images/clouds/12.png similarity index 100% rename from assets/images/clouds/12.png rename to src/assets/images/clouds/12.png diff --git a/assets/images/clouds/13.png b/src/assets/images/clouds/13.png similarity index 100% rename from assets/images/clouds/13.png rename to src/assets/images/clouds/13.png diff --git a/assets/images/clouds/14.png b/src/assets/images/clouds/14.png similarity index 100% rename from assets/images/clouds/14.png rename to src/assets/images/clouds/14.png diff --git a/assets/images/clouds/15.png b/src/assets/images/clouds/15.png similarity index 100% rename from assets/images/clouds/15.png rename to src/assets/images/clouds/15.png diff --git a/assets/images/clouds/16.png b/src/assets/images/clouds/16.png similarity index 100% rename from assets/images/clouds/16.png rename to src/assets/images/clouds/16.png diff --git a/assets/images/clouds/2.png b/src/assets/images/clouds/2.png similarity index 100% rename from assets/images/clouds/2.png rename to src/assets/images/clouds/2.png diff --git a/assets/images/clouds/3.png b/src/assets/images/clouds/3.png similarity index 100% rename from assets/images/clouds/3.png rename to src/assets/images/clouds/3.png diff --git a/assets/images/clouds/4.png b/src/assets/images/clouds/4.png similarity index 100% rename from assets/images/clouds/4.png rename to src/assets/images/clouds/4.png diff --git a/assets/images/clouds/5.png b/src/assets/images/clouds/5.png similarity index 100% rename from assets/images/clouds/5.png rename to src/assets/images/clouds/5.png diff --git a/assets/images/clouds/6.png b/src/assets/images/clouds/6.png similarity index 100% rename from assets/images/clouds/6.png rename to src/assets/images/clouds/6.png diff --git a/assets/images/clouds/7.png b/src/assets/images/clouds/7.png similarity index 100% rename from assets/images/clouds/7.png rename to src/assets/images/clouds/7.png diff --git a/assets/images/clouds/8.png b/src/assets/images/clouds/8.png similarity index 100% rename from assets/images/clouds/8.png rename to src/assets/images/clouds/8.png diff --git a/assets/images/clouds/9.png b/src/assets/images/clouds/9.png similarity index 100% rename from assets/images/clouds/9.png rename to src/assets/images/clouds/9.png diff --git a/assets/images/cog.png b/src/assets/images/cog.png similarity index 100% rename from assets/images/cog.png rename to src/assets/images/cog.png diff --git a/assets/images/crazy-font-sheet.png b/src/assets/images/crazy-font-sheet.png similarity index 100% rename from assets/images/crazy-font-sheet.png rename to src/assets/images/crazy-font-sheet.png diff --git a/assets/images/favicon.png b/src/assets/images/favicon.png similarity index 100% rename from assets/images/favicon.png rename to src/assets/images/favicon.png diff --git a/assets/images/rain.png b/src/assets/images/rain.png similarity index 100% rename from assets/images/rain.png rename to src/assets/images/rain.png diff --git a/assets/images/rain/1.png b/src/assets/images/rain/1.png similarity index 100% rename from assets/images/rain/1.png rename to src/assets/images/rain/1.png diff --git a/assets/images/rain/2.png b/src/assets/images/rain/2.png similarity index 100% rename from assets/images/rain/2.png rename to src/assets/images/rain/2.png diff --git a/assets/images/rain/3.png b/src/assets/images/rain/3.png similarity index 100% rename from assets/images/rain/3.png rename to src/assets/images/rain/3.png diff --git a/assets/images/rain/4.png b/src/assets/images/rain/4.png similarity index 100% rename from assets/images/rain/4.png rename to src/assets/images/rain/4.png diff --git a/assets/images/rain/5.png b/src/assets/images/rain/5.png similarity index 100% rename from assets/images/rain/5.png rename to src/assets/images/rain/5.png diff --git a/assets/images/rainbow.png b/src/assets/images/rainbow.png similarity index 100% rename from assets/images/rainbow.png rename to src/assets/images/rainbow.png diff --git a/assets/images/tape-hand/arm.png b/src/assets/images/tape-hand/arm.png similarity index 100% rename from assets/images/tape-hand/arm.png rename to src/assets/images/tape-hand/arm.png diff --git a/assets/images/tape-hand/hand.png b/src/assets/images/tape-hand/hand.png similarity index 100% rename from assets/images/tape-hand/hand.png rename to src/assets/images/tape-hand/hand.png diff --git a/assets/images/things/battery.png b/src/assets/images/things/battery.png similarity index 100% rename from assets/images/things/battery.png rename to src/assets/images/things/battery.png diff --git a/assets/images/things/book.png b/src/assets/images/things/book.png similarity index 100% rename from assets/images/things/book.png rename to src/assets/images/things/book.png diff --git a/assets/images/things/clock.png b/src/assets/images/things/clock.png similarity index 100% rename from assets/images/things/clock.png rename to src/assets/images/things/clock.png diff --git a/assets/images/things/disk.png b/src/assets/images/things/disk.png similarity index 100% rename from assets/images/things/disk.png rename to src/assets/images/things/disk.png diff --git a/assets/images/things/lighter.png b/src/assets/images/things/lighter.png similarity index 100% rename from assets/images/things/lighter.png rename to src/assets/images/things/lighter.png diff --git a/assets/images/things/paper.png b/src/assets/images/things/paper.png similarity index 100% rename from assets/images/things/paper.png rename to src/assets/images/things/paper.png diff --git a/assets/images/things/tape.png b/src/assets/images/things/tape.png similarity index 100% rename from assets/images/things/tape.png rename to src/assets/images/things/tape.png diff --git a/assets/images/things/uno-blue.png b/src/assets/images/things/uno-blue.png similarity index 100% rename from assets/images/things/uno-blue.png rename to src/assets/images/things/uno-blue.png diff --git a/assets/images/things/uno-red.png b/src/assets/images/things/uno-red.png similarity index 100% rename from assets/images/things/uno-red.png rename to src/assets/images/things/uno-red.png diff --git a/assets/images/tv.png b/src/assets/images/tv.png similarity index 100% rename from assets/images/tv.png rename to src/assets/images/tv.png diff --git a/assets/images/ui/cheque-top.png b/src/assets/images/ui/cheque-top.png similarity index 100% rename from assets/images/ui/cheque-top.png rename to src/assets/images/ui/cheque-top.png diff --git a/assets/images/ui/cheque.png b/src/assets/images/ui/cheque.png similarity index 100% rename from assets/images/ui/cheque.png rename to src/assets/images/ui/cheque.png diff --git a/assets/images/ui/cursor-pointer.png b/src/assets/images/ui/cursor-pointer.png similarity index 100% rename from assets/images/ui/cursor-pointer.png rename to src/assets/images/ui/cursor-pointer.png diff --git a/assets/images/ui/cursor-text.png b/src/assets/images/ui/cursor-text.png similarity index 100% rename from assets/images/ui/cursor-text.png rename to src/assets/images/ui/cursor-text.png diff --git a/assets/images/ui/cursor.png b/src/assets/images/ui/cursor.png similarity index 100% rename from assets/images/ui/cursor.png rename to src/assets/images/ui/cursor.png diff --git a/assets/images/ui/panel-top.png b/src/assets/images/ui/panel-top.png similarity index 100% rename from assets/images/ui/panel-top.png rename to src/assets/images/ui/panel-top.png diff --git a/assets/images/ui/panel.png b/src/assets/images/ui/panel.png similarity index 100% rename from assets/images/ui/panel.png rename to src/assets/images/ui/panel.png diff --git a/assets/images/ui/paper.png b/src/assets/images/ui/paper.png similarity index 100% rename from assets/images/ui/paper.png rename to src/assets/images/ui/paper.png diff --git a/assets/images/ui/physical-button.png b/src/assets/images/ui/physical-button.png similarity index 100% rename from assets/images/ui/physical-button.png rename to src/assets/images/ui/physical-button.png diff --git a/assets/images/ui/play.png b/src/assets/images/ui/play.png similarity index 100% rename from assets/images/ui/play.png rename to src/assets/images/ui/play.png diff --git a/assets/images/ui/pointer.png b/src/assets/images/ui/pointer.png similarity index 100% rename from assets/images/ui/pointer.png rename to src/assets/images/ui/pointer.png diff --git a/assets/images/ui/small-physical-button.png b/src/assets/images/ui/small-physical-button.png similarity index 100% rename from assets/images/ui/small-physical-button.png rename to src/assets/images/ui/small-physical-button.png diff --git a/assets/images/ui/smiley-button.png b/src/assets/images/ui/smiley-button.png similarity index 100% rename from assets/images/ui/smiley-button.png rename to src/assets/images/ui/smiley-button.png diff --git a/assets/images/ui/speed.png b/src/assets/images/ui/speed.png similarity index 100% rename from assets/images/ui/speed.png rename to src/assets/images/ui/speed.png diff --git a/assets/images/ui/stop.png b/src/assets/images/ui/stop.png similarity index 100% rename from assets/images/ui/stop.png rename to src/assets/images/ui/stop.png diff --git a/assets/images/ui/substance.png b/src/assets/images/ui/substance.png similarity index 100% rename from assets/images/ui/substance.png rename to src/assets/images/ui/substance.png diff --git a/assets/images/valley.png b/src/assets/images/valley.png similarity index 100% rename from assets/images/valley.png rename to src/assets/images/valley.png diff --git a/assets/images/vcr.png b/src/assets/images/vcr.png similarity index 100% rename from assets/images/vcr.png rename to src/assets/images/vcr.png diff --git a/assets/videos/promotion.mp4 b/src/assets/videos/promotion.mp4 similarity index 100% rename from assets/videos/promotion.mp4 rename to src/assets/videos/promotion.mp4 diff --git a/src/canvases/background/weather.js b/src/canvases/background/weather.js index 96308f5..babf89f 100644 --- a/src/canvases/background/weather.js +++ b/src/canvases/background/weather.js @@ -16,7 +16,7 @@ const backgroundTween = gsap.to(document.body, { ease: "none", paused: true }) -const rainbow = PIXI.Sprite.from("assets/images/rainbow.png"); +const rainbow = PIXI.Sprite.from("src/assets/images/rainbow.png"); rainbow.x = -64; rainbow.angle = -36; diff --git a/src/elements/crazy-text.js b/src/elements/crazy-text.js index 10b3d2e..8e46102 100644 --- a/src/elements/crazy-text.js +++ b/src/elements/crazy-text.js @@ -2,7 +2,7 @@ import * as PIXI from "pixi.js"; import * as utils from "../utils"; import gsap from "gsap"; -const FONT_SHEET_SOURCE = "assets/images/crazy-font-sheet.png"; +const FONT_SHEET_SOURCE = "src/assets/images/crazy-font-sheet.png"; const CHAR_SLICE_SIZE = 128; const CHAR_WIDTH = 40; const CHAR_HEIGHT = 64; diff --git a/src/objects/cloud.js b/src/objects/cloud.js index fc5815f..f341290 100644 --- a/src/objects/cloud.js +++ b/src/objects/cloud.js @@ -23,7 +23,7 @@ const CLOUDS_SOURCES_COUNT = 16; export class Cloud extends PIXI.Sprite { constructor(x=0, y=0) { - const src = `assets/images/clouds/${ utils.randomInt(0, CLOUDS_SOURCES_COUNT)+1 }.png` + const src = `src/assets/images/clouds/${ utils.randomInt(0, CLOUDS_SOURCES_COUNT)+1 }.png` super(PIXI.Texture.from(src)); this.x = this.moveX = x; diff --git a/src/objects/rain.js b/src/objects/rain.js index 8f7eb2e..c1c9f4e 100644 --- a/src/objects/rain.js +++ b/src/objects/rain.js @@ -6,7 +6,7 @@ const RAIN_SOURCES_COUNT = 5; export class Rain extends PIXI.Sprite { constructor(x=0, y=0) { - const src = `assets/images/rain/${ utils.randomInt(0, RAIN_SOURCES_COUNT)+1 }.png`; + const src = `src/assets/images/rain/${ utils.randomInt(0, RAIN_SOURCES_COUNT)+1 }.png`; super(PIXI.Texture.from(src)); this.x = x; diff --git a/src/objects/thing.js b/src/objects/thing.js index a70c345..b1ec28f 100644 --- a/src/objects/thing.js +++ b/src/objects/thing.js @@ -5,7 +5,7 @@ export const TRASH_THINGS = [...THINGS, "paper", "battery"]; export class Thing extends PIXI.TilingSprite { constructor(name, x=0, y=0) { - super(PIXI.Texture.from(`assets/images/things/${ name }.png`), 128, 128); + super(PIXI.Texture.from(`src/assets/images/things/${ name }.png`), 128, 128); this.anchor.set(.5); diff --git a/src/utils.js b/src/utils.js index 4fad626..3132d7f 100644 --- a/src/utils.js +++ b/src/utils.js @@ -52,7 +52,7 @@ export function wave(time, from=0, to=1, func=Math.cos) { } export function playSound(name, volume=1) { - const audio = new Audio(`assets/audios/${ name }.mp3`); + const audio = new Audio(`src/assets/audios/${ name }.mp3`); audio.volume = volume; audio.play(); return audio