Skip to content

Renderer for HyperQuark - Turbowarp/scratch-render with minor changes

License

Notifications You must be signed in to change notification settings

HyperQuark/scratch-render

 
 

Repository files navigation

TurboWarp/scratch-render

scratch-render modified for use in TurboWarp. We've optimized some operations and added a lot of options.

Setup

See https://github.com/TurboWarp/scratch-gui/wiki/Getting-Started to setup the complete TurboWarp environment.

If you just want to play with the render then it's the same process as upstream scratch-render.

API

Public APIs are compatible with a vanilla scratch-render. TurboWarp/scratch-render is a drop-in replacement for scratch-render.

Notable public API additions include:

  • renderer.setUseHighQualityRender(enabled: boolean) toggles high quality rendering. A UseHighQualityRenderChanged event is emitted on the renderer when this is called. You can read the current setting with renderer.useHighQualityRender but don't try to directly modify this value.
  • renderer.markSkinAsPrivate(skinID: number) marks a skin as "private".
  • renderer.allowPrivateSkinAccess controls whether blocks like "touching color" can access "private" skins.
  • renderer.offscreenTouching controls whether collision blocks work offscreen.
  • Skins no longer extend EventEmitter
  • RenderWebGL.powerPreference can be set to change the WebGL powerPreference option for future RenderWebGL instances. (default, high-performance, or low-power)

About

Renderer for HyperQuark - Turbowarp/scratch-render with minor changes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.6%
  • GLSL 4.1%
  • HTML 3.2%
  • CSS 0.1%