# Sprite is not loaded into the game

**URL:** <https://phaser.discourse.group/t/sprite-is-not-loaded-into-the-game/2101>\
**Category:** Phaser 2 / CE\
**Created:** [April 14, 2019, 2:37pm UTC](https://phaser.discourse.group/t/sprite-is-not-loaded-into-the-game/2101 "2019-04-14T14:37:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![goboju](https://avatars.discourse-cdn.com/v4/letter/g/e56c9b/32.png) [@goboju](https://phaser.discourse.group/u/goboju)\
**Post date:** [April 14, 2019, 2:37pm UTC](https://phaser.discourse.group/t/sprite-is-not-loaded-into-the-game/2101/1 "2019-04-14T14:37:32Z")

</div>

Sprite is not loaded into the game  
I wrote the following code in the preload function: game.load.image (‘myimage’, ‘assets/1.png’); The way is right  
Browser writes a mistake  
 ![333](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/9/9b5fb51b3df94b7c0f5570939f3ca6d5612ddcb9.png)  
Project: [download](https://drive.google.com/open?id=12zJyhQ8qTaJZf0pBsss5uXvB3slsX9z8)  
“Project\client\main.js:274”

---

<div class="post-metadata">

**Author:** ![Cerlancism](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/cerlancism/32/631_2.png) [@Cerlancism](https://phaser.discourse.group/u/Cerlancism)\
**Post date:** [April 15, 2019, 1:06am UTC](https://phaser.discourse.group/t/sprite-is-not-loaded-into-the-game/2101/2 "2019-04-15T01:06:24Z")

</div>

I see you are using expressjs and the assets folder is not served directly.  
Add `app.use('/assets', express.static(__dirname + '/client/assets'));` to `app.js`  
or change all `/assets` to `client/assets` in loader functions
