Skip to content

Commit

Permalink
Merge pull request #19 from remarkablegames/dependabot/npm_and_yarn/p…
Browse files Browse the repository at this point in the history
…haser-jsx-0.13.6

chore(deps): bump phaser-jsx from 0.12.2 to 0.13.6
  • Loading branch information
remarkablemark authored Jan 29, 2025
2 parents a4ed738 + ad5e8eb commit f8b9fa3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"homepage": "https://remarkablegames.org/memory-card/",
"dependencies": {
"phaser": "3.86.0",
"phaser-jsx": "0.12.2"
"phaser-jsx": "0.13.6"
},
"devDependencies": {
"@commitlint/cli": "19.6.1",
Expand Down
5 changes: 3 additions & 2 deletions src/components/Lose.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { createRef, type Ref, Text, useScene } from 'phaser-jsx';
import { createRef, Text, useScene } from 'phaser-jsx';
import type { RefObject } from 'react';

interface Props {
onClick: () => void;
ref: (ref: Ref<Phaser.GameObjects.Text>) => void;
ref: (ref: RefObject<Phaser.GameObjects.Text | null>) => void;
}

export function Lose(props: Props) {
Expand Down
5 changes: 3 additions & 2 deletions src/components/Win.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { createRef, type Ref, Text, useScene } from 'phaser-jsx';
import { createRef, Text, useScene } from 'phaser-jsx';
import type { RefObject } from 'react';

import { Audio } from '../constants';

interface Props {
onClick: () => void;
ref: (ref: Ref<Phaser.GameObjects.Text>) => void;
ref: (ref: RefObject<Phaser.GameObjects.Text | null>) => void;
}

export function Win(props: Props) {
Expand Down
7 changes: 4 additions & 3 deletions src/scenes/Main.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Phaser from 'phaser';
import { type Ref, render } from 'phaser-jsx';
import { render } from 'phaser-jsx';
import type { RefObject } from 'react';

import { Lose, Title, Win } from '../components';
import { Audio, Image, Scene } from '../constants';
Expand Down Expand Up @@ -177,7 +178,7 @@ export class Main extends Phaser.Scene {
}

startGame() {
let winnerTextRef: Ref<Phaser.GameObjects.Text>;
let winnerTextRef: RefObject<Phaser.GameObjects.Text | null>;

render(
<Win
Expand All @@ -187,7 +188,7 @@ export class Main extends Phaser.Scene {
this,
);

let gameOverTextRef: Ref<Phaser.GameObjects.Text>;
let gameOverTextRef: RefObject<Phaser.GameObjects.Text | null>;

render(
<Lose
Expand Down

0 comments on commit f8b9fa3

Please sign in to comment.