How to make Extensions?

I want to make an extension to help with my game how would I do that?

2 Likes

You can start here…

There’s a lot more you can do than what’s listed here, but this will get you started :slight_smile:

6 Likes

How do you change the Icon?
i see Where to change it
image
but not how

and how can i upload a custom photo if possible

1 Like

You need to find the code from the icons you want here:

Keep in mind, it doesn’t work with anything implemented after v5.

I’m not sure what you mean about uploading a custom photo? In general, we don’t allow any image uploads in MakeCode.

3 Likes

That’s something I’ve actually always been wondering about, why doesn’t it work after v5?

1 Like

here is the v4 version of fontAwesome
FontAwesome

I’m honestly not sure if it’s our subscription or the way it’s coded into PXT… @richard?

2 Likes

we have a dependency on semantic ui which uses v5… when i eventually destroy the remaining references to sui then we can update

1 Like

Siu Ronaldo Siu GIF - Siu Ronaldo Siu Cristiano - Discover & Share GIFs in 2023 | Ronaldo, Gif, Memes

5 Likes

just making my first extension and found this:


please help i don’t know what to do.
link to project:

@_jupiter I believe your close curly braces are just a little misaligned. You’re missing the close brace to your wander() function which throws off the parsing to the rest of your function. Try adding a close brace there and removing the extra one at the end of the file, then see if it builds again. (The double close braces at the end of the file are what clued me in to the issue.)

I don’t understand, it’s still not working,
can you please point out the area where i should add the close bracket?

Based on the indentation of your code, it looks like you’re expecting a close bracket underneath the inner wander() function here:

Since there isn’t one currently, the export function fib(…) is actually still contained within the outer wander(n: number, s: string, e: MyEnum) function, which causes the error.

To make the error go away, try adding a close bracket like so:

However, I’m guessing you don’t actually want to have one wander() function defined inside another, since no-one calls the inner function. With that in mind, the simplest option may be to remove it altogether and just have a single wander() function with no parameters:

Here’s a version of the code as-of that last screenshot: https://arcade.makecode.com/S52711-22786-82005-32479

Thanks! It works now!

1 Like

just tried making the extension and this:

how to copy icon into java?

off topic, when using java? Josef mean typescript?

sry. i meant ts