The Source for Java Technology Collaboration
User: Password:
Register | Login help    

Search

Online Books:
java.net on MarkMail:


View by: Most Recent | Topic | Community | Webloggers | James Gosling   
Monthly Archives:    

Blogs by topic Games and user malenkov

• Accessibility • Ajax • Blogging • Business • Community 
• Databases • Deployment • Distributed • Eclipse • Education 
• EJB • Extreme Programming • Games • Grid • GUI 
• IDE • Instant Messaging • J2EE • J2ME • J2SE 
• JavaOne • Jini • JSP • JSR • JXTA 
• LDAP • Linux • Mobility • NetBeans • Open Source 
• OpenSolaris • P2P • Patterns • Performance • Porting 
• Programming • Research • Security • Servlets • Struts 
• Swing • Testing • Tools • Virtual Machine • Web Applications 
• Web Design • Web Development Tools • Web Services and XML 


Games

To supplement the posts about the triangular and square tilings, let's consider the third type - the hexagonal tiling. This is my favorite one. Each hexagon has more non-diagonal neighbors than a square. It simplifies calculating distance between two tiles. The main disadvantage of this tiling is that the axes are not orthogonal.
on Feb 26, 2009 | Permalink | Discuss
Recall from the previous post there are only three regular polygons that can be used as tiles. Let's have a look at triangles now. Such tiles are practically not used in games because there is no direct path on the map and the game unit should be turned at each tile. Besides, it is rather hard to place units within acute corners because a lot of free space is wasted.
on Feb 25, 2009 | Permalink | Discuss
Many games use graphical maps based on iterative tiles. There are only three regular polygons that can be used as tiles: triangles, squares, and hexagons. Consider the square tiling first. Such tiles are most often used in games because of their ease of processing. Sometimes game developers enable diagonal movement, however, this feature makes calculating distance between two tiles more complicated.
on Feb 24, 2009 | Permalink | Discuss