Skip to content

Commit

Permalink
bring everything into the forest
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost committed Oct 19, 2023
1 parent c71adaf commit 688cbb5
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 144 deletions.
85 changes: 0 additions & 85 deletions core/world.css

This file was deleted.

10 changes: 8 additions & 2 deletions forest/7messy_server_zoom.p.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,14 @@
title="the dusty room with all the cables behind you"
></a>

<a-dumpling hidden persistent temperament="phlegmatic" id="narrative" title='narrative ideas' x=25 y=27.5 width=40
height=29>
<a-dumpling
id="narrative"
title='narrative ideas'
x=25 y=27.5
w=40 h=29
hidden
temperament="phlegmatic"
>
<d-iframe autoload src="/Jen/narrative.html"> </d-iframe>
</a-dumpling>

Expand Down
94 changes: 84 additions & 10 deletions index.p.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- template: dump -->
<!-- template: neutral -->
<body>
<main class="World">
<main class="ForestLayer World">
<div class="WorldName">
<br>
<h1 class="WorldName-text">
Expand Down Expand Up @@ -48,6 +48,83 @@ <h1 class="WorldName-text">
</s-cript>
</body>

<style>
body {
margin: 0;
}

/* -- World -- */
.World {
position: relative;
width: 3000px;
height: 3000px;
background:
url(/sky/sky-lofi/annharbor.png),
url(/sky/sky-lofi/brasilia.png),
url(/sky/sky-lofi/california.png),
url(/sky/sky-lofi/canberra.png),
url(/sky/sky-lofi/chicago.png),
url(/sky/sky-lofi/greenwitch.png)
;
background-blend-mode: darken;
/* background-position-x: -5%, 10%, 90%, 20%, 35%, 30%, 5%; */
background-color: #decda4;
}

/* -- World/Name -- */
.WorldName {
position: absolute;
width: 600px;
height: 357px;
top: 0;
left: 0;
background: url(/sky/cloud.png);
background: #d3d282;
background-size: auto;
background-size: cover;
border: 10px double;
mix-blend-mode: lighten;
}

.WorldName-text {
margin: 44px;
margin-top: 14px;
font-size: 76px;
text-shadow: -1px -1px 0 #00f3ff, 1px -1px 0 #ff0303, -1px 1px 0 #afff00, 1px 1px 0 #fc00a5;
}

/* -- World/Forest -- */
.WorldForest {
height: 100%;
}

.WorldForest img {
width: 100%;
object-fit: contain;
object-position: top left;
cursor: zoom-in;
}

.WorldForest button {
cursor: pointer;
margin-top: 10px;
transform: translateX(69px);
}

.WorldHack {
font-size: 20px;
cursor: pointer;
color: #D3D2A4;
position: absolute;
bottom: 0px;
width: 420px;
}

.WorldHack img {
display: block;
}
</style>

<script type="module">
import { Inventory } from "./forest/inventory.js"

Expand All @@ -62,27 +139,24 @@ <h1 class="WorldName-text">
mInventory.load()

for (const $link of $forestLinks) {
$link.addEventListener("click", onForestClicked)
$link.addEventListener("click", OnForestClicked)
}

// how do you add this stuff to the inventory proper??
$dev.addEventListener("click", onDevToggleClicked)
$dev.addEventListener("click", OnDevToggleClicked)

// -- events --
// TODO: a tag that looks like a button (so they can can link w/o hoops)
function onForestClicked() {
window.location.href = "forest/welcome.html"
function OnForestClicked() {
navigate("welcome.html")
}

function onDevToggleClicked() {
function OnDevToggleClicked() {
mInventory.addNamed("devcommentary", {
w: 80,
h: 50,
temperament: "phlegmatic",
}, false)

mInventory.save()
d.State.save()
}

// function OnDevCommentaryChanged() {
Expand Down
46 changes: 0 additions & 46 deletions layouts/dump.t.html

This file was deleted.

2 changes: 1 addition & 1 deletion layouts/neutral.t.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<!-- scripts -->
<script type="module" src="/global.js"></script>
<script type="module" src="/core/elements.js"></script>
<script type="module" src="forest.js"></script>
<script type="module" src="/forest/forest.js"></script>
</head>

<body class="Forest">
Expand Down

0 comments on commit 688cbb5

Please sign in to comment.