fix typo in distance that was causing range to be further than intended, increase range of archer
This commit is contained in:
+1
-1
@@ -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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user