-
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.
Issue: ============== Closes #16 What was done: ============== * Added randomly placed destructible buildings that throw arrows to the player. * Despawn entities when their current health reaches zero. * Tweaked the fire breath damage value so it takes a bit longer to destroy buildings. * Cleaned up sound effects when exiting the InGame state.
- Loading branch information
Showing
8 changed files
with
140 additions
and
27 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
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 |
---|---|---|
@@ -1,6 +1,13 @@ | ||
use bevy::prelude::Vec2; | ||
use bevy_rapier2d::prelude::Group; | ||
|
||
pub const TILE_SIZE: Vec2 = Vec2::new(32., 32.); | ||
pub const GRID_SIZE: Vec2 = Vec2::new(100., 100.); | ||
pub const HALF_TILE_SIZE: Vec2 = Vec2::new(TILE_SIZE.x * 0.5, TILE_SIZE.y * 0.5); | ||
pub const HALF_GRID_SIZE: Vec2 = Vec2::new(GRID_SIZE.x * 0.5, GRID_SIZE.y * 0.5); | ||
|
||
pub const PLAYER_GROUP: Group = Group::GROUP_1; | ||
pub const ENEMY_GROUP: Group = Group::GROUP_2; | ||
pub const PROJECTILE_GROUP: Group = Group::GROUP_3; | ||
pub const BUILDING_GROUP: Group = Group::GROUP_4; | ||
pub const FIRE_BREATH_GROUP: Group = Group::GROUP_5; |
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
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
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