mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-31 00:48:47 +08:00
Update cicd.yml file on flame_3d to match main. Since we finally updated main, we should require no difference whatsoever on this file anymore. This will require downgrading all the color changes, which is fine. This should never have been a part of flame_3d to begin with. Files were "untouched" by checking out the exact version as they are in main right now (will need to rebase flame_3d to main later). I had to add a couple more files because the files on main had dependencies on changes that are not yet rebased on flame_3d. These extra diffs should disappear when I do the final rebase.
25 lines
644 B
Dart
Executable File
25 lines
644 B
Dart
Executable File
import 'package:flame/components.dart';
|
|
import 'package:flame_isolate_example/terrain/terrain.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class Grass extends PositionComponent with Terrain {
|
|
static final _color = Paint()..color = const Color(0xff567d46);
|
|
static final _debugColor = Paint()..color = Colors.black.withOpacity(0.5);
|
|
|
|
late final _rect = size.toRect();
|
|
late final _rect2 = Rect.fromCenter(
|
|
center: _rect.center,
|
|
height: 10,
|
|
width: 10,
|
|
);
|
|
|
|
@override
|
|
void render(Canvas canvas) {
|
|
canvas.drawRect(_rect, _color);
|
|
canvas.drawRect(_rect2, _debugColor);
|
|
}
|
|
|
|
@override
|
|
double difficulty = 1.0;
|
|
}
|