# Help with portal game

**URL:** <https://forum.makecode.com/t/help-with-portal-game/26805>\
**Category:** Help\
**Created:** [February 11, 2024, 10:00pm UTC](https://forum.makecode.com/t/help-with-portal-game/26805 "2024-02-11T22:00:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bifrosty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bifrosty/32/24819_2.png) [@Bifrosty](https://forum.makecode.com/u/Bifrosty)\
**Post date:** [February 11, 2024, 10:00pm UTC](https://forum.makecode.com/t/help-with-portal-game/26805/1 "2024-02-11T22:00:55Z")

</div>

@richard  
As you saw earlier I used your code to make my own portal game. However its hard-coded to only let the player through portals, could you help me allow other sprites too? Like maybe make the "do portal update work for a specified sprite. I was trying to do that but your code is advanced for me. Here is the link to the game–\>[https://arcade.makecode.com/S67936-60919-61588-07506](https://arcade.makecode.com/S67936-60919-61588-07506) Thanks!

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [February 12, 2024, 5:24pm UTC](https://forum.makecode.com/t/help-with-portal-game/26805/2 "2024-02-12T17:24:02Z")

</div>

hmmm, that would be pretty difficult to do with the current code. blocks code isn’t exactly the easiest to refactor…

i might be able to make an extension for this in TypeScript. let me think about it a bit.

---

<div class="post-metadata">

**Author:** ![Bifrosty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bifrosty/32/24819_2.png) [@Bifrosty](https://forum.makecode.com/u/Bifrosty)\
**Post date:** [February 12, 2024, 10:12pm UTC](https://forum.makecode.com/t/help-with-portal-game/26805/3 "2024-02-12T22:12:59Z")

</div>

Ok, thanks!

---

<div class="post-metadata">

**Author:** ![Bifrosty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bifrosty/32/24819_2.png) [@Bifrosty](https://forum.makecode.com/u/Bifrosty)\
**Post date:** [March 15, 2024, 10:53pm UTC](https://forum.makecode.com/t/help-with-portal-game/26805/4 "2024-03-15T22:53:43Z")

</div>

How would I go about making an extension for this?

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [March 19, 2024, 5:00pm UTC](https://forum.makecode.com/t/help-with-portal-game/26805/5 "2024-03-19T17:00:59Z")

</div>

@Bifrosty yeah, i was looking through the code and determined it would be pretty difficult to do in its current state. it’s super hard-coded to just handle the player. if you were to make an extension for it, you’d likely have to rewrite it from scratch in TypeScript
