# My own Typescript Learning journey

**URL:** <https://forum.makecode.com/t/my-own-typescript-learning-journey/41586>\
**Category:** Help\
**Created:** [January 18, 2026, 4:51am UTC](https://forum.makecode.com/t/my-own-typescript-learning-journey/41586 "2026-01-18T04:51:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)\
**Post date:** [January 18, 2026, 4:51am UTC](https://forum.makecode.com/t/my-own-typescript-learning-journey/41586/1 "2026-01-18T04:51:55Z")

</div>

After being inspired by @Ima.notarobot topic I have decided to learn how to as well the only thing I can do in Typescript is making extensions out of functions (which is easy except for enums) I will post it here my first game only in ts

the code is since it wont let me share project is

````auto
let mySprite = sprites.create(img

    2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

    2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

    2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

    2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

    2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

    2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

    2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

    2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

    2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

    2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

    2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

    2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

    2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

    2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

    2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

    2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2

, SpriteKind.Player)

controller.moveSprite(mySprite,75,75)

let mySprite2 = sprites.create(img\`

    . . . . . . b b b b . . . . . .

    . . . . . . b 4 4 4 b . . . . .

    . . . . . . b b 4 4 4 b . . . .

    . . . . . b 4 b b b 4 4 b . . .

    . . . . b d 5 5 5 4 b 4 4 b . .

    . . . . b 3 2 3 5 5 4 e 4 4 b .

    . . . b d 2 2 2 5 7 5 4 e 4 4 e

    . . . b 5 3 2 3 5 5 5 5 e e e e

    . . b d 7 5 5 5 3 2 3 5 5 e e e

    . . b 5 5 5 5 5 2 2 2 5 5 d e e

    . b 3 2 3 5 7 5 3 2 3 5 d d e 4

    . b 2 2 2 5 5 5 5 5 5 d d e 4 .

    b d 3 2 d 5 5 5 d d d 4 4 . . .

    b 5 5 5 5 d d 4 4 4 4 . . . . .

    4 d d d 4 4 4 . . . . . . . . .

    4 4 4 4 . . . . . . . . . . . .

`, SpriteKind.Food)

info.startCountdown(10)

sprites.onOverlap(SpriteKind.Player, SpriteKind.Food, function(sprite: Sprite, otherSprite: Sprite) {

    info.player1.changeScoreBy(1)

let mySprite2 = sprites.create(img\`

      . . . . . . b b b b . . . . . .

      . . . . . . b 4 4 4 b . . . . .

      . . . . . . b b 4 4 4 b . . . .

      . . . . . b 4 b b b 4 4 b . . .

      . . . . b d 5 5 5 4 b 4 4 b . .

      . . . . b 3 2 3 5 5 4 e 4 4 b .

      . . . b d 2 2 2 5 7 5 4 e 4 4 e

      . . . b 5 3 2 3 5 5 5 5 e e e e

      . . b d 7 5 5 5 3 2 3 5 5 e e e

      . . b 5 5 5 5 5 2 2 2 5 5 d e e

      . b 3 2 3 5 7 5 3 2 3 5 d d e 4

      . b 2 2 2 5 5 5 5 5 5 d d e 4 .

      b d 3 2 d 5 5 5 d d d 4 4 . . .

      b 5 5 5 5 d d 4 4 4 4 . . . . .

      4 d d d 4 4 4 . . . . . . . . .

      4 4 4 4 . . . . . . . . . . . .

  , SpriteKind.Food)  

sprites.destroy(otherSprite)

info.changeCountdownBy(3)

})

sprites.onCreated(SpriteKind.Food, function(sprite: Sprite) {

    sprite.setPosition(randint(0, 160), randint(0, 120))

}) ```
````

---

<div class="post-metadata">

**Author:** ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)\
**Post date:** [January 18, 2026, 9:57pm UTC](https://forum.makecode.com/t/my-own-typescript-learning-journey/41586/2 "2026-01-18T21:57:57Z")

</div>

So this is chase the pizza in JavaScript.

---

<div class="post-metadata">

**Author:** ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)\
**Post date:** [January 19, 2026, 1:43am UTC](https://forum.makecode.com/t/my-own-typescript-learning-journey/41586/3 "2026-01-19T01:43:37Z")

</div>

yes you are correct

---

<div class="post-metadata">

**Author:** ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)\
**Post date:** [September 18, 2026, 3:08am UTC](https://forum.makecode.com/t/my-own-typescript-learning-journey/41586/4 "2026-09-18T03:08:51Z")

</div>

I’m revising this with

> **[Js Journey #1 learning methods](https://arcade.makecode.com/09965-48574-31371-82974)**
>
> Dog generator
