semenoffrchie / isopix

Automatically exported from code.google.com/p/isopix
0 stars 0 forks source link

Seperate Terrain and sprites. #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
We could do with seperating the terrain and sprites from each other. Right
now, the heightMap class loads millions of sprites onto the terrain, but I
honestly don't see how that's helpful at all.

Also, the collsion detector currently requires you to weed out all the
sprites that don't have double-entries.

The suggestion for how this system might be accomplished is thus:

 * Have a seperate array for the terrain which is combined with the sprite
array at rendertime.
 * Have a special addTerrainInfo(image, x coord, y coord) function to set
the terrain in a particular place.
 * heightMap should be able to deal with drawing fake invisible "triangles"
and working out what image to draw based on info it's provided.

Original issue reported on code.google.com by davidpk...@gmail.com on 21 Jan 2007 at 10:27

GoogleCodeExporter commented 8 years ago
Semi-solved... added $type to Sprite and created Terrain which will be used for
terrain tiles on the next release.

Enjoy.

Original comment by Drew...@gmail.com on 15 Feb 2007 at 11:24

GoogleCodeExporter commented 8 years ago
The rest of the core function will be changed to incorparate these changes as 
soon as
possible.

Original comment by Drew...@gmail.com on 15 Feb 2007 at 11:26