Trying to figure out issue with sprites loading improperly. Broken, still.
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
import 'dart:math' as math;
|
||||
|
||||
import 'package:wolf_dart/classes/coordinate_2d.dart';
|
||||
import 'package:wolf_dart/features/difficulty/difficulty.dart';
|
||||
import 'package:wolf_dart/features/entities/enemies/enemy.dart';
|
||||
import 'package:wolf_dart/features/entities/entity.dart';
|
||||
import 'package:wolf_dart/features/entities/map_objects.dart';
|
||||
|
||||
class SS extends Enemy {
|
||||
static const double speed = 0.04;
|
||||
@@ -23,20 +21,6 @@ class SS extends Enemy {
|
||||
damage = 20;
|
||||
}
|
||||
|
||||
static SS? trySpawn(int objId, double x, double y, Difficulty _) {
|
||||
if (EnemyType.ss.claimsMapId(objId)) {
|
||||
bool isPatrolling = objId >= EnemyType.ss.mapBaseId + 18;
|
||||
|
||||
return SS(
|
||||
x: x,
|
||||
y: y,
|
||||
angle: MapObject.getAngle(objId),
|
||||
mapId: objId,
|
||||
)..state = isPatrolling ? EntityState.patrolling : EntityState.idle;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@override
|
||||
({Coordinate2D movement, double newAngle}) update({
|
||||
required int elapsedMs,
|
||||
|
||||
Reference in New Issue
Block a user