mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 10:38:17 +08:00
feat: SpawnComponent (#2709)
This PR introduces the `SpawnComponent`, which randomly spawns components within a set area.
This commit is contained in:
@ -3,6 +3,7 @@ import 'dart:math';
|
||||
import 'package:flame/components.dart';
|
||||
import 'package:flame/effects.dart';
|
||||
import 'package:flame/game.dart';
|
||||
import 'package:flame/geometry.dart';
|
||||
import 'package:flame_noise/flame_noise.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@ -26,7 +27,6 @@ class MoveEffectExample extends FlameGame {
|
||||
|
||||
@override
|
||||
void onLoad() {
|
||||
const tau = Transform2D.tau;
|
||||
cameraComponent = CameraComponent.withFixedResolution(
|
||||
world: world,
|
||||
width: 400,
|
||||
|
||||
Reference in New Issue
Block a user