novel_character_maker 0.1.0
novel_character_maker: ^0.1.0 copied to clipboard
A Flutter package for managing visual novel characters.
Novel Character Maker #
A Flutter package for creating and animating novel-style characters with various expressions and states.
Features #
- Multiple character states (default, smile, sad, angry, etc.)
- Smooth animations for state transitions
- Customizable character scale and animation intensity
- Direction control (left/right)
- Easy integration with Flutter apps
Installation #
Add this to your package's pubspec.yaml file:
dependencies:
novel_character_maker_maker: ^1.0.0
Then run:
flutter pub get
Usage #
- Import the package:
import 'package:novel_character_maker_maker/novel_character_maker_maker.dart';
- Create a character with states:
final character = NovelCharacter(
states: {
CharacterState.defaultState: AssetImage('assets/character_default.png'),
CharacterState.smile: AssetImage('assets/character_smile.png'),
CharacterState.sad: AssetImage('assets/character_sad.png'),
},
);
- Use the CharacterWidget to display the character:
CharacterWidget(
character: character,
animationScale: 0.03,
)
- Change character state and direction:
character.changeState(CharacterState.smile);
character.changeDirection(Direction.left);
Contributing #
We welcome contributions! Please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a pull request
License #
Distributed under the MIT License. See LICENSE for more information.