Skip to content

Commit fa830a4

Browse files
committed
Create 7029 webgl grid.js
1 parent 2ada358 commit fa830a4

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

public/src/bugs/7029 webgl grid.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
class Example extends Phaser.Scene
2+
{
3+
constructor()
4+
{
5+
super();
6+
}
7+
8+
create ()
9+
{
10+
const grid = this.add.grid(200, 200, 200, 200, 40, 40, 0xff00ff, 0.2, 0xff0000);
11+
grid.lineWidth = 10; // Only works on CANVAS
12+
}
13+
}
14+
15+
const config = {
16+
type: Phaser.AUTO,
17+
width: 800,
18+
height: 600,
19+
backgroundColor: '#2d2d2d',
20+
parent: 'phaser-example',
21+
scene: Example
22+
};
23+
24+
const game = new Phaser.Game(config);

0 commit comments

Comments
 (0)