Discuss Scratch

imfh
Scratcher
1000+ posts

Is it Possible to Convert Scratch to C++?

While it's possible to convert Scratch to C++, no one has made a program to do it yet (as in readable, human editable C++, not machine generated garbage).

If you want to make a program to convert Scratch to C++, first you'll need to make an engine to handle stuff like sprites, the pen, asynchronous scripts, etc. Next you'll need to make a program to convert each Scratch block and sprite into something that uses your engine.

In summary, while it is technically possible, you will have to do so much programming that it would be much easier to just convert the project by hand (eg. write a C++ program based of your program).
Raihan142857
Scratcher
1000+ posts

Is it Possible to Convert Scratch to C++?

imfh wrote:

While it's possible to convert Scratch to C++, no one has made a program to do it yet (as in readable, human editable C++, not machine generated garbage).

If you want to make a program to convert Scratch to C++, first you'll need to make an engine to handle stuff like sprites, the pen, asynchronous scripts, etc. Next you'll need to make a program to convert each Scratch block and sprite into something that uses your engine.

In summary, while it is technically possible, you will have to do so much programming that it would be much easier to just convert the project by hand (eg. write a C++ program based of your program).
I disagree, it seems as simple as compiling the Scratch program to Javascript, then converting the Javascript to C++.
Maximouse
Scratcher
1000+ posts

Is it Possible to Convert Scratch to C++?

Raihan142857 wrote:

imfh wrote:

While it's possible to convert Scratch to C++, no one has made a program to do it yet (as in readable, human editable C++, not machine generated garbage).

If you want to make a program to convert Scratch to C++, first you'll need to make an engine to handle stuff like sprites, the pen, asynchronous scripts, etc. Next you'll need to make a program to convert each Scratch block and sprite into something that uses your engine.

In summary, while it is technically possible, you will have to do so much programming that it would be much easier to just convert the project by hand (eg. write a C++ program based of your program).
I disagree, it seems as simple as compiling the Scratch program to Javascript, then converting the Javascript to C++.
Seems. I don't think there's an easy way to convert arbitrary JavaScript code to C++.
Raihan142857
Scratcher
1000+ posts

Is it Possible to Convert Scratch to C++?

Maximouse wrote:

Raihan142857 wrote:

imfh wrote:

While it's possible to convert Scratch to C++, no one has made a program to do it yet (as in readable, human editable C++, not machine generated garbage).

If you want to make a program to convert Scratch to C++, first you'll need to make an engine to handle stuff like sprites, the pen, asynchronous scripts, etc. Next you'll need to make a program to convert each Scratch block and sprite into something that uses your engine.

In summary, while it is technically possible, you will have to do so much programming that it would be much easier to just convert the project by hand (eg. write a C++ program based of your program).
I disagree, it seems as simple as compiling the Scratch program to Javascript, then converting the Javascript to C++.
Seems. I don't think there's an easy way to convert arbitrary JavaScript code to C++.
Points to the post I literally made yesterday
Though I geuss I can see what you mean to some extent. Stuff involving sprites and pen will not convert to C++ easily.
Maximouse
Scratcher
1000+ posts

Is it Possible to Convert Scratch to C++?

Raihan142857 wrote:

Stuff involving sprites and pen will not convert to C++ easily.
That's the problem: I don't think any of the methods of converting JavaScript to C++ would make this possible. This is why it's better to just make an engine in C++ that would run Scratch projects, or to run the HTMLified project in a web browser.
minecraftprox101
Scratcher
500+ posts

Is it Possible to Convert Scratch to C++?

bump
Raihan142857
Scratcher
1000+ posts

Is it Possible to Convert Scratch to C++?

minecraftprox101 wrote:

bump
Maybe instead of meaninglessly bumping it you read the replies.
celleron56
Scratcher
89 posts

Is it Possible to Convert Scratch to C++?

i dont actually know how to do this your best bet would probably be to write a converter yourself because noone seems supportive of converting scratch to (whatever cool programming language that's so much better than scratch ) around here or convert it to java / html and use a linux distro like BrowserLinux (which in fact is a linux distro its 20 times easy'r to use linux than windows for this project ) or arch linux and configurire it to open your project in fullscreen mode directly after boot (and optionally also lock the browser to disallow stopping the project or going to another website (which maibe could be done using a costum extension which maibe could be configurired to allow the project to send http requests via costum blocks and make it able to execute js which you could also use arch linux and a costum scratch player / editor like turbowarp & configurire it by the way )
Ciyob86
Scratcher
500+ posts

Is it Possible to Convert Scratch to C++?

I don’t see the point in converting scratch projects to c++
kccuber
Scratcher
1000+ posts

Is it Possible to Convert Scratch to C++?

celleron56 wrote:

i dont actually know how to do this your best bet would probably be to write a converter yourself because noone seems supportive of converting scratch to (whatever cool programming language that's so much better than scratch ) around here or convert it to java / html and use a linux distro like BrowserLinux (which in fact is a linux distro its 20 times easy'r to use linux than windows for this project ) or arch linux and configurire it to open your project in fullscreen mode directly after boot (and optionally also lock the browser to disallow stopping the project or going to another website (which maibe could be done using a costum extension which maibe could be configurired to allow the project to send http requests via costum blocks and make it able to execute js which you could also use arch linux and a costum scratch player / editor like turbowarp & configurire it by the way )
Instead of writing a giant post with a TL;DR of “I dont know” you could have not posted. Plus, you necroposted.
hurry1102
Scratcher
6 posts

Is it Possible to Convert Scratch to C++?

minecraftprox101 wrote:

I have OS Project that I haven't started, and I want it to be able to run in a VM or muti-booted computer. I can't (obviously) muti-boot or run a OS made in scratch in a VM without compiling it first. Is there any compiler that lets me to Convert Scratch to C++?
(Sorry if this is the incorrect format, I'm new to the AT)
DifferentDance8
Scratcher
1000+ posts

Is it Possible to Convert Scratch to C++?

hurry1102 wrote:

minecraftprox101 wrote:

I have OS Project that I haven't started, and I want it to be able to run in a VM or muti-booted computer. I can't (obviously) muti-boot or run a OS made in scratch in a VM without compiling it first. Is there any compiler that lets me to Convert Scratch to C++?
(Sorry if this is the incorrect format, I'm new to the AT)
Maybe if I ask a mod to close this topic…

Powered by DjangoBB