搜尋套件、儲存庫與 APP 分類

套件詳情v2.3.2

stagexl

一個快速且通用的 HTML5 和 Dart 2D 渲染引擎。

Web
近 30 天下載
271
喜歡數
40
Pub 分數
125

安裝套件

flutter pub add stagexl

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

StageXL 是一個專為使用 Dart 和 HTML5 的 Web 應用程式設計的高效能 2D 渲染引擎。它提供了一個靈活的舞台架構,非常適合建立互動式圖形、動畫和遊戲。以效率為設計核心,StageXL 支援向量圖形、位圖處理、文字渲染,以及濾鏡和著色器等進階效果。其 API 受 Flash/ActionScript 啟發,讓有該生態系統開發經驗的開發者感到熟悉。該引擎完全在瀏覽器中運行,利用 WebGL 和 Canvas 以達到最佳效能。

適用情境

  • 2D遊戲開發
  • 互動式網路動畫
  • 向量圖形渲染
  • 基於瀏覽器的可視化應用
  • 即時圖形效果

主要特色

  • 高性能渲染
  • WebGL 和 Canvas 支持
  • 類似 Flash 的 API
  • 向量和位圖圖形
  • 內建動畫系統
  • 著色器和濾鏡支援

適合對象

  • 面向網路平台的 Dart 開發人員
  • 尋求輕量級2D引擎的遊戲創作者
  • 互動式UI設計工具
  • 教育或原型設計項目

使用建議

  • 有限的原生移動支援
  • 無 Flutter 桌面或行動整合
  • 主要面向網路
  • 需要理解二維圖形概念
  • 不像其他Flutter套件那樣積極維護

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

StageXL

StageXL is a fast and universal 2D rendering engine for HTML5 and Dart. It provides a wide range of features for 2D games and other graphically rich content. The WebGL based engine is highly optimized to reduce the number of draw calls sent to the GPU and therefore delivers top-class performance. The automatic fallback to a Canvas2D based engine guarantees compatibility with older browsers or legacy hardware.

Some of the features provided by StageXL are: texture atlas support, draw call batching, pixel masking, pixel filters, pixel blending, texture filtering, hierarchical display list, sprite sheet animations, rich animation framework, audio and video support, interaction events, 3D transformations of 2D objects, resource management, text rendering and many other features as well as extensibility for even more features.

Extension Libraries

StageXL provides a rich set of built-in features. Even more advanced use cases may require an extension library with a specialised set of features. The number of extension libraries is growing over time, here is a list of the most popular StageXL extension libraries.

Getting Help

The easiest way to get started or to accomplish a task is to ask questions. We are actively tracking the following websites and answer questions as fast as possible. We would like to get more FAQs on StackOverflow to help other developers to find answers quickly, therefore it would be great to get your questions on StackOverflow.

Examples

We are working on more examples to covering a wider range of use cases. Please take a look at the StageXL samples repository for our ongoing work. Don't hesitate to send example requests that would help you to learn about a particular feature.

Support StageXL

We encourage anyone to send in Pull Requests or issues that they find. We do our best to look at them as soon as we can.

Roadmap

Besides improving our existing features and improving performance as much as possible, we are always thinking about new features we want to add next. Please send us your ideas and requests to make those things a reality you care about most. Some of the things we will tackle in the near future are:

  • Support for Flutter (This is happening on a separate repo)
  • A new StageXL homepage with more articles / blog posts.
  • Changing functions from positional parameters to named parameters.
  • Adding ability use Web Workers.

Adobe Flash heritage

StageXL started as an easy migration path for Adobe Flash developers and their products to HTML5. Therefore StageXL provides the same display list API you may have used in Flash for many years. Furthermore the Dart programming language is easy to use for everyone who is familiar with ActionScript.

Browser Support

Chrome Safari Firefox Edge
v53+ v10+ v63+ v79+

Some features only work on newer browsers such as WebGL, but we intend to have fallbacks for most features.

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。