This server is intended for use for Academic Classwork related Git repositories only. Projects/repositories will generally be removed after 6 months following close of the semester. Inactive repositories from previous semester are now being archived when no activity for 365 days. They are renamed and marked as 'archived'. After 90 days in that state they will be removed from the system completely.

Commit fe5b6fe7 authored by Pamela Petterchak's avatar Pamela Petterchak
parents 63f004c3 2832e11f
......@@ -9,6 +9,7 @@ import { ClosingVideoModule } from './closing/closing.module';
import { OpeningVideoModule } from './opening/opening.module';
import { LandingPageModule } from './landing/landing.module';
import { GamePlayModule } from './game-play/game-play.module';
import { CreditsModule } from './credits/credits.module';
@NgModule({
declarations: [AppComponent],
......@@ -21,6 +22,7 @@ import { GamePlayModule } from './game-play/game-play.module';
OpeningVideoModule,
LandingPageModule,
GamePlayModule,
CreditsModule,
],
bootstrap: [AppComponent],
})
......
import { Component } from '@angular/core';
@Component({
selector: 'app-closing-video',
selector: 'app-closing',
templateUrl: './closing.component.html',
styleUrls: ['./closing.component.scss'],
})
......
<!-- This will be the same as opening video -->
<html style="background-image: url(./assets/FarmBackground.png)">
<div>
<mat-card class="title">
<h1>Pickle Clicker Created By:</h1>
<h2>Preston Daily, Luke Hellebusch, Pamela Petterchak, and Zack Sutton</h2>
</mat-card>
<div class="row">
<br>
<div class="column">
<h3><u>Music Credits</u></h3>
<div class="music">
"Anamalie" Kevin MacLeod (incompetech.com) <br>
Licensed under Creative Commons: By Attribution 4.0 License <br>
http://creativecommons.org/licenses/by/4.0/ <br> <br>
"Summer Day" Kevin MacLeod (incompetech.com) <br>
Licensed under Creative Commons: By Attribution 4.0 License <br>
http://creativecommons.org/licenses/by/4.0/ <br> <br>
"Past Sadness" Kevin MacLeod (incompetech.com) <br>
Licensed under Creative Commons: By Attribution 4.0 License <br>
http://creativecommons.org/licenses/by/4.0/ <br> <br>
"SCP-x6x (Hopes)" Kevin MacLeod (incompetech.com) <br>
Licensed under Creative Commons: By Attribution 4.0 License <br>
http://creativecommons.org/licenses/by/4.0/ <br> <br>
</div>
</div>
<div class="column">
<h1>YOU WON</h1>
<h3><u>Voice Work</u></h3>
<div class="music">
Papa Pickle: Zack Sutton <br>
Desperado Pickle: Luke Hellebusch <br>
</div>
<br>
<h3><u>3D Modeling & Video Editing</u></h3>
<div class="music">Zack Sutton</div>
</div>
<div class="column">
</div>
</div>
</div>
</html>
\ No newline at end of file
.title {
color: rgb(0, 128, 0);
text-align: center;
}
h1 {
color: rgb(0, 128, 0);
text-align: center;
}
h3 {
color: white;
text-align: center;
}
.music {
color: white;
text-align: center;
}
.row {
display: flex;
}
.column {
flex: 50%;
}
html {
height: 100%;
width: 100%;
}
/*.bg {
background-image: './assets/FarmBackground.png' no-repeat center center fixed;
height: 100%;
width: 100%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}*/
\ No newline at end of file
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-credits',
templateUrl: './credits.component.html',
styleUrls: ['./credits.component.scss'],
})
export class CreditsComponent {
}
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { CreditsComponent } from './credits.component';
import { MaterialDepsModule } from '../material-deps.module';
const cmsRoutes: Routes = [{ path: '', component: CreditsComponent }];
@NgModule({
declarations: [CreditsComponent],
imports: [CommonModule, RouterModule.forChild(cmsRoutes),MaterialDepsModule],
exports: [CreditsComponent],
})
export class CreditsModule {}
......@@ -8,13 +8,61 @@ import { GamePlayService } from '../game-play.service';
})
export class ClickComponent {
readonly totalClicks = this.service.pickleCount;
//readonly totalClicks = this.service.getPickles();
readonly clickMulti = this.service.incrementsClicksVal;
upgradeLevel = 'assets/Hamburger.png';
upgradeLevel = 'assets/Hamburger.png'
upgradeList = ['assets/Hamburger.png', 'assets/BabyDill.png', 'assets/Spear.png', 'assets/Pickle.png', 'assets/GoldenPickle.png'];
upgradePrices = [1, 5000, 50000, 500000, 5000000];
upgradeCount = 1;
constructor(private service: GamePlayService) {}
constructor(private service: GamePlayService) { }
upgrade() {
this.upgradeLevel = 'assets/BabyDill.png';
if (!(this.service.checkEnough(this.upgradePrices[this.upgradeCount - 1]))) {
this.service.pickleUpgrade(this.upgradePrices[this.upgradeCount]).catch((err) => console.log(err));
// changing next upgrade picture
this.upgradeLevel = this.upgradeList[this.upgradeCount++];
/*
// buying upgrade
this.pickles.next(this.pickles.value - this.upgradePrices[this.upgradeCount]);
// changing next upgrade picture
this.upgradeLevel = this.upgradeList[this.upgradeCount++];
// upgrade taking effect
this.service.pickleUpgrade.catch((err) => console.log(err));
*/
}
/*
while (this.upgradeCount < this.upgradeList.length) {
if (this.totalClicks >= this.upgradePrices[this.upgradeCount]) {
this.service.pickleUpgrade(this.upgradePrices[this.upgradeCount]).catch((err) => console.log(err));
// changing next upgrade picture
this.upgradeLevel = this.upgradeList[this.upgradeCount++];
/*
// buying upgrade
this.pickles.next(this.pickles.value - this.upgradePrices[this.upgradeCount]);
// changing next upgrade picture
this.upgradeLevel = this.upgradeList[this.upgradeCount++];
// upgrade taking effect
this.service.pickleUpgrade.catch((err) => console.log(err));
}
}
*/
}
increment() {
......
......@@ -22,6 +22,26 @@ export class GamePlayService {
this.pickles.next(this.pickles.value + this.incrementsClicks.value);
}
async checkEnough(price) {
if (this.pickleCount >= price) {
return true;
}
return false;
}
/*
async getPickles() {
return this.pickles.value;
}
*/
async pickleUpgrade(cost) {
this.incrementsClicks.next(this.incrementsClicks.value * 10);
// buying upgrade
this.pickles.next(this.pickles.value - cost);
}
async jarUpgrade() {
if (this.pickles.value >= 5) {
this.accumulates.next(this.accumulates.value + 5);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment