Skip to content

Commit

Permalink
Merge pull request #24 from Sybit-Education/How-to-play
Browse files Browse the repository at this point in the history
How to play
  • Loading branch information
Der-Zauberer authored Aug 3, 2023
2 parents 02c2d0d + 06486d5 commit d1ac6f0
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { SygotchiCleanComponent } from './sygotchi-clean/sygotchi-clean.componen
import { SleepSceneComponent } from './sleep-scene/sleep-scene.component';
import { KitchenComponent } from './kitchen/kitchen.component';
import { FooterComponent } from './footer/footer.component';
import { HowToPlayComponent } from './how-to-play/how-to-play.component';
import { ServiceWorkerModule } from '@angular/service-worker';
import { ErrorPageComponent } from './error-page/error-page.component';

Expand All @@ -44,6 +45,7 @@ import { ErrorPageComponent } from './error-page/error-page.component';
NeedsComponent,
SygotchiCleanComponent,
FooterComponent,
HowToPlayComponent,
ErrorPageComponent
],
imports: [
Expand Down
64 changes: 64 additions & 0 deletions src/app/how-to-play/how-to-play.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Anleitung </h1>

<h2>Statusbalken:</h2>
<p>Die Statusbalken zeigen was dein Sygotchi gerade braucht. Sie werden über Zeit kleiner. Wenn einer der Balken 0 erreicht ist das Spiel verloren. </p>

<h2>Aktionen:</h2>
<p>Du kannst im unteren Bereich mehrere Knöpfe drücken die verschiedene Balken auffüllen je nach dem in welchen Raum du bist.</p>

<h2>Umkleide:</h2>
<p>Hier kannst du deinen Sygotchi personalisieren indem du ihm Accessoires oder andere Farben gibst.</p>

<h2>Navigation:</h2>
<p>Mit den blauen Pfeilen an den Seiten kannst du Räume wechseln.</p>

<h2>Punkte:</h2>
<p>Punkte kann man nur durch Aktionen bekommen. Sie zeigen deinen Fortschritt und bestimmen deinen Platz in der Rangliste.</p>

<table>
<thead>
<tr>
<th>Action</th>
<th>Score</th>
<th>Cooldown</th>
</tr>
</thead>
<tbody>
<tr>
<td>drink</td>
<td> +1</td>
<td>10s</td>
</tr>
<tr>
<td>feed </td>
<td>+2</td>
<td>30s</td>
</tr>
<tr>
<td>clean </td>
<td>+7</td>
<td>100s</td>
</tr>
<tr>
<td>play</td>
<td> -</td>
<td>-</td>
</tr>
<tr>
<td>sleep</td>
<td>-</td>
<td>-</td>
</tr>
</tbody>
</table>

</body>
</html>
28 changes: 28 additions & 0 deletions src/app/how-to-play/how-to-play.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
body {
margin: 20px;

}

h1 {
margin-bottom: 40px;
text-decoration: underline;
color: #000;
}

p {
font-size: 20px;
margin-bottom: 40px;
color: #000;
}

h2 {
font-size: 25px;

color: #000;
}

table, thead, tbody, tr, th, td {
border: #000 thin solid;
padding: 10px;
font-size: 20px;
}
10 changes: 10 additions & 0 deletions src/app/how-to-play/how-to-play.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Component } from '@angular/core';

@Component({
selector: 'app-how-to-play',
templateUrl: './how-to-play.component.html',
styleUrls: ['./how-to-play.component.scss']
})
export class HowToPlayComponent {

}
3 changes: 3 additions & 0 deletions src/app/misc/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { DsgvoPageComponent } from "../dsgvo-page/dsgvo-page.component";
import { ImpressumComponent } from "../impressum/impressum.component";
import { SygotchiCleanComponent } from "../sygotchi-clean/sygotchi-clean.component";
import {SleepSceneComponent} from "../sleep-scene/sleep-scene.component";
import { HowToPlayComponent } from "../how-to-play/how-to-play.component";
import { KitchenComponent } from "../kitchen/kitchen.component";
import { ErrorPageComponent } from "../error-page/error-page.component";

Expand All @@ -21,6 +22,8 @@ export const APP_ROUTES: Routes = [
{path: 'clean', component: SygotchiCleanComponent, canActivate: [AuthGuard]},
{path: 'sleep', component: SleepSceneComponent, canActivate: [AuthGuard]},
{path: 'kitchen', component: KitchenComponent, canActivate: [AuthGuard]},
{path: 'how-to-play', component: HowToPlayComponent},
{path: 'error', component: ErrorPageComponent},
{path: '**', redirectTo: 'error' }

]

0 comments on commit d1ac6f0

Please sign in to comment.