TurboWarp / scratch-gui

TurboWarp GUI and addons
https://turbowarp.org/
GNU General Public License v3.0
106 stars 166 forks source link

Creating smartphone-compliant projects #835

Open sfederici opened 11 months ago

sfederici commented 11 months ago

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 commented 11 months ago

No alternative?

GarboMuffin commented 11 months ago

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

sfederici commented 11 months ago

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 commented 11 months ago

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

GarboMuffin commented 11 months ago

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 commented 11 months ago

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

sfederici commented 11 months ago

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 commented 11 months ago

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

sfederici commented 11 months ago

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 commented 11 months ago

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

Waiting for info

GarboMuffin commented 11 months ago

You can now do this:

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

sfederici commented 11 months ago

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 commented 11 months ago

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.

GarboMuffin commented 11 months ago

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

twsccom commented 11 months ago

Ok, thanks