{"size": 297, "ext": "js", "max_stars_repo_path": "src/scenes/Player2Win.js", "max_stars_repo_name": "nguyenphuminh/Phaser-Pong", "max_stars_repo_stars_event_min_datetime": "2021-04-21T15:40:37.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-21T15:40:37.000Z", "max_issues_repo_path": "src/scenes/Player2Win.js", "max_issues_repo_name": "nguyenphuminh/Phaser-Pong", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/scenes/Player2Win.js", "max_forks_repo_name": "nguyenphuminh/Phaser-Pong", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.8461538462, "max_line_length": 62, "alphanum_fraction": 0.5824915825}
import Phaser from 'phaser'

export default class Player2Win extends Phaser.Scene {
    preload(){

    }

    create(){
        const text = this.add.text(400, 250, 'Player 2 Won!')
        text.setOrigin(0.5, 0.5)
        setTimeout(()=>this.scene.start('titlescreen'),2000);
    }
}