-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
executable file
·181 lines (162 loc) · 11.9 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<LINK href="style.css?version=<?php echo rand();?>" rel="stylesheet" type="text/css">
<link rel="icon" href="res/img/favicon.png" />
<title>ADVNTURE</title>
<?php
include_once "database.php";
include_once "biome.php";
$db = get_connection();
$biomes = get_biome_contents($db);
echo '
<script type="text/javascript">
const biomeContents = '.json_encode($biomes).';
</script>
';
// Used for help
function stringify_biome($biome, $contents){
return "<span style='color:".$contents["color"].";'>".ucfirst(strtolower($biome))."</span>";
}
array_shift($biomes);
$biome_help_list = array_map(stringify_biome, array_keys($biomes), array_values($biomes));
?>
<script type="text/javascript" src="res/scripts/hourglass.js?version=<?php echo rand();?>"></script>
<script type="text/javascript" src="res/scripts/communication.js?version=<?php echo rand();?>"></script>
<meta property="og:title" content="ADVNTURE [2]">
<meta property="og:description" content="Take part in the greatest of adventures: <br>Yours.">
<meta name="Description" content="Take part in the greatest of adventures: <br>Yours.<br>ADVNTURE is a game of free exploration and creation.<br>It has no restriction and is only made of what you, and other players, decide to pour into it.">
<meta property="og:image" content="/res/img/metapreview.jpg">
<meta name="google-site-verification" content="gT6MZWxw3_4XOJVslimPR2nWE8U3hLy-WDvtpW8sPTI" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@Rackover" />
<meta name="twitter:title" content="ADVNTURE [2]" />
<meta name="twitter:description" content="Take part in the greatest of adventures: <br>Yours." />
<meta name="twitter:image" content="https://advnture.louve.systems/res/img/metapreview.jpg" />
<meta name="twitter:image:alt" content="Wilderness. Adventure." />
</head>
<body>
<div id="mainContainer">
<div id="title">
<h1>
<span style='color:grey;'><a style="color:inherit; text-decoration:inherit;" href='https://louve.systems/'>LOUVESYSTEMS</a>'</span> <b>ADVNTURE</b> <span style='color:grey;'>V2.0.3<span style="float:right;" id="dimensionInfo"></span>
</h1>
</div>
<div class="terminal">
<div id="input">
Please wait...
</div>
</div>
<pre id="minimap" style="line-height:1;FONT-family:Dos;"> </pre>
<div class="extendedHelp" style="margin-top:5px;display:flex;flex-direction:row;width:100%; justify-content:space-between;font-size:1em;">
<div style="text-align:left;">
Join the <a style="color:white;" target="_blank" href="https://discord.gg/WQWZBN3">DISCORD</a>!
</div>
<div style="text-align:center;">
Here's a <a style="color:white;" target="_blank" href="https://www.youtube.com/watch?v=QIxRDU_l8Bc&loop=1">fitting soundtrack</a> if you need one!
<!-- <a style="color:orange;font-weight:bold;font-size:1.5em;" target="_blank" href="https://portfolio.louve.systems/">HIRE ME!</a><br> I'm looking for a job as a Game Designer!-->
</div>
<div style="text-align:right;">
Follow me on <a style="color:white;" target="_blank" href="https://twitter.com/Rackover">TWITTER</a>!
</div>
</div>
<div id="editorNotice" style="display:none;">
<p>
<b class="emphasis">What happens now?</b><br>
Since no one has ever done that here before, this situation is for you to tell others about.<br>
What is it? What will you find here? Where does it lead?<br>
That's for <b>you</b> and only you to decide.<br><br>
<span class="emphasis">Write what you would like others to experience when they try to do what you just did.</span><br>
Ask yourself: what should happen when an adventurer does <b>[ %action ]</b> here?
<ul style="list-style: none">
<li>- Use <b>ENTER</b> to insert line breaks</li>
<li>- Insert two line breaks when you're <b>done</b> telling</li>
<li>- The first line you write will be the <b>title</b></li>
<li>- If you write only one line, this shall not be a place, but a dead end.</li>
</ul>
</p>
</div>
<div id="editorTips" style="display:none">
<b>Tips:</b><br>
<ul style="list-style: none">
<li>- Add props by saying "<span class="notice"><b>There is </b>1 something</span>" or "<span class="notice"><b>There are</b> X somethings</span>" on a new line</li>
<li>- Inflict damage or heal the player by saying "<span class="notice"><b>You gain X healthpoints</b></span>" or "<span class="notice"><b>You lose X healthpoints</b></span>"</li>
<li id="biomeTip">- Don't forget to supply an environment by adding <span class="notice"><b>(Environment)</b></span> after your title, for example: "<b>My place (Forest)</b>". Available environments are:<br><?php echo "(".implode("), (", $biome_help_list).")"; ?></li>
</ul>
</div>
<div id="objectActionTips" style="display:none">
<div id="objectActionLongTip">
Since this place will be accessed by using an object, you can either<br>
<ul style="list-style: none">
<li>Give this place a <b>new name</b> (and it will become an entirely new place that the user will be teleported to)</li>
<li>Or name it <u>exactly</u> like the <b>place you used the object in</b>, and the user will not be moved - they will remain at the same location, but the place will be in a different <i>state</i>
</ul>
</div>
<div id="objectActionShortTip">
(You can also name this new place like the previous one to create it a different <b>state</b> of the same place)
</div>
</div>
<div id="help" style="display:none;">
List of commands for ADVNTURE:<br>
<ul style="list-style: none">
<li>- <b>BRIEF</b>: Describes your current location.</li>
<li style="color:white">- <b>SOUTH, NORTH, EAST, WEST</b>: Moves you around<span class="extendedHelp"> to another location from where you currently are</span>.</li>
<li style="color:yellow">- <b>TAKE <object></b>: Takes an object and adds it to your inventory.</li>
<li>- <b>LOSE <object></b>: Removes an object from your inventory and puts it back where you took it.</li>
<li style="color:yellow">- <b>USE <object></b>: Uses an object at your current location.</li>
<li>- <b>INVENTORY</b>: Tells you what objects you currently have.</li>
<li class="extendedHelp">- <b>STATUS</b>: Tells you how you currently feel.</li>
<li class="extendedHelp">- <b>MAP</b>: Draw a map of your surroundings, as you've explored them</li>
</ul>
<ul style="list-style: none; color:grey;" class="extendedHelp">
<li>- <b>REGIONS</b>: List the available regions to explore</li>
<li>- <b>WARP <region></b>: Teleport you to another region</li>
<li>- <b>CLEAR</b>: Clears the console.</li>
<li>- <b>CREDITS</b>: Prints the credits.</li>
<li>- <b>HELP</b>: Prints this message.</li>
</ul>
</div>
<div id="warp" style="display:none;">
<p>
You focus your ADVNTURER power to transport yourself into another region. The Great Wind rises and lifts you off the ground, carrying you beyond the horizon.
</p>
<p>
When you open your eyes, you are in <b class="emphasis">%dimension</b>.
</p>
</div>
<div id="credits" style="display:none;">
<h1>Credits</h1>
<ul style="list-style: none">
<li>- <b style="color:pink;">LOUVE <RACKOVER> HURLANTE</b>: Game design & development</li>
<li>- <b style="color:lightgreen;">ARCHI <ROGGAH> KAZOO</b>: Moderation</li>
<li>- <b style="color:#ccccff;">MANUELA <LUNEMAA></b>: Cuddles & food</li>
</ul>
<p style="color:white;">Thanks to everyone who contributed to ADVNTURE!<br>
I don't have your names, but I appreciate each of your contributions.</p>
<p>[email protected] - 2019</p>
</div>
<div id="intro" style="display:none;">
<div id="introBigTitle"><h1><pre> d8888 8888888b. 888 888 888b 888 88888888888 888 888 8888888b. 8888888888
d88888 888 "Y88b 888 888 8888b 888 888 888 888 888 Y88b 888
d88P888 888 888 888 888 88888b 888 888 888 888 888 888 888
d88P 888 888 888 Y88b d88P 888Y88b 888 888 888 888 888 d88P 8888888
d88P 888 888 888 Y88b d88P 888 Y88b888 888 888 888 8888888P" 888
d88P 888 888 888 Y88o88P 888 Y88888 888 888 888 888 T88b 888
d8888888888 888 .d88P Y888P 888 Y8888 888 Y88b. .d88P 888 T88b 888
d88P 888 8888888P" Y8P 888 Y888 888 "Y88888P" 888 T88b 8888888888</pre></h1></div>
<h2 style="color:white;"><b><span id="introWelcomeBar1">------------ </span>Welcome to LouveSystems' ADVNTURE!<span id="introWelcomeBar2"> ------------</span></b></h2>
<p>ADVNTURE is a game of free exploration and creation.<br>It has no restriction and is only made of what you, and other players, decide to pour into it.</p>
<p>Enjoy your stay on ADVNTURE - and by all means, expand it in all directions. Any place you reach first is yours to describe!<br>Do not worry about your language skills, for the vast majority of people aren't native speakers!</p>
<p><b>The world is yours - Make it your haven!</b></p>
<p class="emphasis"><b>Type HELP</b> to get a list of commands.<br>Type <b>BRIEF</b> to know where you are.</p>
</div>
<div id="death" style="display:none">
<span style='color:red;'>=============================<br><br></span>
<b style='color:red';>You fainted!</b><br><br>
Exhausted by your journey, you feel your limbs become numb and you decide to shut your eyes for a moment.
When you regain consciousness, you find yourself in the <span style='color:white;'>%starting_page_name</span>, stripped from all your belongings.<br><br>
</div>
</div>
</body>
</html>