diff --git a/public/global.css b/public/global.css index dadc02f..0eabebf 100644 --- a/public/global.css +++ b/public/global.css @@ -10,6 +10,7 @@ body { padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + position: relative; } @font-face { diff --git a/public/sound/success.wav b/public/sound/success.wav new file mode 100644 index 0000000..01e60f9 Binary files /dev/null and b/public/sound/success.wav differ diff --git a/public/sprite/22.xcf b/public/sprite/22.xcf index 0afd13e..3ef9c54 100644 Binary files a/public/sprite/22.xcf and b/public/sprite/22.xcf differ diff --git a/public/sprite/3422.png b/public/sprite/buttons.png similarity index 100% rename from public/sprite/3422.png rename to public/sprite/buttons.png diff --git a/public/sprite/fin_michael_normal.png b/public/sprite/fin_michael_normal.png new file mode 100644 index 0000000..2c71d64 Binary files /dev/null and b/public/sprite/fin_michael_normal.png differ diff --git a/public/sprite/fin_michael_wings.png b/public/sprite/fin_michael_wings.png new file mode 100644 index 0000000..e24306e Binary files /dev/null and b/public/sprite/fin_michael_wings.png differ diff --git a/public/sprite/fin_22.png b/public/sprite/michael_normal.png similarity index 100% rename from public/sprite/fin_22.png rename to public/sprite/michael_normal.png diff --git a/public/sprite/222.png b/public/sprite/michael_wings.png similarity index 100% rename from public/sprite/222.png rename to public/sprite/michael_wings.png diff --git a/public/sprite/michael_wings.xcf b/public/sprite/michael_wings.xcf new file mode 100644 index 0000000..f516232 Binary files /dev/null and b/public/sprite/michael_wings.xcf differ diff --git a/public/sprite/22.png b/public/sprite/src_michael_normal.png similarity index 100% rename from public/sprite/22.png rename to public/sprite/src_michael_normal.png diff --git a/src/App.svelte b/src/App.svelte index 20af452..2215d32 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,39 +1,23 @@ + + Heaventaker -{#if page === "game"} + -{/if} \ No newline at end of file + diff --git a/src/pages/dialog.svelte b/src/pages/dialog.svelte index 575636c..f20946c 100644 --- a/src/pages/dialog.svelte +++ b/src/pages/dialog.svelte @@ -1,5 +1,6 @@ @@ -119,6 +127,7 @@ text-align: center; margin: 15px auto; text-shadow: 0 0 6px white; + animation: shadowAppear .4s ease-out; } h2::before, h2::after { position: absolute; @@ -130,34 +139,44 @@ transform: translateY(-50%); } h2::before { - animation: successLeft .4s; + animation: successLeft .4s, appear .2s; animation-timing-function: ease-out; + animation-delay: .2s, 0; } h2::after { - animation: successRight .4s; + animation: successRight .4s, appear .2s; animation-timing-function: ease-out; + animation-delay: .2s, 0; + } + @keyframes shadowAppear { + 0% { + text-shadow: 0 0 20px white; + } + 100% { + text-shadow: 0 0 6px white; + } } @keyframes successLeft { 0% { - left: 50%; + left: 40%; width: 100px; - height: 10px; + height: 15px; } 100% { left: -60px; - width: 50px; + width: 100px; height: 2px; } } @keyframes successRight { 0% { - right: 50%; + right: 40%; width: 100px; - height: 10px; + height: 15px; } 100% { right: -60px; - width: 50px; + width: 100px; height: 2px; } } @@ -199,6 +218,6 @@ } .background .character { height: 100%; - bottom: -30px; + bottom: 0px; } \ No newline at end of file diff --git a/src/pages/overlay.svelte b/src/pages/overlay.svelte new file mode 100644 index 0000000..21e3e18 --- /dev/null +++ b/src/pages/overlay.svelte @@ -0,0 +1,35 @@ + + +
+
+ +
+
+ + \ No newline at end of file diff --git a/src/stores/characters.js b/src/stores/characters.js new file mode 100644 index 0000000..6b28b65 --- /dev/null +++ b/src/stores/characters.js @@ -0,0 +1,8 @@ +export const characters = [{ + name: "Michael", + art: "/sprite/fin_michael_normal.png", + title: "the high marshal", + poses: { + wings: "/sprite/fin_michael_wings.png" + } +}]; \ No newline at end of file diff --git a/src/stores/dialog.js b/src/stores/dialog.js new file mode 100644 index 0000000..61d355e --- /dev/null +++ b/src/stores/dialog.js @@ -0,0 +1,27 @@ +export const dialog = [{ + name: "michael_heretic", + background: "/sprite/fin_backg.png", + character: "Michael", + text: "How did you... You know what I don't even care. Heretic like you needs to be punished.", + buttons: [{ + text: "Jokes on you I'm into that shit.", + next: "michael_success" + }, { + text: "I have something to offer.", + next: "michael_failure" + }] +}, { + name: "michael_success", + background: "/sprite/fin_backg.png", + character: "Michael", + text: "Really? Well, big man: if you survive this whole ordeal, prepare a room and we shall see how into this shit you really are", + flags: ["success"], + next: "michael_heretic" +}, { + name: "michael_failure", + background: "/sprite/fin_backg.png", + character: "Michael", + text: "I also have something to offer: eat shit and die.", + pose: "wings", + next: "michael_heretic" +}]; \ No newline at end of file