Added difficulty screen

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-03-13 19:20:06 +01:00
parent 827d858f0f
commit 01d8329969
6 changed files with 156 additions and 27 deletions

View File

@@ -0,0 +1,12 @@
enum Difficulty {
canIPlayDaddy(0, "Can I play, Daddy?"),
dontHurtMe(1, "Don't hurt me."),
bringEmOn(2, "Bring em' on!"),
iAmDeathIncarnate(3, "I am Death incarnate!"),
;
final String title;
final int level;
const Difficulty(this.level, this.title);
}

19
lib/classes/entity.dart Normal file
View File

@@ -0,0 +1,19 @@
enum EntityState { staticObj, idle, patrolling, shooting, pain, dead }
class Entity {
double x;
double y;
int spriteIndex;
double angle;
EntityState state;
int mapId;
Entity({
required this.x,
required this.y,
required this.spriteIndex,
this.angle = 0.0,
this.state = EntityState.staticObj,
this.mapId = 0,
});
}