Converting CodeTorch Files to HTML
by Duino4 in Circuits > Computers
5 Views, 0 Favorites, 0 Comments
Converting CodeTorch Files to HTML
Recently, my friend and I wanted to make a game together. We started small, and wanted to go bigger! eventually, we wanted to get our game on a few sites. Our game was made using CodeTorch, a really nice Turbowarp mod that allows Collaboration coding in real time. We started to really enjoy it, and wanted to play some games offline when traveling. HTML works when dropped into Chrome so we started there...
Supplies
All materials you need are:
- any device (Maybe this one)
- Turbowarp Packager: Click Here
- A CodeTorch Project (Use this one for testing)
- Turbowarp.org
Follow my steps below:
Getting a File
This part is simple.
First, go to a project on CodeTorch
Next, hit "See Inside" >A1
Go to the top of the editor and hit File >B1
Hit "Save to Computer" >B2
When the files popup opens, Rename the file as you like
Add a folder in your files and put the file there >C1
Convert to Correct Format
Now, Open Turbowarp.org
Hit See Inside again
Your Editor should look like the first image, and looks somewhat like the CodeTorch editor.
Hit file again, Load from computer
Open the folder you just made and add the project in.
You should get a warning: (C2) Dismiss the warning and continue
when the project loads, hit file again, and save to computer.
The project will now save as an sb3, the standard block coding file.
Packaging to HTML
Now that you have your game file, open the turbowarp Packager. (D)
select your project, and continue down the line with the desired options.
set the environment to HTML and hit the "package" button.
This will start a download to your computer.
Using the File
When you want to use your project offline, go to files, and double-click on the file you want to use. this should open it inside of your browser. Your game should be fully useable!
Customizing the File
You may have noticed inside the Packager a few options called "Player options" You can use this to make your file even cooler! by changing these settings, it gives your file a more polished look.
You can:
- Name the tab (it appears when opened)
- add a tab icon (like the Instructables Robot on this one, 32px x 32px)
- add loading screen dialogue and image
- and change simple settings for gameplay
Outro
Whether it's for saving games offline, or sending a game off to a company, these steps will help you achieve your goal. I hope this instructable was helpful. If you converted a file, use the I Made It to show me the file
Thanks for reading!
- Axo