Add shareware support and spawn correctly for difficulty levels
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:wolf_dart/features/difficulty/difficulty.dart';
|
||||
import 'package:wolf_dart/features/entities/entity.dart';
|
||||
|
||||
enum CollectibleType { ammo, health, treasure, weapon, key }
|
||||
@@ -31,7 +32,7 @@ class Collectible extends Entity {
|
||||
int objId,
|
||||
double x,
|
||||
double y,
|
||||
int difficultyLevel,
|
||||
Difficulty _,
|
||||
) {
|
||||
if (isCollectible(objId)) {
|
||||
return Collectible(
|
||||
|
||||
Reference in New Issue
Block a user