搜索插件、代码仓与 APP 分类

插件详情v2.3.1

flame_test

一个包含帮助测试使用 Flame 的应用程序的类的包

AndroidiOSmacOSWindowsLinux
近 30 天下载
2.2万
喜欢数
7
Pub 分数
160

安装插件

flutter pub add flame_test

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

flame_test 是一个用于 Flutter/Dart 的包,旨在简化使用 Flame 游戏引擎构建的应用程序的测试。它提供了实用类和辅助工具,使开发者能够为游戏逻辑、组件和系统编写单元测试和集成测试。该包支持在 Android、iOS、macOS、Windows 和 Linux 等多个平台上进行测试,确保测试环境中的行为一致。通过 flame_test,开发者可以模拟游戏循环,管理异步操作,并在无需完整运行时环境的情况下验证游戏内的交互。

适合场景

  • 测试游戏逻辑和状态转换
  • 验证组件在隔离状态下的行为
  • 模拟游戏循环执行
  • 验证物理和碰撞检测
  • 测试输入处理和事件响应

主要特点

  • Flame 组件的内置测试辅助工具
  • 支持使用游戏循环模拟进行异步测试
  • 跨平台测试兼容性
  • 与 Dart 测试框架集成
  • 游戏上下文和服务的模拟

适合对象

  • 火焰游戏开发者
  • 团队在实践测试驱动开发
  • 需要可靠回归测试的项目
  • 开发人员为游戏机制编写单元测试
  • 那些希望通过自动化测试来提高代码质量的人

使用建议

  • 需要熟悉 Flame 引擎概念
  • 可能需要为复杂的游戏场景进行额外设置
  • 仅限基于火焰的应用程序
  • 测试覆盖率取决于全面的测试设计
  • 不适用于用户界面或视觉渲染测试

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Flutter favorite

flame

A Flutter-based game engine.


Documentation

The full documentation for Flame can be found on docs.flame-engine.org.

To change the version of the documentation, use the version selector noted with version: in the top of the page.

Note: The documentation that resides in the main branch is newer than the released documentation on the docs website.

Other useful links:

  • The official Flame site.
  • Examples of most features which can be tried out from your browser.
    • To access the code for each example, press the < > button in the top right corner.
  • Tutorials - Some simple tutorials to get started.
  • API Reference - The generated dartdoc API reference.
  • awesome-flame - A curated list of Tutorials, Games, Libraries and Articles.

Help

There is a Flame community on Blue Fire's Discord server where you can ask any of your Flame related questions.

If you are more comfortable with StackOverflow, you can also create a question there. Add the Flame tag, to make sure that anyone following the tag can help out.

Features

The goal of the Flame Engine is to provide a complete set of out-of-the-way solutions for common problems that games developed with Flutter might share.

Some of the key features provided are:

  • A game loop.
  • A component/object system (FCS).
  • Effects and particles.
  • Collision detection.
  • Gesture and input handling.
  • Images, animations, sprites, and sprite sheets.
  • General utilities to make development easier.

On top of those features, you can augment Flame with bridge packages. Through these libraries, you will be able to access bindings to other packages, including custom Flame components and helpers, in order to make integrations seamless.

Flame officially provides bridge libraries to the following packages:

Sponsors

The Flame Engine's top sponsors:

Invertase

Do you or your company want to sponsor Flame? Check out our OpenCollective page, which is also mentioned in the section below, or contact us on Discord.

Support

The simplest way to show us your support is by giving the project a star! :star:

You can also support us monetarily by donating through OpenCollective:

Through GitHub Sponsors:

Or by becoming a patron on Patreon:

You can also show on your repository that your game is made with Flame by using one of the following badges:

Powered by Flame Powered by Flame Powered by Flame

[![Powered by Flame](https://img.shields.io/badge/Powered%20by-%F0%9F%94%A5-272727.svg)](https://flame-engine.org)
[![Powered by Flame](https://img.shields.io/badge/Powered%20by-%F0%9F%94%A5-272727.svg?style=flat-square)](https://flame-engine.org)
[![Powered by Flame](https://img.shields.io/badge/Powered%20by-%F0%9F%94%A5-272727.svg?style=for-the-badge)](https://flame-engine.org)

Contributing

Have you found a bug or have a suggestion of how to enhance Flame? Open an issue and we will take a look at it as soon as possible.

Do you want to contribute with a PR? PRs are always welcome, just make sure to create it from the correct branch (main) and follow the checklist which will appear when you open the PR.

Also, before you start, make sure to read our Contributing Guide.

For bigger changes, or if in doubt, make sure to talk about your contribution to the team. Either via an issue, GitHub discussion, or reach out to the team either using the Discord server.

Credits

  • The Blue Fire team, who are continuously working on maintaining and improving Flame and its ecosystem.
  • All the friendly contributors and people who are helping out in the community.

所属分类

依赖

依赖清单 5 项

源码仓库

使用此插件的项目