Skip to content

Commit

Permalink
Implement turns
Browse files Browse the repository at this point in the history
  • Loading branch information
jennie committed Nov 9, 2023
1 parent de73a47 commit 5024224
Show file tree
Hide file tree
Showing 4 changed files with 241 additions and 249 deletions.
12 changes: 6 additions & 6 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,19 +141,19 @@ div[data-next] {
transform: scale(1.1);
}

.planet-container1 {
.planet-container0 {
grid-area: p1;
}
.planet-container2 {
.planet-container1 {
grid-area: p2;
}
.planet-container3 {
.planet-container2 {
grid-area: p3;
}
.planet-container4 {
.planet-container3 {
grid-area: p4;
}
.planet-container5 {
.planet-container4 {
grid-area: p5;
}
.planet-container-player {
Expand All @@ -164,7 +164,7 @@ div[data-next] {
} */

.inactive {
@apply opacity-25;
@apply opacity-25 pointer-events-none;
}
.next-turn-message {
@apply fixed top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 bg-opacity-90 px-4 py-2 border border-gray-300 shadow rounded-lg text-center bg-white z-50;
Expand Down
11 changes: 6 additions & 5 deletions twine_src/css/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -2035,23 +2035,23 @@ div[data-next]:hover{
transform: scale(1.1);
}

.planet-container1 {
.planet-container0 {
grid-area: p1;
}

.planet-container2 {
.planet-container1 {
grid-area: p2;
}

.planet-container3 {
.planet-container2 {
grid-area: p3;
}

.planet-container4 {
.planet-container3 {
grid-area: p4;
}

.planet-container5 {
.planet-container4 {
grid-area: p5;
}

Expand All @@ -2064,6 +2064,7 @@ div[data-next]:hover{
} */

.inactive{
pointer-events: none;
opacity: 0.25;
}

Expand Down
44 changes: 37 additions & 7 deletions twine_src/main.twee
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Jammy Jam
style="width: <%= setup.game.energy / 700 * 100 %>%"></div>
</div>
<div class="ml-6 block text-sm">
<span id="turnCounter"><%= 7 - setup.game.turn %> weeks to the show!</span>
<span id="turnCounter"><%= 7 - s.turn %> weeks to the show!</span>
</div>

</div>
Expand Down Expand Up @@ -117,22 +117,52 @@ Jammy Jam
</script>


:: Melodic Quest
:: Melodic Quest [scenario]
The Intergalactic Orchestra has lost its melody, scattering notes across the cosmos. Retrieve the musical fragments to restore harmony to the galaxy.

[[Next...->Melodic Quest 2]]

:: Melodic Quest 2

Arrived at the second passage!
Let's see if I can find the notes…

<div class="passage-choices">
<span onclick='setup.completeScenario(200);'>Solve puzzles (+200 energy)</span>
<!-- <span onclick='setup.addressPlanetaryNeed(1);'>Address need</span> -->
[[Forget it…|Map Screen]]
<span onclick='setup.completeScenario();'>Connect</span>
<span onclick="setup.returnToMap()">Move on…</span>
</div>

[[Back->Melodic Quest]]

:: Quantum Conundrum [scenario]

A quantum computer has gone **haywire**, creating chaos in the time-space continuum. Solve complex puzzles to recalibrate the machine and stabilize reality.

[[Next...->Quantum Conundrum 2]]

:: Quantum Conundrum 2 [scenario]

I have no idea how to solve these puzzles, but i'll give it my best shot…

<div class="passage-choices">
<span onclick='setup.completeScenario();'>Connect</span>
<span onclick="setup.returnToMap()">Move on…</span>
</div>

:: Stellar Cradle
A newborn nebula is struggling to form stars. Gather stardust and cosmic energy to nurture its growth and witness the birth of new suns.

[[Next...->Stellar Cradle 2]]

:: Stellar Cradle 2

Gathering stardust might be fun?


<div class="passage-choices">
<span onclick='setup.completeScenario();'>Connect</span>
<span onclick="setup.returnToMap()">Move on…</span>
</div>



:: HelpPlanets
[[Back|Map Screen]]
Expand Down
Loading

0 comments on commit 5024224

Please sign in to comment.