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 08fc5cd5 authored by Pamela Petterchak's avatar Pamela Petterchak

fixed again

parent 19055961
<script>
accumulate();
</script>
<button mat-raised-button>
<img src="assets/PickleJar.png" (click)="jarUpgrade()" />
</button>
......
......@@ -7,14 +7,13 @@ import { GamePlayService } from '../game-play.service';
styleUrls: ['./accumulator.component.scss'],
})
export class AccumulatorsComponent {
// Not correct yet - need to figure out how to communicate btw click and accumulator
readonly totalClicks = this.service.pickleCount;
readonly clickMulti = this.service.incrementsClicksVal;
readonly accumulatesMulti = this.service.accumulatesVal;
constructor(private service: GamePlayService) { }
intervalID = window.setInterval(() => this.service.accumulate(), 1000);
// intervalID = setInterval(() => this.service.accumulate(), 1000);
jarUpgrade() {
this.service.jarUpgrade().catch((err) => console.log(err));
......
......@@ -5,8 +5,6 @@ import { BehaviorSubject } from 'rxjs';
providedIn: 'root',
})
export class GamePlayService {
// There are various ways to achieve an Observable that emits a
// current value on subscribe; this is one of the more common.
private readonly pickles = new BehaviorSubject<number>(0);
readonly pickleCount = this.pickles.asObservable();
......
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