Formula for grid count


by sirchick
Tags: formula, grid
sirchick
sirchick is offline
#1
Mar8-12, 07:50 PM
P: 51
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
Math modeling handbook now available
Hyperbolic homogeneous polynomials, oh my!
Researchers help Boston Marathon organizers plan for 2014 race

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