Skip to content

Add Video Sprites extension for webcam integration#2461

Open
GoDevelop wants to merge 3 commits intoTurboWarp:masterfrom
GoDevelop:master
Open

Add Video Sprites extension for webcam integration#2461
GoDevelop wants to merge 3 commits intoTurboWarp:masterfrom
GoDevelop:master

Conversation

@GoDevelop
Copy link
Copy Markdown

This commit adds a new TurboWarp extension for video sprites that allows webcam usage inside sprites with adjustable zoom and color filling.

This commit adds a new TurboWarp extension for video sprites that allows webcam usage inside sprites with adjustable zoom and color filling.
@github-actions github-actions Bot added the pr: new extension Pull requests that add a new extension label Apr 16, 2026
@Brackets-Coder
Copy link
Copy Markdown
Contributor

Brackets-Coder commented Apr 17, 2026

If I remember correctly, an existing combination of extensions can already mask the video layer behind a sprite.

@GarboMuffin
Copy link
Copy Markdown
Member

i didn't look but if this is like the scratch lab thing then it's probably useful

Copy link
Copy Markdown
Contributor

@LilyMakesThings LilyMakesThings left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't look but if this is like the scratch lab thing then it's probably useful

Some parity issues but it's a brilliant start.

I tested the camera out and there's some teething problems in terms of scaling but this is remarkable.

I left some comments with opcodes/ids that match the lab experiment, using project JSON to avoid infringement.

Comment thread extensions/video-sprite/video-sprite.js Outdated
Comment thread extensions/video-sprite/video-sprite.js Outdated
Comment thread extensions/video-sprite/video-sprite.js Outdated
Comment thread extensions/video-sprite/video-sprite.js Outdated
Comment thread extensions/video-sprite/video-sprite.js Outdated
Comment thread extensions/video-sprite/video-sprite.js Outdated
This should match the recommendation
@GoDevelop
Copy link
Copy Markdown
Author

Does this match the recommendation

@Brackets-Coder
Copy link
Copy Markdown
Contributor

Could've sworn that either clipping & blending or skins could already do this, but just checked and apparently not. I guess I was remembering video sprites from scratch lab

@LegoBrainBiker
Copy link
Copy Markdown
Contributor

probably remove the comments with emojis

@LegoBrainBiker
Copy link
Copy Markdown
Contributor

why does it have so many fallbacks for rotationCenter? they should all be the same. also, since this has more blocks than the scratch version, extra blocks should be hidden like other scratch compatable extensions.

@Brackets-Coder
Copy link
Copy Markdown
Contributor

Yeah, I'd say let's remove emojis from the code comments

Removed commented emoji lines from video-sprite.js
@GoDevelop
Copy link
Copy Markdown
Author

The emojis were an random easter egg i don't know why i added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: new extension Pull requests that add a new extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants