Refactor coordinate system
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import 'dart:math' as math;
|
||||
|
||||
import 'package:wolf_dart/classes/linear_coordinates.dart';
|
||||
import 'package:wolf_dart/classes/coordinate_2d.dart';
|
||||
import 'package:wolf_dart/features/entities/collectible.dart';
|
||||
import 'package:wolf_dart/features/entities/entity.dart';
|
||||
import 'package:wolf_dart/features/weapon/weapon.dart';
|
||||
@@ -55,7 +55,7 @@ class Player {
|
||||
}
|
||||
|
||||
// Helper getter to interface with the RaycasterPainter
|
||||
LinearCoordinates get position => (x: x, y: y);
|
||||
Coordinate2D get position => Coordinate2D(x, y);
|
||||
|
||||
// --- Weapon Switching & Animation Logic ---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user