Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project Labyrinth #217

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
dda5843
Half of code-along code
OscarSindemark Apr 25, 2023
df9a52a
saved more
OscarSindemark Apr 25, 2023
453f252
username form appears!
OscarSindemark Apr 25, 2023
1b2ed41
added loading-, labyrinth- and game-components, functions and comments
AnnikaSonnek Apr 25, 2023
82a1878
start screen fixed, shows description and loading spinner
OscarSindemark Apr 26, 2023
05ddc4e
changed structure of state, added currentPosition
AnnikaSonnek Apr 26, 2023
d5b9d33
got actions-buttons-mapping to work, displayed description from actions
AnnikaSonnek Apr 26, 2023
cba50b9
second fetch-request, loading-component on top, restart button+function
AnnikaSonnek Apr 26, 2023
f984e74
added some styling
OscarSindemark Apr 27, 2023
e9c1d28
started with styling for startscreen-component
AnnikaSonnek Apr 27, 2023
f7ac3a9
fixed starting-screen (with media quieries), loading and footer-compo…
AnnikaSonnek Apr 27, 2023
d7427f4
added images and barebones css
OscarSindemark Apr 28, 2023
2c2f498
Merge branch 'master' into labyrinth-branch
OscarSindemark Apr 28, 2023
6d81b57
installed lottie
OscarSindemark Apr 28, 2023
684960b
lottie dependency
AnnikaSonnek Apr 28, 2023
16044f3
fixed styling of animation, labyrinth
AnnikaSonnek Apr 28, 2023
d3f0a82
fixed styling, added new font
AnnikaSonnek Apr 28, 2023
aa2d76b
changed size of images
AnnikaSonnek Apr 28, 2023
34159d9
font of button
AnnikaSonnek Apr 28, 2023
711f605
media query font laptop
AnnikaSonnek Apr 28, 2023
72ee83a
Merge pull request #1 from AnnikaSonnek/master
AnnikaSonnek May 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 114 additions & 0 deletions code/StructureOfAPI.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
export const rooms = {
1: {
coordinates: '0,0',
description:
'You find yourself under a large archway opening into a cavern. A sense of purpose fills you.',
actions: [
{
type: 'move',
direction: 'East',
description:
"You see a worn sign that says 'The Temple of *ech*igo'. Some of the letters are missing. An overgrown paved path leads to the East",
},
],
},
2: {
coordinates: '1,0',
description: "It's warmer here. Rays of light penetrate the ceiling.",
actions: [
{
type: 'move',
direction: 'North',
description:
"A rickety bridge crosses a large cavern to the north. Strange symbols '<' '>' '/' are engraved on the planks of the bridge.",
},
{
type: 'move',
direction: 'West',
description: 'You see a large archway in the distance.',
},
],
},
3: {
coordinates: '1,1',
description:
'The walls of the cavern seem to grow brighter and more colorful here.',
actions: [
{
type: 'move',
direction: 'South',
description:
'The bridge somehow looks sturdier now. Seeing it fills you with confidence.',
},
{
type: 'move',
direction: 'West',
description:
'A clear colorful pattern now marks the clearly cut stone pavers leading to the West',
},
],
},
4: {
coordinates: '0,1',
description:
'You emerge into a large, four-walled room with mechanical gadgets and bronze metal gizmos laying in a mess on the floor. They seem to have once been part of some larger moving mechanism.',
actions: [
{
type: 'move',
direction: 'North',
description:
'You hear faint sounds -- clicks and buzzing mechanical noises echoing on the other side of a door.',
},
{
type: 'move',
direction: 'East',
description:
'The colorful pathway to the East puts your mind at ease. You seem to understand the intention of the one who created it.',
},
],
},
5: {
coordinates: '0,2',
description:
'As you move through the room, the walls change colors with every step you take. The buzzing and clicking from before now seem to form one harmonious melody. They respond to your every movement.',
actions: [
{
type: 'move',
direction: 'South',
description:
'Through the door you see that the gizmos, previously scattered on the floor, have formed one complete, whirring machine.',
},
{
type: 'move',
direction: 'North',
description:
'Looking to the North, you see an arch leading to a room containing a large chest. Papers and scrolls are stuck in the mouth of the ornate container, as if someone stored them in a hurry. Empty bookshelves line the room.',
},
],
},
6: {
coordinates: '0,3',
description:
'The mouth of the chest swings open. The papers spring from the chest, whirling around your head. You shield your face, but an instant later all is calm. The papers, books and scrolls from the chest are now neatly arranged on the bookshelves around the room.',
actions: [
{
type: 'move',
direction: 'South',
description:
'A calm, faint melody flows into the room from the archway to the South. Colors bounce calmly through the threshold.',
},
{
type: 'move',
direction: 'East',
description:
'You see a bright light through an opening in the wall to the east. ',
},
],
},
7: {
coordinates: '1,3',
description:
'As you step into the light, you feel an immense relief and calm flow over you. It feels like an important journey has ended, but you get the sense that a new one is just beginning...',
actions: [],
},
}
Loading