Skip to content

Commit

Permalink
chore: Add more game footage
Browse files Browse the repository at this point in the history
  • Loading branch information
PraxTube committed Oct 31, 2023
1 parent d3ff454 commit c4745f5
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 8 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,21 @@ Contributions of any kind are welcome.
[Credits](https://github.com/PraxTube/ace-of-the-heavens/blob/master/CREDITS.md).
[License](https://github.com/PraxTube/ace-of-the-heavens/blob/master/LICENSE),
applies to everything that doesn't already have a license.

## Footage

<p align="center">
<img src="docs/demo/corridor.gif" alt="animated" />
</p>

<p align="center">
<img src="docs/demo/rocket-kill.gif" alt="animated" />
</p>

<p align="center">
<img src="docs/demo/shoot-n-dodge.gif" alt="animated" />
</p>

<p align="center">
<img src="docs/demo/dodge.gif" alt="animated" />
</p>
Binary file added docs/demo/corridor.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/demo/dodge.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/demo/rocket-kill.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/demo/shoot-n-dodge.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 9 additions & 8 deletions src/ui/matchmaking_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ struct MatchmakingScreen;
#[derive(Component)]
struct MatchmakingText;

const MESSAGE: &str = "WAITING FOR 1 OTHER PLAYER";

fn spawn_title_text(commands: &mut Commands, font: Handle<Font>) -> Entity {
let text_style = TextStyle {
font,
font_size: 75.0,
color: Color::WHITE,
};
let text_bundle =
TextBundle::from_sections([TextSection::new("LOADING -".to_string(), text_style)]);
let text_bundle = TextBundle::from_sections([TextSection::new(MESSAGE, text_style)]);
commands.spawn((MatchmakingText, text_bundle)).id()
}

Expand Down Expand Up @@ -92,20 +93,20 @@ fn animate_matchmaking_screen(
let new_text = if content.ends_with('-') {
*forward = !*forward;
if *forward {
"LOADING /"
MESSAGE.to_string() + " /"
} else {
"LOADING \\"
MESSAGE.to_string() + " \\"
}
} else if content.ends_with('/') {
"LOADING -"
MESSAGE.to_string() + " -"
} else if content.ends_with('\\') {
"LOADING |"
MESSAGE.to_string() + " |"
} else {
*forward = !*forward;
if *forward {
"LOADING /"
MESSAGE.to_string() + " /"
} else {
"LOADING \\"
MESSAGE.to_string() + " \\"
}
};

Expand Down

0 comments on commit c4745f5

Please sign in to comment.