Full game block?

Is it possible to take my game and turn it into one block. Like so i can import multiple of people games so i can like make them chose from multiple different games. I kinda just want to take a entire game and be able to play that game if i dragged one block in that runs the entire chosen game

2 Likes

I guess it is possible in a way.
However if your looking to make a game collection it’s best to use variables to have button inputs react accordingly to the current game.

2 Likes

short answer: no

long answer: yes but it ain’t gonna be easy

MakeCode games have a lot of global variables, assets, etc. that make it very difficult to combine games. However, I wrote a script for doing this years ago for the five second game jam:

You could take that script and tweak it so that it worked with any game, not just five second game jam games, but I wouldn’t recommend doing that unless you are a very experienced TypeScript coder.

4 Likes

Actually it might be easy

I programmed a singular block that runs an entire space shooter
You’ll need to learn how to use makecode’s JavaScript, or maybe makecode’s Python.

3 Likes

My game is still in a process and has some bugs that is kinda confusing me, but its going to be a while till its finnished, but how would i possibly be able to tweak it to maybe make it possible i could do that?

2 Likes

I know how to code in the makecode typescript

1 Like

tbh, it’s been a while since i looked at this script so i’m not sure what needs to be done. i’d recommend just running it and seeing what’s broken

1 Like

I looked at his code and it makes a little sense, i might be able to do it myself but i would have to figure some stuff out. unless someone is willing to do what he did after im done with my game

1 Like