admin管理员组文章数量:1426913
For those of you who don't know, Scratch (scratch.mit.edu) is a programming language based around connecting 'blocks' of code in order to create a project.
I have tried using a Scratch to HTML converter (forkphorus.github.io) in order to convert my Scratch code into HTML in order to see if the HTML code could be ported to Android. The Scratch converter has options to port all of the code (including the Scratch engine) into a single file that is playable on internet browsers. After converting the code to HTML, I followed the next step of the tutorial to pull the source code of the forkphorus (Scratch to HTML) and use Adobe PhoneGap in order to convert the code into an .apk file. Once I tried to install the .apk file, however, it was stuck on the loading screen.
I have a feeling that it is possible to convert Scratch code into an Android app but I just don't know how. If anyone has any suggestions, I would be grateful...
Project I am trying to convert: Bounce 1.3.1
Snippet of Scratch project code in HTML, if it helps:
<head>
<meta charset="utf-8">
<style>
.forkphorus-root {
position: relative;
font-family: sans-serif;
width: 480px;
height: 360px;
font-size: 10px;
background-color: #fff;
color: black;
overflow: hidden;
user-select: none;
}
.forkphorus-root > * {
position: absolute;
left: 0;
top: 0;
transform: translateZ(0);
width: 100%;
height: 100%;
}
For those of you who don't know, Scratch (scratch.mit.edu) is a programming language based around connecting 'blocks' of code in order to create a project.
I have tried using a Scratch to HTML converter (forkphorus.github.io) in order to convert my Scratch code into HTML in order to see if the HTML code could be ported to Android. The Scratch converter has options to port all of the code (including the Scratch engine) into a single file that is playable on internet browsers. After converting the code to HTML, I followed the next step of the tutorial to pull the source code of the forkphorus (Scratch to HTML) and use Adobe PhoneGap in order to convert the code into an .apk file. Once I tried to install the .apk file, however, it was stuck on the loading screen.
I have a feeling that it is possible to convert Scratch code into an Android app but I just don't know how. If anyone has any suggestions, I would be grateful...
Project I am trying to convert: Bounce 1.3.1
Snippet of Scratch project code in HTML, if it helps:
<head>
<meta charset="utf-8">
<style>
.forkphorus-root {
position: relative;
font-family: sans-serif;
width: 480px;
height: 360px;
font-size: 10px;
background-color: #fff;
color: black;
overflow: hidden;
user-select: none;
}
.forkphorus-root > * {
position: absolute;
left: 0;
top: 0;
transform: translateZ(0);
width: 100%;
height: 100%;
}
Share
Improve this question
asked Jul 6, 2019 at 15:09
user11747945user11747945
1
- 1 This code is just CSS styling – Heath Mitchell Commented Jul 7, 2020 at 19:10
3 Answers
Reset to default 2Just use HTMLifier. You can use it here: https://sheeptester.github.io/htmlifier/
No, you can't convert Scratch projects to Android apps. But if you want to create an Android app, you can perhaps use a framework like Kivy in Python.
Yes, it is absolutely possible!
Just go to the scratch project url, then type “fullscreen” at the end:
https://scratch.mit.edu/projects/888787589/
to https://scratch.mit.edu/projects/888787589/fullscreen
Now go to a website like https://websitetoapk./ Or search on Google for a website to APK convertor. There are plenty of awesome free online ones. (Most will require an account, though).
Paste your modified Scratch project URL into the converter, then create your app!
Or, you can use the outdated packager here:
https://forkphorus.github.io/packager/
Or use this:
https://sheeptester.github.io/htmlifier/
I hope this helps!
本文标签: javascriptIs it possible to convert a Scratch project to an Android appStack Overflow
版权声明:本文标题:javascript - Is it possible to convert a Scratch project to an Android app? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745460384a2659297.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论