2025-04-08 07:51:15 +00:00
|
|
|
<div style="width: 100%; height: 100%; overflow-x: scroll; overflow-y: hidden;">
|
2025-04-07 09:20:49 +00:00
|
|
|
<canvas id="gameCanvas"></canvas>
|
|
|
|
</div>
|
2025-04-08 09:05:09 +00:00
|
|
|
<div class="hud">
|
|
|
|
<div class="jump-counter">
|
|
|
|
Jumps: {{ totalJumps }}
|
|
|
|
<button (click)="restartGame()">Restart</button>
|
2025-04-08 12:41:52 +00:00
|
|
|
<button (click)="showInvitePopup = true">Invite Friend</button>
|
2025-04-10 12:19:01 +00:00
|
|
|
<button (click)="navigateToSettings()">Settings</button>
|
2025-04-08 09:05:09 +00:00
|
|
|
</div>
|
2025-04-08 12:41:52 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Invite Friend Modal -->
|
|
|
|
<div class="modal-backdrop" *ngIf="showInvitePopup">
|
|
|
|
<div class="modal">
|
|
|
|
<h2>Invite a Friend</h2>
|
|
|
|
<input
|
|
|
|
type="email"
|
|
|
|
placeholder="Enter friend's email"
|
|
|
|
[(ngModel)]="inviteEmail"
|
|
|
|
/>
|
|
|
|
<div class="modal-buttons">
|
|
|
|
<button (click)="sendInvite()">Send Invite</button>
|
|
|
|
<button (click)="showInvitePopup = false">Cancel</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2025-04-10 12:19:01 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<router-outlet></router-outlet>
|