Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial levels #108

Closed
wants to merge 58 commits into from
Closed

Tutorial levels #108

wants to merge 58 commits into from

Conversation

cdsupina
Copy link
Contributor

@cdsupina cdsupina commented Sep 10, 2023

  • Changed input handling to be "action" based use Leafwing Input Manager
  • Optional tutorial level
    • phases for tracking tutorial objectives
    • can be toggled on and off in character selection screen with (up and down inputs)
    • only available for single player
    • 3 generic tutorials for movement, attack (and protect), and special ability,
  • Overhauled game ui to use hierarchy from single game ui entity

@cdsupina cdsupina added refactor Relating to refactoring code ui Relating to ui level labels Sep 10, 2023
@varoonp123 varoonp123 removed the refactor Relating to refactoring code label Sep 11, 2023
src/ui/game.rs Outdated Show resolved Hide resolved
@cdsupina cdsupina marked this pull request as ready for review September 21, 2023 04:27
}

#[derive(Deserialize)]
pub struct InputBindings {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pub struct InputBindings {
struct InputBindings {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +254 to +266
..default()
});
}
}
}
});
});
}
}
}
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gamedev brained ....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OnePieceGear5GIF

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other files are < 1k so i dont really care if they are in git. This sound file should be in S3 though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

help

Comment on lines +13 to +28
pub player_data: Vec<Option<PlayerData>>,
}

#[derive(Debug, Clone)]
pub struct PlayerData {
pub character: CharacterType,
pub input: PlayerInput,
}

impl Default for PlayersResource {
fn default() -> Self {
PlayersResource {
player_data: vec![None, None, None, None],
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PlayersResource doesnt make any sense to me. Why is it Vec<Option<_>>? Why is the default 4 nones?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's for Nones for up to for possible players in the game. When a player slot is filled it becomes Some(PlayerData) for that slot.

Comment on lines +8 to +12
pub struct MobReachedBottomGateEvent {
pub mob_type: Option<MobType>,
pub mob_segment_type: Option<MobSegmentType>,
pub defense_interaction: DefenseInteraction,
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. Lets talk about this type. Should this have an enum? Or just an Entity? 2 options seems odd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level ui Relating to ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants