Compare commits

..

No commits in common. "main" and "submission" have entirely different histories.

3 changed files with 5 additions and 6 deletions

View file

@ -1,8 +1,7 @@
use super::{furniture::Furniture, grid::Grid};
use crate::game::{self, ZLayer};
use comfy::{
draw_rect, draw_rect_outline, draw_sprite, error, random_i32, texture_id, vec2,
EngineContext, HashSet, RandomRange as _, Vec2, BLUE, GREEN, PURPLE, RED, WHITE
draw_rect, draw_rect_outline, draw_sprite, error, random_i32, texture_id, vec2, EngineContext, HashSet, RandomRange as _, Vec2, BLUE, GREEN, PURPLE, RED, WHITE
};
use indexmap::IndexSet;

View file

@ -173,10 +173,10 @@ fn update_move_player(state: &mut State, ctx: &mut EngineContext<'_>) {
},
// we are walking on a path
(MovementCost::Path, MovementCost::Path) => 7.0,
(MovementCost::Path, MovementCost::Path) => 10.0,
// we are walking across an obstacle
(MovementCost::Obstacle, _) | (_, MovementCost::Obstacle) => 2.0,
(MovementCost::Obstacle, _) | (_, MovementCost::Obstacle) => 1.0,
// we are walking on grass
_ => 5.0

View file

@ -126,9 +126,9 @@ pub fn setup(state: &mut State, ctx: &mut EngineContext<'_>) {
}
/// The amount of energy a ghost consumes idle.
pub const GHOST_DISCHARGE_RATE: f32 = 40.0;
pub const GHOST_DISCHARGE_RATE: f32 = 60.0;
/// The amount of energy additionally consumed by a moving ghost.
pub const GHOST_DISCHARGE_RATE_MOVEMENT: f32 = 40.0;
pub const GHOST_DISCHARGE_RATE_MOVEMENT: f32 = 60.0;
/// The amount of energy a house consumes idle.
pub const HOUSE_DISCHARGE_RATE: f32 = 30.0;
/// The amount of energy a ghost can charge when inside a house.