# Tetris Error

**URL:** <https://forum.makecode.com/t/tetris-error/2557>\
**Category:** Help\
**Created:** [June 27, 2020, 5:15pm UTC](https://forum.makecode.com/t/tetris-error/2557 "2020-06-27T17:15:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)\
**Post date:** [June 27, 2020, 5:15pm UTC](https://forum.makecode.com/t/tetris-error/2557/1 "2020-06-27T17:15:32Z")

</div>

> **[Block Tetris](https://arcade.makecode.com/15778-26378-80199-71269)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

I am trying to make a Tetris game in JavaScript, but on line 96, there is an error. Can someone please explain the problem? (The function createL is used to create an L shaped block)

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [June 27, 2020, 7:17pm UTC](https://forum.makecode.com/t/tetris-error/2557/2 "2020-06-27T19:17:07Z")

</div>

Issue is here:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/5/59a80696606ae2487ccd2d2acea7a007ae11c06c.png)

when you create the sprite `projectileL2`, you pass in `img` ``, which evaluates to `null`. Passing a null image to a sprite currently throws. easy fix is to press the little palette to expand it; if you don’t want it to show up on the screen, you can set it to have the invisible sprite flag.

e.g.

> **[Block Tetris](https://arcade.makecode.com/80997-36219-81977-01234)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)\
**Post date:** [June 27, 2020, 8:08pm UTC](https://forum.makecode.com/t/tetris-error/2557/3 "2020-06-27T20:08:32Z")

</div>

Thanks! They work now 😃

---

<div class="post-metadata">

**Author:** ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)\
**Post date:** [June 27, 2020, 8:10pm UTC](https://forum.makecode.com/t/tetris-error/2557/4 "2020-06-27T20:10:18Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/7dea3fea8f4c6c24d97d7f4c969fa37b984db547.png)

The L
