Skip to content

Commit 19e72b0

Browse files
committed
New tests
1 parent 3d18b77 commit 19e72b0

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
class Demo extends Phaser.Scene
2+
{
3+
constructor ()
4+
{
5+
super();
6+
}
7+
8+
create ()
9+
{
10+
this.input.on('pointermove', () => {
11+
// console.log('move');
12+
});
13+
}
14+
}
15+
16+
const config = {
17+
type: Phaser.AUTO,
18+
parent: 'phaser-example',
19+
width: 400,
20+
height: 300,
21+
scene: Demo,
22+
backgroundColor: 0x444444
23+
};
24+
25+
const game = new Phaser.Game(config);
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
class Demo extends Phaser.Scene
2+
{
3+
constructor ()
4+
{
5+
super();
6+
}
7+
8+
create ()
9+
{
10+
this.input.topOnly = false;
11+
12+
this.add.zone(400, 300, 800, 600).setInteractive();
13+
this.add.zone(400, 300, 800, 600).setInteractive();
14+
}
15+
}
16+
17+
const config = {
18+
type: Phaser.AUTO,
19+
parent: 'phaser-example',
20+
width: 800,
21+
height: 600,
22+
scene: Demo,
23+
backgroundColor: 0x444444
24+
};
25+
26+
const game = new Phaser.Game(config);

0 commit comments

Comments
 (0)