Add Zoom on Card
release-tag / release-image (push) Successful in 38s

Use Left Alt Key (for now)
Closes #13
This commit is contained in:
2024-05-13 16:57:03 +02:00
parent c86232cf6a
commit 2c4f9abc8d
5 changed files with 103 additions and 7 deletions
+9
View File
@@ -30,6 +30,11 @@ export class GameObjectRegister {
current_game: Ref<Game | null>;
lobby: Ref<Lobby | null>;
self: Ref<Player | null>;
zoomKeyPressed: Ref<boolean>
hoveredCard: Ref<number | undefined>
clientMouseX: Ref<number>
clientMouseY: Ref<number>
constructor() {
this.effects = reactive(new Map());
this.cards = reactive(new Map());
@@ -42,6 +47,10 @@ export class GameObjectRegister {
this.current_game = ref(null);
this.lobby = ref(null);
this.self = ref(null);
this.zoomKeyPressed = ref(false);
this.hoveredCard = ref()
this.clientMouseX = ref(0)
this.clientMouseY = ref(0)
}
update_object(obj: GameObjectNetcode) {