1

I would like to Display a Scratch Project (.SB) file within my Delphi EXE file. I would like to know if it is possible to display and build the Scratch Project into your Delphi Project.

I wish to make a small game in Scratch and then use the game within my Delphi Application without the need of the Scratch IDE. Perhaps a 3rd party delphi tool or component or something that can help me achieve this would also be nice.

Is this possible? How can this be done?

2 Answers2

1

It's possible, like everything, but it's not been done AFAIK, which means it's going to be hard work.

You have a few choices:

  • Scratch is normally embedded within web sites as a Flash object. If you can embed Flash media, that is a solution.
  • Some Scratch-inspired systems like BYOB export to exe. You could look into how they do that to use your project (Scratch and BYOB
    are compatible enough to load your project and export it after
    minor changes)
  • If you don't like these, then write your own Scratch interpreter for Delphi. Scratch sprites are objects, their behaviour is straightforward enough, the Scratch projects are easily parsed (it's XML), now - off you go!
boisvert
  • 3,679
  • 2
  • 27
  • 53
0

I am assuming that you want to port a scratch program to .EXE. If this is the case, then you can install BYOB.
After doing this, you can convert your scratch project to a BYOB project and load it into BYOB.
Then, go to Share->Compile this project, and it will generate a .EXE for you.

Phiter
  • 14,570
  • 14
  • 50
  • 84
RonSkons
  • 1
  • 1