Register to reply

Formula for grid count

by sirchick
Tags: formula, grid
Share this thread:
sirchick
#1
Mar8-12, 07:50 PM
P: 52
Hey

I'm making a small indie game project but have hit a bit of a road block.


My maths is not great and until now i been doing fine but have got stuck.

I'm trying to calculate how many tiles fit within an area in an isometric angle - so that no empty spaces are left.

Lets say the area is:

Width : 1200
height : 600

The isometric tiles are:
width: 64
height: 32

Now I first tried:
(area width / tile width) * (area height / tile height)

But that doesn't work because it means each 4 corners are empty spaces. Which means this is not the "maximum" amount of tiles... so does any one know the formula to working it out ?
Phys.Org News Partner Mathematics news on Phys.org
'Moral victories' might spare you from losing again
Fair cake cutting gets its own algorithm
Effort to model Facebook yields key to famous math problem (and a prize)

Register to reply

Related Discussions
Wilczek and his Grid Beyond the Standard Model 3
On a 19 x 19 grid... Calculus 1
Grid Curves Calculus & Beyond Homework 10
Probability on a Grid Set Theory, Logic, Probability, Statistics 5
Grid Networking Computing & Technology 3