# Help with Phaser 3 game setup

**URL:** <https://phaser.discourse.group/t/help-with-phaser-3-game-setup/7676>\
**Category:** Phaser 3\
**Created:** [October 13, 2020, 6:10pm UTC](https://phaser.discourse.group/t/help-with-phaser-3-game-setup/7676 "2020-10-13T18:10:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![23Aferg8](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/23aferg8/32/4090_2.png) [@23Aferg8](https://phaser.discourse.group/u/23Aferg8)\
**Post date:** [October 13, 2020, 6:10pm UTC](https://phaser.discourse.group/t/help-with-phaser-3-game-setup/7676/1 "2020-10-13T18:10:46Z")

</div>

Hi everyone,  
I am having a really hard time getting Phaser to run on VS Code. I have the framework and my game.js file, and I tried loading a background image for my game, but all I see is a black square when I open it with the Live server, or my Wampp server. This is my html:

```
<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Document</title>

```

```
<script src="https://cdn.jsdelivr.net/npm/phaser@3.24.0/dist/phaser.js"></script>

<script src="game.js"></script>

```

And this is my game.js file:

var game = new Phaser.Game(640, 360, Phaser.AUTO);

var GameState = {

```
preload: function() {

    this.load.image('sky', 'assets/sky.png');

},

create: function() {

    this.background = this.game.add.sprite(0, 0, 'sky');

},

update: function() {

}

```

};

game.state.add(‘GameState’, GameState);

game.state.start(‘GameState’);

If anyone could help, I’d really appreciate it.

---

<div class="post-metadata">

**Author:** ![seyuup](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@seyuup](https://phaser.discourse.group/u/seyuup)\
**Post date:** [October 14, 2020, 2:21am UTC](https://phaser.discourse.group/t/help-with-phaser-3-game-setup/7676/2 "2020-10-14T02:21:13Z")

</div>

Is anything written to the console when your application runs?

---

<div class="post-metadata">

**Author:** ![23Aferg8](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/23aferg8/32/4090_2.png) [@23Aferg8](https://phaser.discourse.group/u/23Aferg8)\
**Post date:** [October 14, 2020, 3:29am UTC](https://phaser.discourse.group/t/help-with-phaser-3-game-setup/7676/3 "2020-10-14T03:29:02Z")

</div>

My bad, I should have taken this question down @seyuup. I realized that I was using Phaser 2 instead of Phaser 3.
