fix typo in distance that was causing range to be further than intended, increase range of archer

This commit is contained in:
2026-06-26 19:46:05 -07:00
parent 781e8653e7
commit e75dd82a76
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ screen_to_grid :: proc(px, py: f32) -> (int, int) {
distance :: proc(a, b: Vec2) -> f32 {
dx := b.x - a.x
dy := b.y - a.y
return math.sqrt(dx * dx + dy + dy)
return math.sqrt(dx * dx + dy * dy)
}
move_toward :: proc(pos: ^Vec2, target: Vec2, speed, dt: f32) {
+1 -1
View File
@@ -36,7 +36,7 @@ Tower_Archetype :: struct {
TOWER_ARCHETYPES: [Tower_Kind]Tower_Archetype = {
.Archer = {
kind = .Archer,
range = 50,
range = 100,
damage = 12,
fire_rate = 0.45,
cost = TOWER_COST,