cancel
Showing results for 
Search instead for 
Did you mean: 

Horizon Worlds Typescript Snippets

Tellous
Mentor

Hello everyone,

I created this repository of overly simplified typescript examples. I was inspired by a conversation I had with @BerryBerryNice where we discussed how we could better serve creators who are new to typescript. Not sure if something like this already exists. Regardless, here is a place where I will continue to add any random snippets that come to mind. I will likely add Custom UI snippets, so check back again soon. Besides helping new creators, I hope this helps people get smarter outputs from their favorite AI code assistants.

 

Tip for new scripters: Take it one example at a time. Try looking for patterns and reverse engineering the snippets.

 

Snippets Link

https://github.com/tellous/HorizonWorldsSnippets

 

If you want to contibute, feel free to send pull requests.

EDIT: There are over 100+ snippets now! Let me know if there are any specific ones you'd like to see.

Upcoming Events:
Build-Along - Gear Up! Building Player Holstering Systems Thursday, May 22nd 11:00 AM PT - Register
Build-Along - See How Experts Prompt AI Tools Tuesday, May 27th 11:00 AM PT - Register
May Programming Calendar
12 REPLIES 12

steve.guynup
Member

Hi Tellous, - Nice idea, effort 🙂

These really are "snippets" - which sort of raises a question for me - as in - Sharing slighter bigger works (that are in progress)?  I coded a 3D immersive slideshow controller. It lets you make a series of things appear / disappear.  Mainly useful for presenters, events (including talk shows, concerts) & teachers. (you can add a room, remove chairs, move a world to your audience - rather than have them all teleport, and the teaching / concert usage gets interesting) It works, BUT is in that simple / rough dev phase.  It feels bigger than you wish, and maybe kinda brings you into developing it (not really fair to you). So - maybe there's a different place to share it?   

skimming the old Discord, these Forums, I don't sense a clearer option 😞

There are 2 bigger works created by Meta that can be found here:
https://github.com/meta-quest/meta-horizon-worlds-sample-scripts

You can see the code that was used to create both Chop N Pop and Rooftop Racers. Hope this helps.

Read more about Chop N Pop here
https://developers.meta.com/horizon-worlds/learn/documentation/tutorial-worlds/chop-n-pop-sample-wor...

Rooftop racers here:
https://developers.meta.com/horizon-worlds/learn/documentation/tutorial-worlds/horizon-traversal-sam...


Upcoming Events:
Build-Along - Gear Up! Building Player Holstering Systems Thursday, May 22nd 11:00 AM PT - Register
Build-Along - See How Experts Prompt AI Tools Tuesday, May 27th 11:00 AM PT - Register
May Programming Calendar

Thanks, I've got it actually working (it's more about what others may want)...