implemented class method for login, register, update, delete and implemented readDatabase functionality to game.js. Write funtionality is in preogress
This commit is contained in:
parent
fbb52f76c0
commit
03e5591e0a
13 changed files with 145 additions and 83 deletions
|
|
@ -14,7 +14,7 @@
|
|||
<link href="./../styles/game.css" rel="stylesheet" id="style">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<span class="metadata" id="playerStats" style="display:none"><?php echo json_encode($stats) ?></span>
|
||||
<!-- boilerplate splash -->
|
||||
<div class="screen" id="plate">
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -1,15 +1,3 @@
|
|||
<div class="isolate bg-white">
|
||||
<div class="absolute inset-x-0 top-[-10rem] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[-20rem]">
|
||||
<svg class="relative left-[calc(50%-11rem)] -z-10 h-[21.1875rem] max-w-none -translate-x-1/2 rotate-[30deg] sm:left-[calc(50%-30rem)] sm:h-[42.375rem]" viewBox="0 0 1155 678" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill="url(#45de2b6b-92d5-4d68-a6a0-9b9b2abad533)" fill-opacity=".3" d="M317.219 518.975L203.852 678 0 438.341l317.219 80.634 204.172-286.402c1.307 132.337 45.083 346.658 209.733 145.248C936.936 126.058 882.053-94.234 1031.02 41.331c119.18 108.451 130.68 295.337 121.53 375.223L855 299l21.173 362.054-558.954-142.079z" />
|
||||
<defs>
|
||||
<linearGradient id="45de2b6b-92d5-4d68-a6a0-9b9b2abad533" x1="1155.49" x2="-78.208" y1=".177" y2="474.645" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#9089FC"></stop>
|
||||
<stop offset="1" stop-color="#FF80B5"></stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="px-6 pt-6 lg:px-8 mb-5">
|
||||
<div>
|
||||
<nav class="flex h-9 items-center justify-between" aria-label="Global">
|
||||
|
|
@ -33,6 +21,5 @@
|
|||
<?php endif; ?>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
<section class="message -left flex space-x-10">
|
||||
<i class="nes-bcrikko mr-10"></i>
|
||||
<div class="nes-balloon from-left mx-10">
|
||||
<p>Hallo <?= $_SESSION['username'] ?> schön das du da bist.</p>
|
||||
<p>Hallo <?= $stats['username'] ?> schön das du da bist.</p>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
|
@ -23,20 +23,19 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="nes-container with-title mt-10 space-y-4">
|
||||
<span class="title">Dein Fortschritt <?php $_SESSION['xp'] ?> </span>
|
||||
|
||||
<span>Du bist aktuell Level: <?php echo $_SESSION['level'] ?> </span>
|
||||
<span class="title">Dein Fortschritt</span>
|
||||
<span>Du bist aktuell Level: <?php echo $stats['level'] ?> </span>
|
||||
<br>
|
||||
<span>Deine Erfahrungspunkte</span>
|
||||
<progress class="nes-progress is-primary" value="<?php echo $_SESSION['xp'] ?>" max="150">Erfahrung</progress>
|
||||
<progress class="nes-progress is-primary" value="<?php echo $stats['xp'] ?>" max="150">Erfahrung</progress>
|
||||
<span>Dein aktueller Lernfortschritt</span>
|
||||
<progress class="nes-progress is-success" value="<?php echo $_SESSION['lesson_count'] ?>" max="10">Absolvierte Lektionen</progress>
|
||||
<progress class="nes-progress is-success" value="<?php echo $stats['lesson_count'] ?>" max="10">Absolvierte Lektionen</progress>
|
||||
<div class="flex flex-rows justify-center">
|
||||
<div>
|
||||
<span><i class="nes-icon coin is-medium"></i></span>
|
||||
</div>
|
||||
<div>
|
||||
<p><?php echo $_SESSION['coins'] ?></p>
|
||||
<p><?php echo $stats['coins'] ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue