scratch-gui icon indicating copy to clipboard operation
scratch-gui copied to clipboard

Creating smartphone-compliant projects

Open sfederici opened this issue 2 years ago • 15 comments

I don't know if this is the correct repository. If not, please let me know where I could post this.

I would like to be able to see Scratch projects in a phone without toolbar, menu bar etc. All this without having to package the project. I tried https://turbowarp.org/868045282?hqpen&size=360x840, but the scratch toolbar with the greenflag, top, etc buttons is still visible. I also tried Forkphorus, but it seems that I can't have a Stage whose ratio is different from 4:3. Are there alternatives?

sfederici avatar Oct 19 '23 10:10 sfederici

No alternative?

sfederici avatar Oct 24 '23 20:10 sfederici

not yet, sorry, things have been awfully busy here for a while

GarboMuffin avatar Oct 25 '23 19:10 GarboMuffin

Thanks for answering. Do you think that what I'm asking is feasible and will be available in the TurboWarp website sooner or later?

sfederici avatar Oct 26 '23 03:10 sfederici

When someone has got time to answer my question, I'm ready to listen to and discuss it.

sfederici avatar Oct 31 '23 14:10 sfederici

You're just looking for something that looks very similar to the packager (no controls, black background), but without having to package it, yes?

GarboMuffin avatar Oct 31 '23 23:10 GarboMuffin

Trying something new -- does this seem like something that could be viable for you?

https://turbowarp.github.io/alternative-embeds/embeds/mobile-compliant.html?id=60917032&width=640&height=360

You can change the numbers and it should just work, uses the same project running logic as the packager

GarboMuffin avatar Nov 01 '23 01:11 GarboMuffin

Excellent!!! I guess this is it!! I changed the args to https://turbowarp.github.io/alternative-embeds/embeds/mobile-compliant.html?id=60917032&width=380&height=640 and it worked beautifully

sfederici avatar Nov 01 '23 08:11 sfederici

One question. Can I add some parameters to make it autostart?

sfederici avatar Nov 01 '23 08:11 sfederici

I tested it by redesigning my test project, and it works beautifully. The view shown for project

https://turbowarp.github.io/alternative-embeds/embeds/mobile-compliant.html?id=917985072&width=380&height=640 on my cellphone is exactly what I needed. Can this experimental embedding become officially supported by Turbowarp? That would be awesome. Message ID: @.***>

sfederici avatar Nov 02 '23 11:11 sfederici

One question. Can I add some parameters to make it autostart?

Waiting for info

sfederici avatar Nov 04 '23 16:11 sfederici

You can now do this:

https://turbowarp.github.io/alternative-embeds/embeds/mobile-compliant.html?id=917985072&width=380&height=640&autostart=1

GarboMuffin avatar Nov 05 '23 00:11 GarboMuffin

Thanks a lot, it works exactly as I needed it. Will this alternative embed page be available in the future or is it just an experiment? Is there any chance it will be included in the official embed page of Turbowarp?

sfederici avatar Nov 05 '23 09:11 sfederici

And, just as ideas go after ideas: I noticed your solution already works even for standard Scratch project that are based on a mobile format, e.g. https://scratch.mit.edu/projects/560543479: https://turbowarp.github.io/alternative-embeds/embeds/mobile-compliant.html?id=560543479&width=240&height=360&autostart=1. This is incredible! (at least to me). Thanks a lot, really.

sfederici avatar Nov 05 '23 09:11 sfederici

It's probably going to remain a separate thing for a while, this works very differently than the normal embed page

GarboMuffin avatar Nov 07 '23 15:11 GarboMuffin

Ok, thanks

twsccom avatar Nov 07 '23 15:11 twsccom