-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adiciona Wife Mother and Wife Father on LevelOne
- Loading branch information
1 parent
4eb8ca0
commit ae81498
Showing
5 changed files
with
114 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import 'dart:ui'; | ||
|
||
import 'package:moonshiner_game/components/npc.dart'; | ||
import 'package:flame/components.dart'; | ||
|
||
class WifesFather extends AbstractNPC { | ||
WifesFather({required Vector2 position}) | ||
: super( | ||
npcCharacter: 'Wifes Father', | ||
dialogues: [ | ||
"Goodbye, my son-in-law!", | ||
"Take care of our daughter and future grandchild.", | ||
], | ||
position: position, | ||
); | ||
|
||
@override | ||
Color getColorForNPC() => const Color(0xFFAA0000); // Dark red for the father | ||
|
||
@override | ||
void updateMovement(double dt) { | ||
// This NPC does not move, so velocity is always zero | ||
current = NPCState.idle; | ||
velocity = Vector2.zero(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import 'dart:ui'; | ||
|
||
import 'package:moonshiner_game/components/npc.dart'; | ||
import 'package:flame/components.dart'; | ||
|
||
class WifesMom extends AbstractNPC { | ||
WifesMom({required Vector2 position}) | ||
: super( | ||
npcCharacter: 'Wifes Mother', | ||
dialogues: [ | ||
"Farewell, my dear daughter!", | ||
"Please take care of yourself and your husband.", | ||
], | ||
position: position, | ||
); | ||
|
||
@override | ||
Color getColorForNPC() => const Color(0xFFFFAAAA); // Light pink for the mom | ||
|
||
@override | ||
void updateMovement(double dt) { | ||
// This NPC does not move, so velocity is always zero | ||
current = NPCState.idle; | ||
velocity = Vector2.zero(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters