Skip to content

Commit

Permalink
[ts][pixi-v8] Fixed physics2 example.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidetan committed Nov 13, 2024
1 parent 417d7c2 commit 5cc203b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions spine-ts/spine-pixi-v8/example/physics2.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,10 @@
const buttonContainer = new PIXI.Container();
buttonContainer.position.set(0, 0);

const buttonBackground = new PIXI.Graphics();
buttonBackground.beginFill(0x000000); // Button background color
buttonBackground.drawRoundedRect(0, 0, 140, 100, 5); // Button dimensions
buttonBackground.endFill();
const buttonBackground = new PIXI.Graphics()
.roundRect(0, 0, 140, 100, 5)
.fill({ color: 0x000000, alpha: .7 });
buttonContainer.addChild(buttonBackground);
buttonContainer.alpha = 0.7;

const fontStyle = {
fill: 0xdddddd,
Expand Down Expand Up @@ -116,7 +114,7 @@
document.exitFullscreen();
textButton.text = "Fullscreen";
} else {
app.renderer.view.requestFullscreen();
app.renderer.canvas.requestFullscreen();
textButton.text = "Windowed";
}
fsEnabled = !fsEnabled;
Expand Down

0 comments on commit 5cc203b

Please sign in to comment.