AI Extension help!

Hey everyone! As you might know, I made the first AI in Makecode (here!) and have wanted to turn it into a :sparkles: extension :sparkles: ! Thing is, I have no IDEA how to use typescript or JavaScript. While I did learn it 5 years ago… that was 5 years ago! I have all the code formatted into individual functions in blocks. If anyone would help me turn those blocks functions into an extension, I would be super thankful! And I would credit you with helping in the extension :slight_smile: Thanks!

5 Likes

the link does not appear

2 Likes

There is no link yet! I still havent found any helper!

1 Like

oh ok

1 Like

send me the code i will make a extension with it and i will give you the code (you can put it on github) as i don’t know how-to yet
just to prove that i can do it here ar some of the ones i made
Image Editor my first extension
Player Pixel Physique a work in progress

Image Editor

this is my first extention it’s not the best but everything works as intended, i made it for a extension i have not made yet (a tile creator/PathMaker)

Player Pixel Physique

Aerolithium is a made up material. it’s a floating liquid
Ps. i haven’t made interaction with the other pixels, so like sand will float on calm water and sand will stop Aerolithium from going up
And any pixel will act like a wall but Antimatter will still destroy it (as for any other pixel)

2 Likes

i took a look to your Neural Network and i must say im imprest.
But the neural network needs to be mostly custom im thinking of a block like this
image

or

image
these ar just some ideas
and you give me a hex or rgb color, the green is just there as i need a color or its gonna be black
just tag me if you neen my help and you can also ask @richard for help if you need to

2 Likes

Awesome! I’ll get this all formatted into functions and send it over- just want to make sure its working before you go through the effort of making it an extension

2 Likes

The W_A_S_D and W_A_S_D_A_B is just a idea, for things like nps i can try to train some neural networks for different things like Npcs Enemies (the problem is if the person is in a platformer world or not)

1 Like

@richard and @jwunderl will make a streem about classes in a few days so maybe we can make a class for the neural network, but you decide what we do

3 Likes

Oo classes! What are those?

1 Like

classes are like a custom input in blocks, like enum’s but not limited to a set of options
image
all of these have classes. you see that darker part of the blocks? those ar classes

image
here is the code for it in TypeScript (just a part of the color fading extension)

2 Likes

Ohh cool!

1 Like

I cant wait for the extention!

1 Like

ya i thinking of making a rpg with it

2 Likes

also we will need to train the ai every time the game starts… that will be a pain to test

2 Likes

i was worried that you sent me the code, cuz my internet was down for the last 6 days :sweat_smile: 2023-06-17T04:00:00Z2023-06-23T04:00:00Z
Ho and my sister is graduating and getting her diploma 2023-06-24T04:00:00Z so i’m not gonna be able to make the extension 2023-06-24T04:00:00Z (“if you send the code 2023-06-24T04:00:00Z.”)

1 Like

Yeah It might take me a bit, I took a break from it to compete in the unique a thon 2 (a round ends today) and to work on my arcade machine- I’ll try and send that soon but dw there is no rush!

hope this doesn’t end like terminator lol

3 Likes

hey i was just wondering how the functions ar going.

alright, but I am at a summer program and away from a computer so it is slow on a phone