Skip to content

Commit

Permalink
finish escapte for NFTBiarritz
Browse files Browse the repository at this point in the history
  • Loading branch information
gparant committed Aug 22, 2024
1 parent 3e728c2 commit 71d7907
Show file tree
Hide file tree
Showing 65 changed files with 84,668 additions and 588 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: "Install dependencies"
Expand Down
Binary file added map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
245 changes: 214 additions & 31 deletions map.tmj

Large diffs are not rendered by default.

5,239 changes: 4,698 additions & 541 deletions package-lock.json

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "workadventure-map-starter-kit",
"version": "3.3.3",
"version": "3.3.11",
"license": "MIT",
"type": "module",
"scripts": {
"dev": "vite",
"start": "vite",
Expand All @@ -10,12 +11,13 @@
},
"devDependencies": {
"@types/node": "^18.15.11",
"@workadventure/iframe-api-typings": "^1.15.10",
"@workadventure/iframe-api-typings": "^1.20.2",
"dotenv": "^16.3.1",
"typescript": "^4.9.5",
"vite": "^4.3.9",
"wa-map-optimizer-vite": "^1.1.15"
"vite": "^4.5.2",
"wa-map-optimizer-vite": "^1.1.28"
},
"dependencies": {
"@workadventure/scripting-api-extra": "^1.4.6"
"@workadventure/scripting-api-extra": "^1.4.8"
}
}
Binary file added public/boat.mp3
Binary file not shown.
Binary file added public/fire.wav
Binary file not shown.
Binary file added public/harp.wav
Binary file not shown.
Binary file added public/ocean.wav
Binary file not shown.
17 changes: 17 additions & 0 deletions public/secretSentence/css.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
*{
font-family: Roboto,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";
background-color: #1c1c29;
color: white;
}

body{
text-align: center;
display: flex;
flex-direction: column;
align-content: center;
justify-content: center;
align-items: center;
height: calc(100vh - 40px);
padding: 20px;
margin: 0;
}
12 changes: 12 additions & 0 deletions public/secretSentence/images/key-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/secretSentence/images/word1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/secretSentence/images/word2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/secretSentence/images/word3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/secretSentence/images/word4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/secretSentence/images/word5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/secretSentence/images/word6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions public/secretSentence/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<html>
<head>
<title>The Game</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="./css.css">
</head>
<body>
<h1>Congrats, you found the new word 🎉</h1>
<p>The code is: <span id="code" style="font-weight: bold;"></span></p>
<!-- show badge with picture associated -->
<div class="badges" style="display:flex;flex-direction: row;justify-content: center;align-items: center;">
<img id="badgefoundword1" src="./images/word1.png" alt="badge word 1" style="display: none; width: 60px;">
<img id="badgefoundword2" src="./images/word2.png" alt="badge word 2" style="display: none; width: 60px;">
<img id="badgefoundword3" src="./images/word3.png" alt="badge word 3" style="display: none; width: 60px;">
<img id="badgefoundword4" src="./images/word4.png" alt="badge word 4" style="display: none; width: 60px;">
<img id="badgefoundword5" src="./images/word5.png" alt="badge word 5" style="display: none; width: 60px;">
<img id="badgefoundword6" src="./images/word6.png" alt="badge word 6" style="display: none; width: 60px;">
</div>
<p style="font-size: 30px;">
<span id="word1">---</span>
<span id="word2">--------</span>
<span id="word3">----</span>
<span id="word4">----</span>
<span id="word5">--</span>
<span id="word6">-----</span>
</p>

<!-- show badge with picture associated -->
<div class="badges" style="display:flex;flex-direction: row;justify-content: center;align-items: center;">
<img id="badgeword1" src="./images/word1.png" alt="badge word 1" style="display: none;">
<img id="badgeword2" src="./images/word2.png" alt="badge word 2" style="display: none;">
<img id="badgeword3" src="./images/word3.png" alt="badge word 3" style="display: none;">
<img id="badgeword4" src="./images/word4.png" alt="badge word 4" style="display: none;">
<img id="badgeword5" src="./images/word5.png" alt="badge word 5" style="display: none;">
<img id="badgeword6" src="./images/word6.png" alt="badge word 6" style="display: none;">
</div>



<script type="text/javascript">
const sentence = {
word1: 'NFT',
word2: 'Biarritz',
word3: '2023',
word4: 'is',
word5: 'the',
word6: 'madness',
}
const url = new URL(window.location.toString());
const wordsFound = url.searchParams.get("words");
// show words find by user
for(const word of Object.keys(sentence)){
if(wordsFound.indexOf(word) != -1){
document.getElementById(word).innerHTML = sentence[word];
document.getElementById(`badge${word}`).style.display = "block";
}
}

// show the last word find by user
const currentWordFound = url.searchParams.get("current");
document.getElementById("code").innerHTML = sentence[currentWordFound]??'';
document.getElementById(`badgefound${currentWordFound}`).style.display = "block";
</script>
</body>
</html>
72 changes: 72 additions & 0 deletions public/secretSentence/review.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<html>
<head>
<title>Review</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="./css.css">
</head>
<body>
<h1>The secret sentence 👀</h1>
<!-- show words found -->
<p style="font-size: 30px;">
<span id="word1">---</span>
<span id="word2">--------</span>
<span id="word3">----</span>
<span id="word4">----</span>
<span id="word5">--</span>
<span id="word6">-----</span>
</p>

<!-- show badge with picture associated -->
<div class="badges" style="display:flex;flex-direction: row;justify-content: center;align-items: center;">
<img id="badgeword1" src="./images/word1.png" alt="badge word 1" style="display: none;">
<img id="badgeword2" src="./images/word2.png" alt="badge word 2" style="display: none;">
<img id="badgeword3" src="./images/word3.png" alt="badge word 3" style="display: none;">
<img id="badgeword4" src="./images/word4.png" alt="badge word 4" style="display: none;">
<img id="badgeword5" src="./images/word5.png" alt="badge word 5" style="display: none;">
<img id="badgeword6" src="./images/word6.png" alt="badge word 6" style="display: none;">
</div>

<p style="display: none;" id="indiceTitle">Ton dernier indice :</p>
<p id="lastIndice" style="font-weight: bold;"></p>

<script type="text/javascript">
const sentence = {
word1: 'NFT',
word2: 'Biarritz',
word3: '2023',
word4: 'is',
word5: 'the',
word6: 'madness',
}

const indices = {
// translate word1 variable in english
word1: "Do you like chess games with the captain on the deck ?",
word2: "You will discover a certain taste for hunting in the hold !",
word3: "A treasure is in plain sight !",
word4: "Well hidden, you have to venture into the darkest corners of the hold (the ladder will be useful) !",
word5: "Have you ever seen the captain's quarters and the treasure it contains ?",
word6: "On a boat, a captain, a treasure, a secret path, a deserted island... You can say a prayer there !",
}

const url = new URL(window.location.toString());
const wordsFound = url.searchParams.get("words");
// show words find by user
if(wordsFound){
for(const word of Object.keys(sentence)){
if(wordsFound.indexOf(word) != -1){
document.getElementById(word).innerHTML = sentence[word];
document.getElementById(`badge${word}`).style.display = "block";
}
}
}

// show the last indice
const currentIndice = url.searchParams.get("lastIndice");
if(currentIndice != undefined && currentIndice !== "noindice" && currentIndice !== "undefined"){
document.getElementById("indiceTitle").style.display = "block";
document.getElementById("lastIndice").innerHTML = indices[currentIndice];
}
</script>
</body>
</html>
73 changes: 73 additions & 0 deletions public/secretSentence/rules.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<html>
<head>
<title>Rules</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="./css.css">
<style>
@media (width < 900px) {
body{
display: block;
font-weight: 500!important;
}
section:nth-child(1){
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 1;
display: flex;
justify-content: center;
align-items: center;
align-content: center;
}
section:nth-child(2){
z-index: 2;
background-color: #1c1c29a7;
width: calc(100vw - 8rem);
height: calc(100vh - 8rem);
display: flex;
flex-direction: column;
align-content: flex-start;
justify-content: center;
padding: 4rem!important;
margin: 0!important;
}
p{
background: none;
}
span{
background: #56EAFF;
color: #1c1c29;
}
}
</style>
</head>
<body style="margin: 0; padding: 0; font-weight: 200; height: 100vh;">
<div class="container" style="display: flex; flex-direction: row; text-align: start; align-items: center;">
<section>
<img src="./images/nftgame-background.png" alt="logo" style="max-height: 100vh;">
</section>
<section style="margin-left: 20px; padding: 1rem;">
<p class="inEnglish">Adventurer,</p>
<p>Welcome aboard the Galion ship! An exciting puzzle awaits you. You must discover the secret sentence made up of 6 words. Each fragment of the sentence is numerically encoded in objects present on the map. You must find the objects, assemble the sentence to try to win your Woka NFT 😍</p>


<p style="font-weight: bold;">Règles du Jeu :</p>

<p style="margin: 0;margin-bottom: 8px;"><span style="font-weight: bold;">🗺️ Find objets</span>: <span style="font-weight: bold;">6 objets</span> to discover to complete the secret sentence. Each object discovered allows to complete the secret sentence and to win the digital key.</p>

<p style="margin: 0;margin-bottom: 8px;"><span style="font-weight: bold;">🔍 The clues</span>: throughout the game, <span style="font-weight: bold;">clues</span> will be given to you to help you find the objects of your quest.</p>

<p style="margin: 0;margin-bottom: 8px;"><span style="font-weight: bold;">🔐 End of game</span>: once the secret sentence is completed, you will have to <span style="font-weight: bold;">find the place</span> to validate the end of the game. If you access the place before you have found all the items to complete the secret sentence, you will not be able to access the end of the game but clues will be given to you to continue searching.</p>

<p style="margin: 0;margin-bottom: 8px;"><span style="font-weight: bold;">🎁 Reward</span>: end of game validated, you can register and try to <span style="font-weight: bold;">win a Woka NFT</span>.</p>

<p>Get ready to take up the challenge, to call on your skills and to discover the secrets hidden on board the Galion boat. Good luck, dear adventurers!</p>

<p style="margin: 0;">Cordially,</p>
<p style="margin: 0;font-weight: bold;">The WorkAdventure crew</p>
</section>
</div>
</body>
</html>
71,026 changes: 71,026 additions & 0 deletions shaka.ai

Large diffs are not rendered by default.

Binary file added shaka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 71d7907

Please sign in to comment.