# City Game

**URL:** https://forum.kirupa.com/t/city-game/264740
**Category:** programming
**Created:** [June 29, 2008, 11:18pm UTC](https://forum.kirupa.com/t/city-game/264740 "2008-06-29T23:18:02Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![BiGg\_RiE](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@BiGg\_RiE](https://forum.kirupa.com/u/BiGg_RiE)
#### Post date: [June 29, 2008, 11:18pm UTC](https://forum.kirupa.com/t/city-game/264740/1 "2008-06-29T23:18:02Z")

</div>

i need

---

<div class="post-metadata">

### Author: ![BiGg\_RiE](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@BiGg\_RiE](https://forum.kirupa.com/u/BiGg_RiE)
#### Post date: [June 30, 2008, 8:14pm UTC](https://forum.kirupa.com/t/city-game/264740/2 "2008-06-30T20:14:46Z")

</div>

thanks, but what is the distance formula?

---

<div class="post-metadata">

### Author: ![BiGg\_RiE](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@BiGg\_RiE](https://forum.kirupa.com/u/BiGg_RiE)
#### Post date: [June 30, 2008, 8:17pm UTC](https://forum.kirupa.com/t/city-game/264740/3 "2008-06-30T20:17:01Z")

</div>

Here’s an example

---

<div class="post-metadata">

### Author: ![ArmoredSandwich](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@ArmoredSandwich](https://forum.kirupa.com/u/ArmoredSandwich)
#### Post date: [June 30, 2008, 9:11pm UTC](https://forum.kirupa.com/t/city-game/264740/4 "2008-06-30T21:11:18Z")

</div>

> [@BiGg RiE;2351496](#):
>
> thanks, but what is the distance formula?

Depends on how much of a sphere your map is. I guess the simple Pythagoras algorithm is sufficient.

---

<div class="post-metadata">

### Author: ![BiGg\_RiE](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@BiGg\_RiE](https://forum.kirupa.com/u/BiGg_RiE)
#### Post date: [July 3, 2008, 5:20pm UTC](https://forum.kirupa.com/t/city-game/264740/5 "2008-07-03T17:20:35Z")

</div>

Ok, so

---

<div class="post-metadata">

### Author: ![BiGg\_RiE](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@BiGg\_RiE](https://forum.kirupa.com/u/BiGg_RiE)
#### Post date: [July 9, 2008, 4:29pm UTC](https://forum.kirupa.com/t/city-game/264740/6 "2008-07-09T16:29:30Z")

</div>

Ok, I’m
