In “Warring States,” my latest multiplayer strategy game, players can move units along a map. Each map consists of a grid of “nodes,” indicated as black spots, and are connected by “roads,” indicated as lines. Each turn, units can move along a road to relocate to another node. Here’s what a 4-player map looks like:

Image for post
Image for post

As you can see, most roads are straight, but some roads are curved. The straightforward solution for generating the curved roads would be to have a sprite with a texture of a 90-degree curved line. However, the curvature of the line may change based…

Nalu Zou

Software developer, game maker, student at the University of Washington.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store