Имправление спрайта игрока при изменении состояния

This commit is contained in:
Евгений Титаренко 2024-08-25 08:30:01 +03:00
parent f62a8d5f1c
commit 636fb16f7e
2 changed files with 6 additions and 3 deletions

View file

@ -2,13 +2,15 @@
## Who made this game ## Who made this game
- friendlywithmeat - coding - friendlywithmeat [Evgeniy Titarenko] - coding
- mrzuerg - graphics and level design - mrzuerg [Nikolai Gilev] - graphics, level design, story
- Polina Gileva - music
## Used resources ## Used resources
- zx spectrum font - Sizenko Alexander from (Style-7) - zx spectrum font - Sizenko Alexander from (Style-7)
- footsteps & doors sounds - [Kenney](http://www.kenney.nl/) - footsteps & doors sounds, ui graphics - [Kenney](http://www.kenney.nl/)
## Tools ## Tools

View file

@ -24,6 +24,7 @@ public partial class Player : CharacterBody2D
get => _state; get => _state;
private set private set
{ {
_sprite.Play("default");
switch (value) switch (value)
{ {
case State.Normal: case State.Normal: